Loading Documentation/arm/Interrupts +2 −8 Original line number Original line Diff line number Diff line Loading @@ -138,14 +138,8 @@ So, what's changed? Set active the IRQ edge(s)/level. This replaces the Set active the IRQ edge(s)/level. This replaces the SA1111 INTPOL manipulation, and the set_GPIO_IRQ_edge() SA1111 INTPOL manipulation, and the set_GPIO_IRQ_edge() function. Type should be one of the following: function. Type should be one of IRQ_TYPE_xxx defined in <linux/irq.h> #define IRQT_NOEDGE (0) #define IRQT_RISING (__IRQT_RISEDGE) #define IRQT_FALLING (__IRQT_FALEDGE) #define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE) #define IRQT_LOW (__IRQT_LOWLVL) #define IRQT_HIGH (__IRQT_HIGHLVL) 3. set_GPIO_IRQ_edge() is obsolete, and should be replaced by set_irq_type. 3. set_GPIO_IRQ_edge() is obsolete, and should be replaced by set_irq_type. Loading Documentation/sound/alsa/ALSA-Configuration.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1024,6 +1024,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed. intel-mac-v3 Intel Mac Type 3 intel-mac-v3 Intel Mac Type 3 intel-mac-v4 Intel Mac Type 4 intel-mac-v4 Intel Mac Type 4 intel-mac-v5 Intel Mac Type 5 intel-mac-v5 Intel Mac Type 5 intel-mac-auto Intel Mac (detect type according to subsystem id) macmini Intel Mac Mini (equivalent with type 3) macmini Intel Mac Mini (equivalent with type 3) macbook Intel Mac Book (eq. type 5) macbook Intel Mac Book (eq. type 5) macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3) macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3) Loading Documentation/sparse.txt +4 −4 Original line number Original line Diff line number Diff line Loading @@ -73,10 +73,10 @@ recompiled, or use "make C=2" to run sparse on the files whether they need to be recompiled or not. The latter is a fast way to check the whole tree if you be recompiled or not. The latter is a fast way to check the whole tree if you have already built it. have already built it. The optional make variable CHECKFLAGS can be used to pass arguments to sparse. The optional make variable CF can be used to pass arguments to sparse. The The build system passes -Wbitwise to sparse automatically. To perform build system passes -Wbitwise to sparse automatically. To perform endianness endianness checks, you may define __CHECK_ENDIAN__: checks, you may define __CHECK_ENDIAN__: make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__" make C=2 CF="-D__CHECK_ENDIAN__" These checks are disabled by default as they generate a host of warnings. These checks are disabled by default as they generate a host of warnings. Kbuild +1 −2 Original line number Original line Diff line number Diff line Loading @@ -43,7 +43,7 @@ $(obj)/$(bounds-file): kernel/bounds.s Kbuild # 2) Generate asm-offsets.h # 2) Generate asm-offsets.h # # offsets-file := include/asm-$(SRCARCH)/asm-offsets.h offsets-file := include/asm/asm-offsets.h always += $(offsets-file) always += $(offsets-file) targets += $(offsets-file) targets += $(offsets-file) Loading Loading @@ -81,7 +81,6 @@ arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \ $(call if_changed_dep,cc_s_c) $(call if_changed_dep,cc_s_c) $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild $(Q)mkdir -p $(dir $@) $(call cmd,offsets) $(call cmd,offsets) ##### ##### Loading Makefile +70 −45 Original line number Original line Diff line number Diff line Loading @@ -205,6 +205,9 @@ ifeq ($(ARCH),x86_64) SRCARCH := x86 SRCARCH := x86 endif endif # Where to locate arch specific headers hdr-arch := $(SRCARCH) KCONFIG_CONFIG ?= .config KCONFIG_CONFIG ?= .config # SHELL used by kbuild # SHELL used by kbuild Loading Loading @@ -326,6 +329,7 @@ AFLAGS_KERNEL = # Needed to be compatible with the O= option # Needed to be compatible with the O= option LINUXINCLUDE := -Iinclude \ LINUXINCLUDE := -Iinclude \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ -I$(srctree)/arch/$(hdr-arch)/include \ -include include/linux/autoconf.h -include include/linux/autoconf.h KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) Loading Loading @@ -922,7 +926,9 @@ ifneq ($(KBUILD_SRC),) /bin/false; \ /bin/false; \ fi; fi; $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; $(Q)ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/system.h ]; then \ ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ fi endif endif # prepare2 creates a makefile if using a separate output directory # prepare2 creates a makefile if using a separate output directory Loading @@ -948,22 +954,34 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH) # The asm symlink changes when $(ARCH) changes. # The asm symlink changes when $(ARCH) changes. # Detect this and ask user to run make mrproper # Detect this and ask user to run make mrproper define check-symlink include/asm: FORCE set -e; \ $(Q)set -e; asmlink=`readlink include/asm | cut -d '-' -f 2`; \ if [ -L include/asm ]; then \ if [ -L include/asm ]; then \ asmlink=`readlink include/asm | cut -d '-' -f 2`; \ if [ "$$asmlink" != "$(SRCARCH)" ]; then \ if [ "$$asmlink" != "$(SRCARCH)" ]; then \ echo "ERROR: the symlink $@ points to asm-$$asmlink but asm-$(SRCARCH) was expected"; \ echo "ERROR: the symlink $@ points to asm-$$asmlink but asm-$(SRCARCH) was expected"; \ echo " set ARCH or save .config and run 'make mrproper' to fix it"; \ echo " set ARCH or save .config and run 'make mrproper' to fix it"; \ exit 1; \ exit 1; \ fi; \ fi; \ else \ fi endef # We create the target directory of the symlink if it does # not exist so the test in chack-symlink works and we have a # directory for generated filesas used by some architectures. define create-symlink if [ ! -L include/asm ]; then \ echo ' SYMLINK $@ -> include/asm-$(SRCARCH)'; \ echo ' SYMLINK $@ -> include/asm-$(SRCARCH)'; \ if [ ! -d include ]; then \ if [ ! -d include/asm-$(SRCARCH) ]; then \ mkdir -p include; \ mkdir -p include/asm-$(SRCARCH); \ fi; \ fi; \ ln -fsn asm-$(SRCARCH) $@; \ ln -fsn asm-$(SRCARCH) $@; \ fi fi endef include/asm: FORCE $(Q)$(check-symlink) $(Q)$(create-symlink) # Generate some files # Generate some files # --------------------------------------------------------------------------- # --------------------------------------------------------------------------- Loading Loading @@ -1010,36 +1028,43 @@ firmware_install: FORCE # --------------------------------------------------------------------------- # --------------------------------------------------------------------------- # Kernel headers # Kernel headers INSTALL_HDR_PATH=$(objtree)/usr export INSTALL_HDR_PATH HDRFILTER=generic i386 x86_64 #Default location for installed headers HDRARCHES=$(filter-out $(HDRFILTER),$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild))) export INSTALL_HDR_PATH = $(objtree)/usr PHONY += headers_install_all hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj headers_install_all: include/linux/version.h scripts_basic FORCE # Find out where the Kbuild file is located to support # arch/$(ARCH)/include/asm hdr-dir = $(strip \ $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild), \ arch/$(hdr-arch)/include/asm, include/asm-$(hdr-arch))) # If we do an all arch process set dst to asm-$(hdr-arch) hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) PHONY += __headers __headers: include/linux/version.h scripts_basic FORCE $(Q)$(MAKE) $(build)=scripts scripts/unifdef $(Q)$(MAKE) $(build)=scripts scripts/unifdef $(Q)for arch in $(HDRARCHES); do \ $(MAKE) ARCH=$$arch -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch ;\ PHONY += headers_install_all done headers_install_all: $(Q)$(CONFIG_SHELL) $(srctree)/scripts/headers.sh install PHONY += headers_install PHONY += headers_install headers_install: include/linux/version.h scripts_basic FORCE headers_install: __headers @if [ ! -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ $(if $(wildcard $(srctree)/$(hdr-dir)/Kbuild),, \ echo '*** Error: Headers not exportable for this architecture ($(SRCARCH))'; \ $(error Headers not exportable for the $(SRCARCH) architecture)) exit 1 ; fi $(Q)$(MAKE) $(hdr-inst)=include $(Q)$(MAKE) $(build)=scripts scripts/unifdef $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include PHONY += headers_check_all PHONY += headers_check_all headers_check_all: headers_install_all headers_check_all: headers_install_all $(Q)for arch in $(HDRARCHES); do \ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/headers.sh check $(MAKE) ARCH=$$arch -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ done PHONY += headers_check PHONY += headers_check headers_check: headers_install headers_check: headers_install $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include HDRCHECK=1 $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) HDRCHECK=1 # --------------------------------------------------------------------------- # --------------------------------------------------------------------------- # Modules # Modules Loading Loading @@ -1131,7 +1156,7 @@ MRPROPER_FILES += .config .config.old include/asm .version .old_version \ include/linux/autoconf.h include/linux/version.h \ include/linux/autoconf.h include/linux/version.h \ include/linux/utsrelease.h \ include/linux/utsrelease.h \ include/linux/bounds.h include/asm*/asm-offsets.h \ include/linux/bounds.h include/asm*/asm-offsets.h \ Module.symvers tags TAGS cscope* Module.symvers Module.markers tags TAGS cscope* # clean - Delete most, but leave enough to build external modules # clean - Delete most, but leave enough to build external modules # # Loading @@ -1150,7 +1175,7 @@ clean: archclean $(clean-dirs) \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name 'Module.markers' \) \ -o -name 'Module.markers' -o -name '.tmp_*.o.*' \) \ -type f -print | xargs rm -f -type f -print | xargs rm -f # mrproper - Delete all generated files, including .config # mrproper - Delete all generated files, including .config Loading Loading @@ -1224,21 +1249,17 @@ help: @echo ' cscope - Generate cscope index' @echo ' cscope - Generate cscope index' @echo ' kernelrelease - Output the release version string' @echo ' kernelrelease - Output the release version string' @echo ' kernelversion - Output the version stored in Makefile' @echo ' kernelversion - Output the version stored in Makefile' @if [ -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \ echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \ echo ' (default: $(INSTALL_HDR_PATH))'; \ echo ' (default: $(INSTALL_HDR_PATH))'; \ fi echo '' @echo '' @echo 'Static analysers' @echo 'Static analysers' @echo ' checkstack - Generate a list of stack hogs' @echo ' checkstack - Generate a list of stack hogs' @echo ' namespacecheck - Name space analysis on compiled kernel' @echo ' namespacecheck - Name space analysis on compiled kernel' @echo ' versioncheck - Sanity check on version.h usage' @echo ' versioncheck - Sanity check on version.h usage' @echo ' includecheck - Check for duplicate included header files' @echo ' includecheck - Check for duplicate included header files' @echo ' export_report - List the usages of all exported symbols' @echo ' export_report - List the usages of all exported symbols' @if [ -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ @echo ' headers_check - Sanity check on exported headers'; \ echo ' headers_check - Sanity check on exported headers'; \ echo '' fi @echo '' @echo 'Kernel packaging:' @echo 'Kernel packaging:' @$(MAKE) $(build)=$(package-dir) help @$(MAKE) $(build)=$(package-dir) help @echo '' @echo '' Loading Loading @@ -1411,8 +1432,12 @@ define find-sources \( -name config -o -name 'asm-*' \) -prune \ \( -name config -o -name 'asm-*' \) -prune \ -o -name $1 -print; \ -o -name $1 -print; \ for arch in $(ALLINCLUDE_ARCHS) ; do \ for arch in $(ALLINCLUDE_ARCHS) ; do \ test -e $(__srctree)include/asm-$${arch} && \ find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \ find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \ -name $1 -print; \ -name $1 -print; \ test -e $(__srctree)arch/$${arch}/include/asm && \ find $(__srctree)arch/$${arch}/include/asm $(RCS_FIND_IGNORE) \ -name $1 -print; \ done ; \ done ; \ find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ -name $1 -print; \ -name $1 -print; \ Loading Loading
Documentation/arm/Interrupts +2 −8 Original line number Original line Diff line number Diff line Loading @@ -138,14 +138,8 @@ So, what's changed? Set active the IRQ edge(s)/level. This replaces the Set active the IRQ edge(s)/level. This replaces the SA1111 INTPOL manipulation, and the set_GPIO_IRQ_edge() SA1111 INTPOL manipulation, and the set_GPIO_IRQ_edge() function. Type should be one of the following: function. Type should be one of IRQ_TYPE_xxx defined in <linux/irq.h> #define IRQT_NOEDGE (0) #define IRQT_RISING (__IRQT_RISEDGE) #define IRQT_FALLING (__IRQT_FALEDGE) #define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE) #define IRQT_LOW (__IRQT_LOWLVL) #define IRQT_HIGH (__IRQT_HIGHLVL) 3. set_GPIO_IRQ_edge() is obsolete, and should be replaced by set_irq_type. 3. set_GPIO_IRQ_edge() is obsolete, and should be replaced by set_irq_type. Loading
Documentation/sound/alsa/ALSA-Configuration.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1024,6 +1024,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed. intel-mac-v3 Intel Mac Type 3 intel-mac-v3 Intel Mac Type 3 intel-mac-v4 Intel Mac Type 4 intel-mac-v4 Intel Mac Type 4 intel-mac-v5 Intel Mac Type 5 intel-mac-v5 Intel Mac Type 5 intel-mac-auto Intel Mac (detect type according to subsystem id) macmini Intel Mac Mini (equivalent with type 3) macmini Intel Mac Mini (equivalent with type 3) macbook Intel Mac Book (eq. type 5) macbook Intel Mac Book (eq. type 5) macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3) macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3) Loading
Documentation/sparse.txt +4 −4 Original line number Original line Diff line number Diff line Loading @@ -73,10 +73,10 @@ recompiled, or use "make C=2" to run sparse on the files whether they need to be recompiled or not. The latter is a fast way to check the whole tree if you be recompiled or not. The latter is a fast way to check the whole tree if you have already built it. have already built it. The optional make variable CHECKFLAGS can be used to pass arguments to sparse. The optional make variable CF can be used to pass arguments to sparse. The The build system passes -Wbitwise to sparse automatically. To perform build system passes -Wbitwise to sparse automatically. To perform endianness endianness checks, you may define __CHECK_ENDIAN__: checks, you may define __CHECK_ENDIAN__: make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__" make C=2 CF="-D__CHECK_ENDIAN__" These checks are disabled by default as they generate a host of warnings. These checks are disabled by default as they generate a host of warnings.
Kbuild +1 −2 Original line number Original line Diff line number Diff line Loading @@ -43,7 +43,7 @@ $(obj)/$(bounds-file): kernel/bounds.s Kbuild # 2) Generate asm-offsets.h # 2) Generate asm-offsets.h # # offsets-file := include/asm-$(SRCARCH)/asm-offsets.h offsets-file := include/asm/asm-offsets.h always += $(offsets-file) always += $(offsets-file) targets += $(offsets-file) targets += $(offsets-file) Loading Loading @@ -81,7 +81,6 @@ arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \ $(call if_changed_dep,cc_s_c) $(call if_changed_dep,cc_s_c) $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild $(Q)mkdir -p $(dir $@) $(call cmd,offsets) $(call cmd,offsets) ##### ##### Loading
Makefile +70 −45 Original line number Original line Diff line number Diff line Loading @@ -205,6 +205,9 @@ ifeq ($(ARCH),x86_64) SRCARCH := x86 SRCARCH := x86 endif endif # Where to locate arch specific headers hdr-arch := $(SRCARCH) KCONFIG_CONFIG ?= .config KCONFIG_CONFIG ?= .config # SHELL used by kbuild # SHELL used by kbuild Loading Loading @@ -326,6 +329,7 @@ AFLAGS_KERNEL = # Needed to be compatible with the O= option # Needed to be compatible with the O= option LINUXINCLUDE := -Iinclude \ LINUXINCLUDE := -Iinclude \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ -I$(srctree)/arch/$(hdr-arch)/include \ -include include/linux/autoconf.h -include include/linux/autoconf.h KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) KBUILD_CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) Loading Loading @@ -922,7 +926,9 @@ ifneq ($(KBUILD_SRC),) /bin/false; \ /bin/false; \ fi; fi; $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; $(Q)ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/system.h ]; then \ ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ fi endif endif # prepare2 creates a makefile if using a separate output directory # prepare2 creates a makefile if using a separate output directory Loading @@ -948,22 +954,34 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH) # The asm symlink changes when $(ARCH) changes. # The asm symlink changes when $(ARCH) changes. # Detect this and ask user to run make mrproper # Detect this and ask user to run make mrproper define check-symlink include/asm: FORCE set -e; \ $(Q)set -e; asmlink=`readlink include/asm | cut -d '-' -f 2`; \ if [ -L include/asm ]; then \ if [ -L include/asm ]; then \ asmlink=`readlink include/asm | cut -d '-' -f 2`; \ if [ "$$asmlink" != "$(SRCARCH)" ]; then \ if [ "$$asmlink" != "$(SRCARCH)" ]; then \ echo "ERROR: the symlink $@ points to asm-$$asmlink but asm-$(SRCARCH) was expected"; \ echo "ERROR: the symlink $@ points to asm-$$asmlink but asm-$(SRCARCH) was expected"; \ echo " set ARCH or save .config and run 'make mrproper' to fix it"; \ echo " set ARCH or save .config and run 'make mrproper' to fix it"; \ exit 1; \ exit 1; \ fi; \ fi; \ else \ fi endef # We create the target directory of the symlink if it does # not exist so the test in chack-symlink works and we have a # directory for generated filesas used by some architectures. define create-symlink if [ ! -L include/asm ]; then \ echo ' SYMLINK $@ -> include/asm-$(SRCARCH)'; \ echo ' SYMLINK $@ -> include/asm-$(SRCARCH)'; \ if [ ! -d include ]; then \ if [ ! -d include/asm-$(SRCARCH) ]; then \ mkdir -p include; \ mkdir -p include/asm-$(SRCARCH); \ fi; \ fi; \ ln -fsn asm-$(SRCARCH) $@; \ ln -fsn asm-$(SRCARCH) $@; \ fi fi endef include/asm: FORCE $(Q)$(check-symlink) $(Q)$(create-symlink) # Generate some files # Generate some files # --------------------------------------------------------------------------- # --------------------------------------------------------------------------- Loading Loading @@ -1010,36 +1028,43 @@ firmware_install: FORCE # --------------------------------------------------------------------------- # --------------------------------------------------------------------------- # Kernel headers # Kernel headers INSTALL_HDR_PATH=$(objtree)/usr export INSTALL_HDR_PATH HDRFILTER=generic i386 x86_64 #Default location for installed headers HDRARCHES=$(filter-out $(HDRFILTER),$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild))) export INSTALL_HDR_PATH = $(objtree)/usr PHONY += headers_install_all hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj headers_install_all: include/linux/version.h scripts_basic FORCE # Find out where the Kbuild file is located to support # arch/$(ARCH)/include/asm hdr-dir = $(strip \ $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild), \ arch/$(hdr-arch)/include/asm, include/asm-$(hdr-arch))) # If we do an all arch process set dst to asm-$(hdr-arch) hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) PHONY += __headers __headers: include/linux/version.h scripts_basic FORCE $(Q)$(MAKE) $(build)=scripts scripts/unifdef $(Q)$(MAKE) $(build)=scripts scripts/unifdef $(Q)for arch in $(HDRARCHES); do \ $(MAKE) ARCH=$$arch -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch ;\ PHONY += headers_install_all done headers_install_all: $(Q)$(CONFIG_SHELL) $(srctree)/scripts/headers.sh install PHONY += headers_install PHONY += headers_install headers_install: include/linux/version.h scripts_basic FORCE headers_install: __headers @if [ ! -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ $(if $(wildcard $(srctree)/$(hdr-dir)/Kbuild),, \ echo '*** Error: Headers not exportable for this architecture ($(SRCARCH))'; \ $(error Headers not exportable for the $(SRCARCH) architecture)) exit 1 ; fi $(Q)$(MAKE) $(hdr-inst)=include $(Q)$(MAKE) $(build)=scripts scripts/unifdef $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include PHONY += headers_check_all PHONY += headers_check_all headers_check_all: headers_install_all headers_check_all: headers_install_all $(Q)for arch in $(HDRARCHES); do \ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/headers.sh check $(MAKE) ARCH=$$arch -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ done PHONY += headers_check PHONY += headers_check headers_check: headers_install headers_check: headers_install $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include HDRCHECK=1 $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) HDRCHECK=1 # --------------------------------------------------------------------------- # --------------------------------------------------------------------------- # Modules # Modules Loading Loading @@ -1131,7 +1156,7 @@ MRPROPER_FILES += .config .config.old include/asm .version .old_version \ include/linux/autoconf.h include/linux/version.h \ include/linux/autoconf.h include/linux/version.h \ include/linux/utsrelease.h \ include/linux/utsrelease.h \ include/linux/bounds.h include/asm*/asm-offsets.h \ include/linux/bounds.h include/asm*/asm-offsets.h \ Module.symvers tags TAGS cscope* Module.symvers Module.markers tags TAGS cscope* # clean - Delete most, but leave enough to build external modules # clean - Delete most, but leave enough to build external modules # # Loading @@ -1150,7 +1175,7 @@ clean: archclean $(clean-dirs) \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name 'Module.markers' \) \ -o -name 'Module.markers' -o -name '.tmp_*.o.*' \) \ -type f -print | xargs rm -f -type f -print | xargs rm -f # mrproper - Delete all generated files, including .config # mrproper - Delete all generated files, including .config Loading Loading @@ -1224,21 +1249,17 @@ help: @echo ' cscope - Generate cscope index' @echo ' cscope - Generate cscope index' @echo ' kernelrelease - Output the release version string' @echo ' kernelrelease - Output the release version string' @echo ' kernelversion - Output the version stored in Makefile' @echo ' kernelversion - Output the version stored in Makefile' @if [ -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \ echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \ echo ' (default: $(INSTALL_HDR_PATH))'; \ echo ' (default: $(INSTALL_HDR_PATH))'; \ fi echo '' @echo '' @echo 'Static analysers' @echo 'Static analysers' @echo ' checkstack - Generate a list of stack hogs' @echo ' checkstack - Generate a list of stack hogs' @echo ' namespacecheck - Name space analysis on compiled kernel' @echo ' namespacecheck - Name space analysis on compiled kernel' @echo ' versioncheck - Sanity check on version.h usage' @echo ' versioncheck - Sanity check on version.h usage' @echo ' includecheck - Check for duplicate included header files' @echo ' includecheck - Check for duplicate included header files' @echo ' export_report - List the usages of all exported symbols' @echo ' export_report - List the usages of all exported symbols' @if [ -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ @echo ' headers_check - Sanity check on exported headers'; \ echo ' headers_check - Sanity check on exported headers'; \ echo '' fi @echo '' @echo 'Kernel packaging:' @echo 'Kernel packaging:' @$(MAKE) $(build)=$(package-dir) help @$(MAKE) $(build)=$(package-dir) help @echo '' @echo '' Loading Loading @@ -1411,8 +1432,12 @@ define find-sources \( -name config -o -name 'asm-*' \) -prune \ \( -name config -o -name 'asm-*' \) -prune \ -o -name $1 -print; \ -o -name $1 -print; \ for arch in $(ALLINCLUDE_ARCHS) ; do \ for arch in $(ALLINCLUDE_ARCHS) ; do \ test -e $(__srctree)include/asm-$${arch} && \ find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \ find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \ -name $1 -print; \ -name $1 -print; \ test -e $(__srctree)arch/$${arch}/include/asm && \ find $(__srctree)arch/$${arch}/include/asm $(RCS_FIND_IGNORE) \ -name $1 -print; \ done ; \ done ; \ find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ -name $1 -print; \ -name $1 -print; \ Loading