Rev 773 | Rev 784 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 773 | Rev 783 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | # $Id: Makefile |
1 | # $Id: Makefile 783 2008-05-04 19:52:55Z 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 227... | Line 227... | ||
| 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 | @cat $^ | $(AWK) -v apa=0x$(HWID) 'BEGIN { } /.*/ {sub(/^NODE_HW_ID=<GENERATE_HW>/,"NODE_HW_ID="apa)}{print} END { }' > $^ |
| 230 | @echo "/* This file is automatically generated. Do not edit. */" > $@ |
230 | @echo "/* This file is automatically generated. Do not edit. */" > $@ |
| 231 | @echo "" >> $@ |
231 | @echo "" >> $@ |
| - | 232 | @echo "#ifndef CONFIG_H_" >> $@ |
|
| 232 | @echo |
233 | @echo "#define CONFIG_H_" >> $@ |
| - | 234 | @echo "" >> $@ |
|
| 233 | @cat $^ | $(AWK) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { }' >> $@ |
235 | @cat $^ | $(AWK) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { }' >> $@ |
| - | 236 | @echo "" >> $@ |
|
| 234 | @echo |
237 | @echo "#endif /*CONFIG_H_*/" >> $@ |
| 235 | 238 | ||
| - | 239 | # above echos does not use \n due to different handling on different os:es? |
|
| 236 | 240 | ||
| 237 | # @cat $^ | $(GREP) "<GENERATE_HW>" | $(AWK) -v apa=0x$(HWID) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,apa } END { }' >> $@ |
241 | # @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 { }' >> $@ |
242 | # @cat $^ | $(GREP) -v "<GENERATE_HW>" | $(AWK) 'BEGIN { FS="=" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { }' >> $@ |
| 239 | 243 | ||
| 240 | # Display compiler version information. |
244 | # Display compiler version information. |