diff options
Diffstat (limited to 'payloads/external/GRUB2')
-rw-r--r-- | payloads/external/GRUB2/Makefile | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/payloads/external/GRUB2/Makefile b/payloads/external/GRUB2/Makefile index 7cac6a3219..dee7f6973b 100644 --- a/payloads/external/GRUB2/Makefile +++ b/payloads/external/GRUB2/Makefile @@ -6,21 +6,8 @@ NAME-$(CONFIG_GRUB2_REVISION)=$(CONFIG_GRUB2_REVISION_ID) project_git_repo=git://git.sv.gnu.org/grub.git project_dir=grub2 -unexport KCONFIG_AUTOCONFIG -unexport CFLAGS -unexport CPPFLAGS -unexport CCASFLAGS -unexport CC -unexport BUILD_CC -unexport TARGET_CC -unexport TARGET_CFLAGS -unexport TARGET_CPPFLAGS -unexport TARGET_STRIP -unexport TARGET_OBJCOPY -unexport HOST_CFLAGS -unexport HOST_CPPFLAGS -unexport HOST_CC - +unexport HOSTCC CC LD OBJCOPY STRIP +MAKEOVERRIDES := all: grub2 @@ -40,19 +27,19 @@ config: checkout rm -rf grub2/build mkdir grub2/build cd grub2 && ./autogen.sh - cd grub2/build && ../configure BUILD_CC="$(HOSTCC)" CC="$(HOSTCC)" \ - TARGET_CC="$(CC)" \ - TARGET_OBJCOPY="$(OBJCOPY)" TARGET_STRIP="$(STRIP)" CFLAGS=-O2 TARGET_CFLAGS=-Os --with-platform=coreboot \ - --enable-boot-time + cd grub2/build && ../configure CC="$(HOSTCC)" LD="$(LD)" \ + TARGET_CC="$(CC)" TARGET_OBJCOPY="$(OBJCOPY)" TARGET_STRIP="$(STRIP)" \ + CFLAGS=-O2 TARGET_CFLAGS=-Os \ + --with-platform=coreboot --enable-boot-time --disable-werror grub2: config echo " MAKE GRUB2 $(NAME-y)" - $(MAKE) -C grub2/build CC="$(HOSTCC)" + $(MAKE) -C grub2/build $(MAKE) -C grub2/build default_payload.elf \ EXTRA_PAYLOAD_MODULES="$(CONFIG_GRUB2_EXTRA_MODULES)" clean: - test -d grub2 && $(MAKE) -C grub2 clean || exit 0 + test -f grub2/build/Makefile && $(MAKE) -C grub2/build clean || exit 0 distclean: rm -rf grub2 |