]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: Correct the binman rule
authorSimon Glass <sjg@chromium.org>
Thu, 10 Nov 2022 02:14:40 +0000 (19:14 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Nov 2022 22:13:34 +0000 (15:13 -0700)
This currently uses if_changed on a phony target. Use a real file as the
target and add FORCE at the end, as required. Drop the 'inputs' phony
since it is not needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile

index 47dbdcc6ae3d65767f39c097f4b2f35226b5a636..8b5560732c7cccde7b86ba23daa2056b66ba8f93 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1108,18 +1108,15 @@ define deprecated
 
 endef
 
-PHONY += inputs
-inputs: $(INPUTS-y)
-
-all: .binman_stamp inputs
+# Timestamp file to make sure that binman always runs
+.binman_stamp: $(INPUTS-y) FORCE
 ifeq ($(CONFIG_BINMAN),y)
        $(call if_changed,binman)
 endif
-
-# Timestamp file to make sure that binman always runs
-.binman_stamp: FORCE
        @touch $@
 
+all: .binman_stamp
+
 ifeq ($(CONFIG_DEPRECATED),y)
        $(warning "You have deprecated configuration options enabled in your .config! Please check your configuration.")
 endif