default_payload.elf: Always rebuild and remove before build.
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 17 Feb 2016 17:19:18 +0000 (18:19 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 17 Feb 2016 17:19:18 +0000 (18:19 +0100)
It's difficult to know all dependencies. Since it's manual and cheap
target anyway, simply always rebuild it.

Makefile.am

index f132a88..288e621 100644 (file)
@@ -409,7 +409,8 @@ BOOTCHECK_TIMEOUT=180
 bootcheck: $(BOOTCHECKS)
 
 if COND_i386_coreboot
-default_payload.elf: grub-mkstandalone grub-mkimage
+default_payload.elf: grub-mkstandalone grub-mkimage FORCE
+       rm $@
        pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o $@ --modules='ahci pata ehci uhci ohci usb_keyboard usbms part_msdos ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --install-modules='ls linux search configfile normal cbtime cbls memrw iorw minicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain test serial multiboot cbmemc linux16 gzio echo help syslinuxcfg xnu $(shell cat grub-core/fs.lst) password_pbkdf2 $(EXTRA_PAYLOAD_MODULES)' --fonts= --themes= --locales= -d grub-core/ /boot/grub/grub.cfg=$(srcdir)/coreboot.cfg
 endif