Anonymous | Login | Signup for a new account | 11-10-2008 10:57 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000709 | [BusyBox] Other | minor | always | 02-09-06 11:36 | 02-13-06 23:30 | ||||
Reporter | scott | View Status | public | ||||||
Assigned To | BusyBox | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | svn | ||||||
Summary | 0000709: Makefile produces invalid include/bb_config.h file | ||||||||
Description |
After doing 'make menuconfig' I was getting a corrupt bb_config.h file with lines catted together. If the CONFIG flag was set (to 1) then the bb_config.h was echoing the CONFIG value, with a mistaken newline of 'n' instead of '\n' then the ENABLE flag. |
||||||||
Additional Information |
The solution was to fix the makefile 'sed' expression to output the correct ENABLE value along with whatever was set in the config script. Here is the 1-liner patch I used to fix it: bash> svn diff Makefile Index: Makefile =================================================================== --- Makefile (revision 13886) +++ Makefile (working copy) @@ -415,7 +415,7 @@ include/bb_config.h: include/config.h @echo -e "#ifndef BB_CONFIG_H\n#define BB_CONFIG_H" > $@ @sed -e 's/#undef CONFIG_\(.*\)/#define ENABLE_\1 0/' \ - -e 's/#define CONFIG_\(.*\)/#define CONFIG_\1\n#define ENABLE_\1/' \ + -e 's/#define CONFIG_\(.*\)/#define ENABLE_\1/' \ < $< >> $@ @echo "#endif" >> $@ |
||||||||
Attached Files | |||||||||
|
Copyright © 2000 - 2006 Mantis Group |