[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20130331214343.GA11285@merkur.ravnborg.org>
Date: Sun, 31 Mar 2013 23:43:43 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: Michal Marek <mmarek@...e.cz>,
Andreas Schwab <schwab@...ux-m68k.org>
Cc: lkml <linux-kernel@...r.kernel.org>,
linux-kbuild <linux-kbuild@...r.kernel.org>
Subject: [PATCH] kbuild: avoid rebuild of file2alias for each build
When introducing devicetable-offsets generation this
had the side-effect that file2alias (and thus modpost)
were build for each kernel build.
devicetable-offsets were introduced in 6543becf26fff612cdadeed7250ccc8d49f67f27
("mod/file2alias: make modalias generation safe for cross compiling")
"make V=2" said this was due to target not included in targets.
So add devicetable-offsets to targets.
Signed-off-by: Sam Ravnborg <sam@...nborg.org>
---
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile
index 9415b56..c8e04e9 100644
--- a/scripts/mod/Makefile
+++ b/scripts/mod/Makefile
@@ -30,10 +30,12 @@ define cmd_offsets
endef
# We use internal kbuild rules to avoid the "is up to date" message from make
+targets += devicetable-offsets.s
scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE
$(Q)mkdir -p $(dir $@)
$(call if_changed_dep,cc_s_c)
+targets += $(devicetable-offsets-file)
$(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s
$(call cmd,offsets)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists