blob: 5071e974ec56faf97bd81179e8691203b7904108 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- a/Makefile
+++ b/Makefile
@@ -81,31 +81,6 @@
One of the project's primary goals is to provide an open and collaborative environment making it the ideal home for development of innovative ideas.
endef
-
-# Clean out undesirable variables from the environment and command-line
-# to remove the chance that they will cause problems with our build
-define SANITIZE_VAR
-$(if $(filter-out undefined,$(origin $(1))),
- $(info $(EMPTY) NOTE Sanitized $(2) variable '$(1)' from $(origin $(1)))
- MAKEOVERRIDES = $(filter-out $(1)=%,$(MAKEOVERRIDES))
- override $(1) :=
- unexport $(1)
-)
-endef
-
-# These specific variables can influence compilation in unexpected (and undesirable) ways
-# gcc flags
-SANITIZE_GCC_VARS := TMPDIR GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
-# preprocessor flags
-SANITIZE_GCC_VARS += CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH DEPENDENCIES_OUTPUT
-# make flags
-SANITIZE_GCC_VARS += CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LDLIBS
-$(foreach var, $(SANITIZE_GCC_VARS), $(eval $(call SANITIZE_VAR,$(var),disallowed)))
-
-# These specific variables used to be valid but now they make no sense
-SANITIZE_DEPRECATED_VARS := USE_BOOTLOADER CLEAN_BUILD
-$(foreach var, $(SANITIZE_DEPRECATED_VARS), $(eval $(call SANITIZE_VAR,$(var),deprecated)))
-
# Decide on a verbosity level based on the V= parameter
export AT := @
ifndef V
|