LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-28-2009, 11:47 AM   #1
phar0z
LQ Newbie
 
Registered: Dec 2005
Location: Ghent, Belgium
Distribution: Arch Linux & Ubuntu Linux
Posts: 12

Rep: Reputation: 0
Errors (override) with .config file


I've used the autokernconf tool to build a minimal, flexible kernel configuration file.

The minimal .config file is in the right directory.
Code:
67 root@ubuntux $ cd /usr/src/linux && ls .config
.config

Click here
if you would like to see what my .config file contains.

Unfortunately some errors come up while I'm trying to compile the new kernel with my own minimal .config file:

Code:
7 root@ubuntux $ make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
exec debian/rules  DEBIAN_REVISION=2.6.30.3-custom-10.00.Custom  APPEND_TO_VERSION=-custom  INITRD=YES  kernel_image kernel_headers                                 
====== making target debian/stamp/build/kernel [new prereqs: conf.vars]======     
This is kernel package version 11.015.                                            
if [ -f include/linux/version.h ]; then uts_ver=$(grep 'define UTS_RELEASE' include/linux/version.h | perl -nle  'm/^\s*\#define\s+UTS_RELEASE\s+("?)(\S+)\1/g && print $2;'); if [ "X$uts_ver" != "X" ]; then echo "The UTS Release version in include/linux/version.h"; echo "         \"$uts_ver\" "; echo "does not match current version " ; echo "           \"2.6.30.3-custom\" " ; echo "Reconfiguring." ; touch Makefile; fi; fi                                                                   
test ! -f scripts/package/builddeb.kpkg-dist || mv -f scripts/package/builddeb.kpkg-dist scripts/package/builddeb                                                   
test ! -f scripts/package/Makefile.kpkg-dist || mv -f scripts/package/Makefile.kpkg-dist scripts/package/Makefile                                                   
/usr/bin/make  EXTRAVERSION=.3-custom  ARCH=i386 \                                
                             bzImage                                              
make[1]: Map '/usr/src/linux-2.6.30.3' wordt binnengegaan                         
scripts/kconfig/conf -s arch/x86/Kconfig                                          
.config:8:warning: override: reassigning to symbol ACPI                           
.config:10:warning: override: reassigning to symbol ACPI                          
.config:14:warning: override: reassigning to symbol ACPI                          
.config:17:warning: override: reassigning to symbol ACPI                          
.config:18:warning: override: reassigning to symbol ACPI                          
.config:19:warning: override: reassigning to symbol ACPI_BUTTON                   
.config:20:warning: override: reassigning to symbol ACPI                          
.config:21:warning: override: reassigning to symbol PNP                           
.config:22:warning: override: reassigning to symbol PNPACPI                       
.config:27:warning: override: reassigning to symbol FUSE_FS                       
.config:56:warning: override: reassigning to symbol SOUND                         
.config:63:warning: override: reassigning to symbol HOTPLUG_PCI_SHPC              
.config:65:warning: override: reassigning to symbol PCI                           
.config:67:warning: override: reassigning to symbol PCI                           
.config:80:warning: override: reassigning to symbol PCI                           
.config:81:warning: override: reassigning to symbol USB                           
.config:82:warning: override: reassigning to symbol USB_EHCI_HCD                  
.config:83:warning: override: reassigning to symbol USB_FHCI_HCD                  
.config:84:warning: override: reassigning to symbol USB_HWA_HCD                   
.config:85:warning: override: reassigning to symbol USB_ISP116X_HCD               
.config:86:warning: override: reassigning to symbol USB_ISP1760_HCD               
.config:87:warning: override: reassigning to symbol USB_OHCI_HCD                  
.config:88:warning: override: reassigning to symbol USB_R8A66597_HCD              
.config:89:warning: override: reassigning to symbol USB_SL811_HCD                 
.config:90:warning: override: reassigning to symbol USB_U132_HCD                  
.config:91:warning: override: reassigning to symbol USB_UHCI_HCD
.config:94:warning: override: reassigning to symbol AGP
.config:103:warning: override: reassigning to symbol ATH5K
.config:106:warning: override: reassigning to symbol X86
.config:117:warning: override: reassigning to symbol NEW_LEDS
.config:134:warning: override: reassigning to symbol PARPORT
.config:135:warning: override: reassigning to symbol PARPORT_PC
.config:137:warning: override: reassigning to symbol BLK_DEV_FD
.config:139:warning: override: reassigning to symbol RTC_LIB
.config:140:warning: override: reassigning to symbol SND
.config:150:warning: override: reassigning to symbol USB_HID
.config:153:warning: override: reassigning to symbol INPUT
.config:156:warning: override: reassigning to symbol PCI
.config:157:warning: override: reassigning to symbol USB
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW)
As you can see it refuses to compile. What would be the best way to fix this issue? You can also see that it's about to write a new .config file from scratch at the end.

I only want to compile a new kernel with this minimal .config file, provided by autokernconf.
 
Old 08-03-2009, 10:34 AM   #2
phar0z
LQ Newbie
 
Registered: Dec 2005
Location: Ghent, Belgium
Distribution: Arch Linux & Ubuntu Linux
Posts: 12

Original Poster
Rep: Reputation: 0
I've found the solution for this issue. These errors were caused by several duplicate lines in my .config file.

I've fixed it with:
Code:
sort .config | uniq -u >> .config2 && mv .config2 .config
 
  


Reply

Tags
config, kernel, makekpkg, warning



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Local repository message: " ... missing from override file" babypeng Linux - Newbie 0 06-12-2008 12:55 AM
Wireless config:override rausb0 Win driver on Belkin F5D7050 dongle using ndiswrappe villages_ar Linux - Wireless Networking 15 05-02-2007 08:27 PM
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 12:07 PM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 08:28 PM
Lan Config file / internet config file Raven_X_Neo Linux - Networking 1 10-30-2002 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration