Skip to content

Commit

Permalink
kbuild: avoid environment to set variables used by kbuild
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sravnborg committed Jul 16, 2007
1 parent 7015030 commit d72e5ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/Makefile.build
Expand Up @@ -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

Expand Down

0 comments on commit d72e5ed

Please sign in to comment.