summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-08-01 17:49:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-08-01 17:49:27 +0200
commite986897cd0fdeae46ec0933d0acc7c5d5efa4008 (patch)
treea793c8648a7f0b69bfe63b8dc0c6ff3ad34c5a56 /scripts
parent363a1343698aa2d3aeaee8f7d115ca01e3ae7b32 (diff)
parent991e1caf2fdaf018a7949f1c138052ff4354b509 (diff)
downloadbarebox-e986897cd0fdeae46ec0933d0acc7c5d5efa4008.tar.gz
barebox-e986897cd0fdeae46ec0933d0acc7c5d5efa4008.tar.xz
Merge branch 'for-next/compressed-prepare'
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build25
1 files changed, 24 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index f70e2b946d..1a82c44bd4 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -7,7 +7,30 @@ src := $(obj)
PHONY := __build
__build:
-# Read .config if it exist, otherwise ignore
+# 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 :=
+asflags-y :=
+ccflags-y :=
+cppflags-y :=
+ldflags-y :=
+
+subdir-asflags-y :=
+subdir-ccflags-y :=
+
+# Read auto.conf if it exists, otherwise ignore
-include include/config/auto.conf
include scripts/Kbuild.include