summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-05-28 22:47:48 +0200
committerSam Ravnborg <sam@ravnborg.org>2007-07-16 21:15:49 +0200
commitd72e5edbf4d13adfe489e9e6114a4922891ddcb2 (patch)
tree38c5f4659298349cb7b8bafb92559c5a767ef24e /scripts
parent7015030faf4af623804d63b5345c45fa0cad8b74 (diff)
downloadop-kernel-dev-d72e5edbf4d13adfe489e9e6114a4922891ddcb2.zip
op-kernel-dev-d72e5edbf4d13adfe489e9e6114a4922891ddcb2.tar.gz
kbuild: avoid environment to set variables used by kbuild
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index a525112..3f7b451 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -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
OpenPOWER on IntegriCloud