From 4ff449272dcbd09a0cad5f64e1e01021ad091a01 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Mon, 14 Aug 2017 01:58:28 +0200 Subject: payloads/external/GRUB2: Only rebuild on config changes Change-Id: I376eea9a3e02b03010fc5c5a05199ea7b2813220 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/20991 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- payloads/external/GRUB2/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'payloads/external/GRUB2/Makefile') diff --git a/payloads/external/GRUB2/Makefile b/payloads/external/GRUB2/Makefile index dee7f6973b..4a0a49106a 100644 --- a/payloads/external/GRUB2/Makefile +++ b/payloads/external/GRUB2/Makefile @@ -22,7 +22,7 @@ checkout: git branch -f $(NAME-y) $(TAG-y) && \ git checkout $(NAME-y) || true -config: checkout +grub2/build/config.h: $(CONFIG_DEP) | checkout echo " CONFIG GRUB2 $(NAME-y)" rm -rf grub2/build mkdir grub2/build @@ -32,6 +32,8 @@ config: checkout CFLAGS=-O2 TARGET_CFLAGS=-Os \ --with-platform=coreboot --enable-boot-time --disable-werror +config: grub2/build/config.h checkout + grub2: config echo " MAKE GRUB2 $(NAME-y)" $(MAKE) -C grub2/build -- cgit v1.2.3