aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-07-25 19:15:22 +0200
committerAngel Pons <th3fanbus@gmail.com>2022-08-09 09:34:37 +0000
commitef4eb1714b30afb6d98f1574dbf3316c70d19090 (patch)
tree75fed73e0213426d16627bb67b45c2ad4d4f7d09
parent1a9175f272e39bcbd01e2d0e742fe5eaa6e43f6f (diff)
downloadflashrom-ef4eb1714b30afb6d98f1574dbf3316c70d19090.tar.gz
flashrom-ef4eb1714b30afb6d98f1574dbf3316c70d19090.tar.bz2
flashrom-ef4eb1714b30afb6d98f1574dbf3316c70d19090.zip
Makefile: fix rebuild issues
Flashrom does no longer rebuild everything if `make` is executed. Now the rule config will run, if needed, before any ‘.o’ is built, but no ‘.o’ will be built because there is no config file. https://www.gnu.org/software/make/manual/make.html#Prerequisite-Types Change-Id: Ie9225b79c0eb27cb041654d703cde5efc769cbf2 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66130 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Idwer Vollering <vidwer@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5460747a..f73d1440 100644
--- a/Makefile
+++ b/Makefile
@@ -883,7 +883,7 @@ endif
OBJS = $(CHIP_OBJS) $(PROGRAMMER_OBJS) $(LIB_OBJS)
-all: config $(PROGRAM)$(EXEC_SUFFIX) $(PROGRAM).8
+all: $(PROGRAM)$(EXEC_SUFFIX) $(PROGRAM).8
ifeq ($(ARCH), x86)
@+$(MAKE) -C util/ich_descriptors_tool/ HOST_OS=$(HOST_OS) TARGET_OS=$(TARGET_OS)
endif
@@ -946,7 +946,7 @@ config:
exit 1; \
fi
-%.o: %.c config
+%.o: %.c | config
$(CC) -MMD $(CFLAGS) $(CPPFLAGS) $(FLASHROM_CFLAGS) $(FEATURE_FLAGS) $(SCMDEF) -o $@ -c $<
$(PROGRAM)$(EXEC_SUFFIX): $(CLI_OBJS) libflashrom.a