diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-07-27 20:32:59 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-30 10:04:03 +0200 |
commit | 7ff489627a9c195f05d831a5549f82487428d211 (patch) | |
tree | 328e21271b9ed69cf6a731dd09b35dab1659d8d6 /scripts | |
parent | 91b632acbf5f41865a4095096d56d29a3a6fea6d (diff) | |
download | barebox-7ff489627a9c195f05d831a5549f82487428d211.tar.gz barebox-7ff489627a9c195f05d831a5549f82487428d211.tar.xz |
kbuild: Init all relevant variables used in kbuild files
import from linux 3.5-rc5
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 25 |
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 |