kbuild: avoid environment to set variables used by kbuild
authorSam Ravnborg <sam@ravnborg.org>
Mon, 28 May 2007 20:47:48 +0000 (22:47 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 16 Jul 2007 19:15:49 +0000 (21:15 +0200)
A few of the variables used by kbuild has fixed naming.
Make sure we do not pick up random values from the environment.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/Makefile.build

index a525112..3f7b451 100644 (file)
@@ -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