diff options
| author | Sam Ravnborg <sam@ravnborg.org> | 2007-05-28 16:47:48 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@ravnborg.org> | 2007-07-16 15:15:49 -0400 |
| commit | d72e5edbf4d13adfe489e9e6114a4922891ddcb2 (patch) | |
| tree | 38c5f4659298349cb7b8bafb92559c5a767ef24e /scripts | |
| parent | 7015030faf4af623804d63b5345c45fa0cad8b74 (diff) | |
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.build | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index a525112847fd..3f7b451f3955 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -7,6 +7,22 @@ src := $(obj) | |||
| 7 | PHONY := __build | 7 | PHONY := __build |
| 8 | __build: | 8 | __build: |
| 9 | 9 | ||
| 10 | # Init all relevant variables used in kbuild files so | ||
| 11 | # 1) they have correct type | ||
| 12 | # 2) they do not inherit any value from the environment | ||
| 13 | obj-y := | ||
| 14 | obj-m := | ||
| 15 | lib-y := | ||
| 16 | lib-m := | ||
| 17 | always := | ||
| 18 | targets := | ||
| 19 | subdir-y := | ||
| 20 | subdir-m := | ||
| 21 | EXTRA_AFLAGS := | ||
| 22 | EXTRA_CFLAGS := | ||
| 23 | EXTRA_CPPFLAGS := | ||
| 24 | EXTRA_LDFLAGS := | ||
| 25 | |||
| 10 | # Read .config if it exist, otherwise ignore | 26 | # Read .config if it exist, otherwise ignore |
| 11 | -include include/config/auto.conf | 27 | -include include/config/auto.conf |
| 12 | 28 | ||
