diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-02-08 20:21:29 -0500 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-02-22 11:46:39 +0000 |
commit | 002d30b5f4f48ee203be3bad9d68dc8b538ee35b (patch) | |
tree | 324f0ee7f06db6eba5a6818670f1052d785b62b6 | |
parent | 80d11e8577bf03e98f2eb1b0cb3a281ab2879c9e (diff) | |
download | seabios-002d30b5f4f48ee203be3bad9d68dc8b538ee35b.zip seabios-002d30b5f4f48ee203be3bad9d68dc8b538ee35b.tar.gz seabios-002d30b5f4f48ee203be3bad9d68dc8b538ee35b.tar.bz2 |
Add PYTHON definition to Makefile.
Add PYTHON definition to Makefile so users can override it. This
allows users to specify an exact python executable name to use during
the build.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
(backported from 97f1ffcfac4ca382b5008a7aabfc2c300131f978)
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -61,6 +61,7 @@ endif OBJCOPY=objcopy OBJDUMP=objdump STRIP=strip +PYTHON=python .PHONY : all clean distclean FORCE @@ -141,7 +142,7 @@ $(OUT)romlayout16.lds: $(OUT)ccode32flat.o $(OUT)code32seg.o $(OUT)code16.o tool $(Q)$(OBJDUMP) -thr $(OUT)code32flat.o > $(OUT)code32flat.o.objdump $(Q)$(OBJDUMP) -thr $(OUT)code32seg.o > $(OUT)code32seg.o.objdump $(Q)$(OBJDUMP) -thr $(OUT)code16.o > $(OUT)code16.o.objdump - $(Q)./tools/layoutrom.py $(OUT)code16.o.objdump $(OUT)code32seg.o.objdump $(OUT)code32flat.o.objdump $(OUT)romlayout16.lds $(OUT)romlayout32seg.lds $(OUT)romlayout32flat.lds + $(Q)$(PYTHON) ./tools/layoutrom.py $(OUT)code16.o.objdump $(OUT)code32seg.o.objdump $(OUT)code32flat.o.objdump $(OUT)romlayout16.lds $(OUT)romlayout32seg.lds $(OUT)romlayout32flat.lds # These are actually built by tools/layoutrom.py above, but by pulling them # into an extra rule we prevent make -j from spawning layoutrom.py 4 times. @@ -163,7 +164,7 @@ $(OUT)bios.bin.elf $(OUT)bios.bin: $(OUT)rom.o tools/checkrom.py @echo " Prepping $@" $(Q)$(OBJDUMP) -thr $< > $<.objdump $(Q)$(OBJCOPY) -O binary $< $(OUT)bios.bin.raw - $(Q)./tools/checkrom.py $<.objdump $(OUT)bios.bin.raw $(OUT)bios.bin + $(Q)$(PYTHON) ./tools/checkrom.py $<.objdump $(OUT)bios.bin.raw $(OUT)bios.bin $(Q)$(STRIP) -R .comment $< -o $(OUT)bios.bin.elf @@ -189,7 +190,7 @@ $(OUT)vgabios.bin.raw: $(OUT)vgarom.o $(OUT)vgabios.bin: $(OUT)vgabios.bin.raw tools/buildrom.py @echo " Finalizing rom $@" - $(Q)./tools/buildrom.py $< $@ + $(Q)$(PYTHON) ./tools/buildrom.py $< $@ ####### dsdt build rules src/%.hex: src/%.dsl |