Author: myles Date: 2008-03-13 04:02:33 +0100 (Thu, 13 Mar 2008) New Revision: 639
Modified: coreboot-v3/arch/x86/Makefile Log: This patch fixes simplifies arch/x86/Makefile by getting rid of lar.tmp. Since path handling is built into lar, just use it.
Myles
Signed-off-by: Myles Watson mylesgw@gmail.com Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: coreboot-v3/arch/x86/Makefile =================================================================== --- coreboot-v3/arch/x86/Makefile 2008-03-07 06:33:05 UTC (rev 638) +++ coreboot-v3/arch/x86/Makefile 2008-03-13 03:02:33 UTC (rev 639) @@ -36,8 +36,8 @@
ROM_SIZE := $(shell expr $(CONFIG_COREBOOT_ROMSIZE_KB) * 1024)
-LARFILES_NOCOMPRESS := normal/initram normal/option_table -LARFILES_COMPRESSIBLE := normal/stage2 +LARFILES_NOCOMPRESS := coreboot.initram:normal/initram option_table:normal/option_table +LARFILES_COMPRESSIBLE := coreboot.stage2:normal/stage2
DECOMPRESSORS := ifeq ($(CONFIG_COMPRESSION_LZMA),y) @@ -56,36 +56,26 @@ endif
$(obj)/coreboot.rom $(obj)/coreboot.map: $(obj)/coreboot.bootblock $(obj)/util/lar/lar lzma nrv2b $(obj)/coreboot.initram $(obj)/coreboot.stage2 $(obj)/option_table - $(Q)rm -rf $(obj)/lar.tmp - $(Q)mkdir $(obj)/lar.tmp - $(Q)mkdir $(obj)/lar.tmp/normal - $(Q)cp $(obj)/coreboot.initram $(obj)/lar.tmp/normal/initram - $(Q)cp $(obj)/coreboot.stage2 $(obj)/lar.tmp/normal/stage2 - $(Q)cp $(obj)/option_table $(obj)/lar.tmp/normal/option_table $(Q)printf " LAR $(subst $(shell pwd)/,,$(@))\n" $(Q)rm -f $(obj)/coreboot.rom - $(Q)cd $(obj)/lar.tmp && \ - ../util/lar/lar -e -c \ - ../coreboot.rom \ - $(LARFILES_NOCOMPRESS) \ - -s $(ROM_SIZE) -b $(obj)/coreboot.bootblock - $(Q)cd $(obj)/lar.tmp && \ - ../util/lar/lar -e $(COMPRESSFLAG) -a \ - ../coreboot.rom \ + $(Q)cd $(obj) && \ + ./util/lar/lar -e -c coreboot.rom \ + -s $(ROM_SIZE) -b coreboot.bootblock \ + $(LARFILES_NOCOMPRESS) + $(Q)cd $(obj) && \ + ./util/lar/lar -e $(COMPRESSFLAG) -a coreboot.rom \ $(LARFILES_COMPRESSIBLE) ifeq ($(CONFIG_PAYLOAD_NONE),y) $(Q)printf " PAYLOAD none (as specified by user)\n" else $(Q)if [ -r $(CONFIG_PAYLOAD_FILE) ]; then \ printf " PAYLOAD $(CONFIG_PAYLOAD_FILE) $(COMPRESSFLAG)\n"; \ - cp $(CONFIG_PAYLOAD_FILE) $(obj)/lar.tmp/normal/payload; \ else \ printf "Error: payload file '$(CONFIG_PAYLOAD_FILE)' not found.\n"; \ exit 1; \ fi - $(Q)cd $(obj)/lar.tmp && \ - ../util/lar/lar $(PARSEELF) $(COMPRESSFLAG) -a \ - ../coreboot.rom normal/payload; + $(Q)$(obj)/util/lar/lar $(PARSEELF) $(COMPRESSFLAG) -a \ + $(obj)/coreboot.rom $(CONFIG_PAYLOAD_FILE):normal/payload; endif ifeq ($(CONFIG_ZERO_AFTER_PAYLOAD),y) $(Q)printf " ZEROING lar -z ./coreboot.rom\n"