|
@@ -15,10 +15,9 @@ NAME = "People's Front"
|
|
|
PHONY := _all
|
|
|
_all:
|
|
|
|
|
|
-# o Do not use make's built-in rules and variables
|
|
|
-# (this increases performance and avoids hard-to-debug behaviour);
|
|
|
-# o Look for make include files relative to root of kernel src
|
|
|
-MAKEFLAGS += -rR --include-dir=$(CURDIR)
|
|
|
+# Do not use make's built-in rules and variables
|
|
|
+# (this increases performance and avoids hard-to-debug behaviour)
|
|
|
+MAKEFLAGS += -rR
|
|
|
|
|
|
# Avoid funny character set dependencies
|
|
|
unexport LC_ALL
|
|
@@ -136,6 +135,13 @@ KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
|
|
|
$(if $(KBUILD_OUTPUT),, \
|
|
|
$(error failed to create output directory "$(saved-output)"))
|
|
|
|
|
|
+# Look for make include files relative to root of kernel src
|
|
|
+#
|
|
|
+# This does not become effective immediately because MAKEFLAGS is re-parsed
|
|
|
+# once after the Makefile is read. It is OK since we are going to invoke
|
|
|
+# 'sub-make' below.
|
|
|
+MAKEFLAGS += --include-dir=$(CURDIR)
|
|
|
+
|
|
|
PHONY += $(MAKECMDGOALS) sub-make
|
|
|
|
|
|
$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
|
|
@@ -476,8 +482,7 @@ PHONY += outputmakefile
|
|
|
outputmakefile:
|
|
|
ifneq ($(KBUILD_SRC),)
|
|
|
$(Q)ln -fsn $(srctree) source
|
|
|
- $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \
|
|
|
- $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
|
|
|
+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree)
|
|
|
endif
|
|
|
|
|
|
ifeq ($(cc-name),clang)
|
|
@@ -713,7 +718,7 @@ else
|
|
|
|
|
|
# These warnings generated too much noise in a regular build.
|
|
|
# Use make W=1 to enable them (see scripts/Makefile.extrawarn)
|
|
|
-KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
|
|
|
+KBUILD_CFLAGS += -Wno-unused-but-set-variable
|
|
|
endif
|
|
|
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
|
|
@@ -794,10 +799,10 @@ endif
|
|
|
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
|
|
|
|
|
# warn about C99 declaration after statement
|
|
|
-KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
|
|
|
+KBUILD_CFLAGS += -Wdeclaration-after-statement
|
|
|
|
|
|
# disable pointer signed / unsigned warnings in gcc 4.0
|
|
|
-KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
|
|
|
+KBUILD_CFLAGS += -Wno-pointer-sign
|
|
|
|
|
|
# disable stringop warnings in gcc 8+
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
|
|
@@ -1647,9 +1652,6 @@ namespacecheck:
|
|
|
export_report:
|
|
|
$(PERL) $(srctree)/scripts/export_report.pl
|
|
|
|
|
|
-endif #ifeq ($(config-targets),1)
|
|
|
-endif #ifeq ($(mixed-targets),1)
|
|
|
-
|
|
|
PHONY += checkstack kernelrelease kernelversion image_name
|
|
|
|
|
|
# UML needs a little special treatment here. It wants to use the host
|
|
@@ -1756,14 +1758,15 @@ cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \
|
|
|
$(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*)
|
|
|
|
|
|
# read all saved command lines
|
|
|
-
|
|
|
-cmd_files := $(wildcard .*.cmd $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd))
|
|
|
+cmd_files := $(wildcard .*.cmd)
|
|
|
|
|
|
ifneq ($(cmd_files),)
|
|
|
$(cmd_files): ; # Do not try to update included dependency files
|
|
|
include $(cmd_files)
|
|
|
endif
|
|
|
|
|
|
+endif # ifeq ($(config-targets),1)
|
|
|
+endif # ifeq ($(mixed-targets),1)
|
|
|
endif # skip-makefile
|
|
|
|
|
|
PHONY += FORCE
|