Skip to contentSkip to conversation

kbuild: avoid environment to set variables used by kbuild

PATCH In review Sam Ravnborg 1 participant 1 message Jun 3, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 7/19 kbuild: avoid environment to set variables used by kbuild

Subject: [PATCH 07/19] kbuild: avoid environment to set variables used by kbuild
From: Sam Ravnborg <[email protected]>
Date: Mon, 28 May 2007 22:47:48 +0200

A few of the variables used by kbuild has fixed naming. Make sure we do not pick up random values from the environment.

---
 scripts/Makefile.build |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
scripts/Makefile.build +16 -0
index a525112..3f7b451 100644
@@ -7,6 +7,22 @@ src := $(obj)
 PHONY := __build
 __build:
 
+# Init all relevant variables used in kbuild files so
+# 1) they have correct type
+# 2) they do not inherit any value from the environment
+obj-y :=
+obj-m :=
+lib-y :=
+lib-m :=
+always :=
+targets :=
+subdir-y :=
+subdir-m :=
+EXTRA_AFLAGS   :=
+EXTRA_CFLAGS   :=
+EXTRA_CPPFLAGS :=
+EXTRA_LDFLAGS  :=
+
 # Read .config if it exist, otherwise ignore
 -include include/config/auto.conf
 
Signature · 4 lines
1.5.1.rc3.1544.g8a923


----- End forwarded message -----