|
@@ -323,7 +323,7 @@ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
|
|
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
-fno-strict-aliasing -fno-common \
|
|
-fno-strict-aliasing -fno-common \
|
|
-Werror-implicit-function-declaration
|
|
-Werror-implicit-function-declaration
|
|
-AFLAGS := -D__ASSEMBLY__
|
|
|
|
|
|
+KBUILD_AFLAGS := -D__ASSEMBLY__
|
|
|
|
|
|
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
|
|
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
|
|
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
|
|
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
|
|
@@ -336,7 +336,7 @@ export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
|
|
|
|
|
|
export CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS
|
|
export CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS
|
|
export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE
|
|
export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE
|
|
-export AFLAGS AFLAGS_KERNEL AFLAGS_MODULE
|
|
|
|
|
|
+export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE
|
|
|
|
|
|
# When compiling out-of-tree modules, put MODVERDIR in the module
|
|
# When compiling out-of-tree modules, put MODVERDIR in the module
|
|
# tree rather than in the kernel tree. The kernel tree might
|
|
# tree rather than in the kernel tree. The kernel tree might
|
|
@@ -507,7 +507,7 @@ endif
|
|
|
|
|
|
ifdef CONFIG_DEBUG_INFO
|
|
ifdef CONFIG_DEBUG_INFO
|
|
KBUILD_CFLAGS += -g
|
|
KBUILD_CFLAGS += -g
|
|
-AFLAGS += -gdwarf-2
|
|
|
|
|
|
+KBUILD_AFLAGS += -gdwarf-2
|
|
endif
|
|
endif
|
|
|
|
|
|
# Force gcc to behave correct even for buggy distributions
|
|
# Force gcc to behave correct even for buggy distributions
|
|
@@ -1502,7 +1502,7 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files))
|
|
cmd_rmfiles = rm -f $(rm-files)
|
|
cmd_rmfiles = rm -f $(rm-files)
|
|
|
|
|
|
|
|
|
|
-a_flags = -Wp,-MD,$(depfile) $(AFLAGS) $(AFLAGS_KERNEL) \
|
|
|
|
|
|
+a_flags = -Wp,-MD,$(depfile) $(KBUILD_AFLAGS) $(AFLAGS_KERNEL) \
|
|
$(NOSTDINC_FLAGS) $(CPPFLAGS) \
|
|
$(NOSTDINC_FLAGS) $(CPPFLAGS) \
|
|
$(modkern_aflags) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o)
|
|
$(modkern_aflags) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o)
|
|
|
|
|