Rev 551 | Rev 554 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 551 | Rev 553 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | # $Id: Makefile |
1 | # $Id: Makefile 553 2007-07-20 11:47:48Z andfri $ |
| 2 | PRG = bios |
2 | PRG = bios |
| 3 | ASRC = $(BIOSDIR)/vectors.S |
3 | ASRC = $(BIOSDIR)/vectors.S |
| 4 | CSRC = $(BIOSDIR)/bios_export.c $(BIOSDIR)/bios.c $(BIOSDIR)/flash.c |
4 | CSRC = $(BIOSDIR)/bios_export.c $(BIOSDIR)/bios.c $(BIOSDIR)/flash.c |
| 5 | BIOS_VERSION = 0x1338 |
5 | BIOS_VERSION = 0x1338 |
| 6 | OPTIMIZE = -Os -mcall-prologues |
6 | OPTIMIZE = -Os -mcall-prologues |
| Line 66... | Line 66... | ||
| 66 | cp config.inc config.old |
66 | cp config.inc config.old |
| 67 | @$(AWK) '!/^BIOS_RAM_END*/ && !/^BIOS_VERSION*/ { print }' $(PERSONALDIR)/*$(NODE_ID)*/$(BIOSDIR)/bios.inc > config.inc |
67 | @$(AWK) '!/^BIOS_RAM_END*/ && !/^BIOS_VERSION*/ { print }' $(PERSONALDIR)/*$(NODE_ID)*/$(BIOSDIR)/bios.inc > config.inc |
| 68 | # - cp $(PERSONALDIR)/*$(NODE_ID)*/bios.inc config.inc |
68 | # - cp $(PERSONALDIR)/*$(NODE_ID)*/bios.inc config.inc |
| 69 | 69 | ||
| 70 | # Copy template to personal dir |
70 | # Copy template to personal dir |
| 71 | move: |
71 | move: template |
| 72 | - mkdir -p $(PERSONALDIR)/$(NODE_ID)_$(HW_NAME) |
72 | - mkdir -p $(PERSONALDIR)/$(NODE_ID)_$(HW_NAME)/$(BIOSDIR) |
| - | 73 | - cp $(TEMPLATEDIR)/$(BIOSDIR)/* $(PERSONALDIR)/$(NODE_ID)_$(HW_NAME)/$(BIOSDIR) |
|
| 73 | - cp |
74 | - cp $(TEMPLATEDIR)/Makefile $(PERSONALDIR)/$(NODE_ID)_$(HW_NAME) |
| 74 | 75 | ||
| 75 | # Copy template to personal dir but dont copy makefile and main.c as you dont want these files replaced generally |
76 | # Copy template to personal dir but dont copy makefile and main.c as you dont want these files replaced generally |
| 76 | updateconfig: |
77 | updateconfig: template |
| 77 | - cp |
78 | - cp $(TEMPLATEDIR)/$(BIOSDIR)/* $(TEMPLATEDIR)/Makefile $(PERSONALDIR)/$(NODE_ID)_*/ |
| 78 | 79 | ||
| 79 | 80 | ||
| 80 | .PHONY: clean cleanintermediate cleantemplate distclean |
81 | .PHONY: clean cleanintermediate cleantemplate distclean |
| 81 | clean: cleanintermediate cleantemplate |
82 | clean: cleanintermediate cleantemplate |
| 82 | -rm -f $(PRG).elf $(PRG).lst $(PRG).map *.hex |
83 | -rm -f $(PRG).elf $(PRG).lst $(PRG).map *.hex |