Rev 769 | Rev 783 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 769 | Rev 773 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | # $Id: Makefile |
1 | # $Id: Makefile 773 2008-05-03 17:42:45Z arune $ |
| 2 | BIOS_VERSION = 0x1339 |
2 | BIOS_VERSION = 0x1339 |
| 3 | 3 | ||
| 4 | # Paths: set default pathnames if they are not |
4 | # Paths: set default pathnames if they are not |
| 5 | # passed on from parent Makefile. |
5 | # passed on from parent Makefile. |
| 6 | ifndef TARGET |
6 | ifndef TARGET |
| Line 224... | Line 224... | ||
| 224 | 224 | ||
| 225 | # Generate config.h from bios.inc |
225 | # Generate config.h from bios.inc |
| 226 | HWID = `$(UUIDGEN) | $(MD5SUM) | $(CUT) -c 1-8` |
226 | HWID = `$(UUIDGEN) | $(MD5SUM) | $(CUT) -c 1-8` |
| 227 | config.h: $(CFGDIR)/bios.inc |
227 | config.h: $(CFGDIR)/bios.inc |
| 228 | @echo Generating $@ |
228 | @echo Generating $@ |
| - | 229 | @cat $^ | $(AWK) -v apa=0x$(HWID) 'BEGIN { } /.*/ {sub(/^NODE_HW_ID=<GENERATE_HW>/,"NODE_HW_ID="apa)}{print} END { }' > $^ |
|
| 229 | @echo "/* This file is automatically generated. Do not edit. */" > $@ |
230 | @echo "/* This file is automatically generated. Do not edit. */" > $@ |
| 230 | @echo "" >> $@ |
231 | @echo "" >> $@ |
| 231 | @echo -n "#ifndef CONFIG_H_\n#define CONFIG_H_\n\n" >> $@ |
232 | @echo -n "#ifndef CONFIG_H_\n#define CONFIG_H_\n\n" >> $@ |
| 232 | @cat $^ | $(GREP) "<GENERATE_HW>" | $(AWK) -v apa=0x$(HWID) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,apa } END { }' >> $@ |
- | |
| 233 | @cat $^ |
233 | @cat $^ | $(AWK) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { }' >> $@ |
| 234 | @echo -n "\n#endif /*CONFIG_H_*/\n" >> $@ |
234 | @echo -n "\n#endif /*CONFIG_H_*/\n" >> $@ |
| - | 235 | ||
| - | 236 | ||
| - | 237 | # @cat $^ | $(GREP) "<GENERATE_HW>" | $(AWK) -v apa=0x$(HWID) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,apa } END { }' >> $@ |
|
| - | 238 | # @cat $^ | $(GREP) -v "<GENERATE_HW>" | $(AWK) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { }' >> $@ |
|
| 235 | 239 | ||
| 236 | # Display compiler version information. |
240 | # Display compiler version information. |
| 237 | gccversion : |
241 | gccversion : |
| 238 | @$(CC) --version |
242 | @$(CC) --version |
| 239 | 243 | ||