diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -863,7 +863,7 @@ ifneq ($(KBUILD_SRC),) | |||
863 | /bin/false; \ | 863 | /bin/false; \ |
864 | fi; | 864 | fi; |
865 | $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; | 865 | $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; |
866 | $(Q)ln -fsn $(srctree)/include/asm-$(ARCH) include2/asm | 866 | $(Q)ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm |
867 | endif | 867 | endif |
868 | 868 | ||
869 | # prepare2 creates a makefile if using a separate output directory | 869 | # prepare2 creates a makefile if using a separate output directory |
@@ -895,9 +895,9 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH) | |||
895 | # before switching between archs anyway. | 895 | # before switching between archs anyway. |
896 | 896 | ||
897 | include/asm: | 897 | include/asm: |
898 | @echo ' SYMLINK $@ -> include/asm-$(ARCH)' | 898 | @echo ' SYMLINK $@ -> include/asm-$(SRCARCH)' |
899 | $(Q)if [ ! -d include ]; then mkdir -p include; fi; | 899 | $(Q)if [ ! -d include ]; then mkdir -p include; fi; |
900 | @ln -fsn asm-$(ARCH) $@ | 900 | @ln -fsn asm-$(SRCARCH) $@ |
901 | 901 | ||
902 | # Generate some files | 902 | # Generate some files |
903 | # --------------------------------------------------------------------------- | 903 | # --------------------------------------------------------------------------- |
@@ -937,7 +937,8 @@ depend dep: | |||
937 | INSTALL_HDR_PATH=$(objtree)/usr | 937 | INSTALL_HDR_PATH=$(objtree)/usr |
938 | export INSTALL_HDR_PATH | 938 | export INSTALL_HDR_PATH |
939 | 939 | ||
940 | HDRARCHES=$(filter-out generic,$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild))) | 940 | HDRFILTER=generic i386 x86_64 |
941 | HDRARCHES=$(filter-out $(HDRFILTER),$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild))) | ||
941 | 942 | ||
942 | PHONY += headers_install_all | 943 | PHONY += headers_install_all |
943 | headers_install_all: include/linux/version.h scripts_basic FORCE | 944 | headers_install_all: include/linux/version.h scripts_basic FORCE |
@@ -948,11 +949,11 @@ headers_install_all: include/linux/version.h scripts_basic FORCE | |||
948 | 949 | ||
949 | PHONY += headers_install | 950 | PHONY += headers_install |
950 | headers_install: include/linux/version.h scripts_basic FORCE | 951 | headers_install: include/linux/version.h scripts_basic FORCE |
951 | @if [ ! -r $(srctree)/include/asm-$(ARCH)/Kbuild ]; then \ | 952 | @if [ ! -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ |
952 | echo '*** Error: Headers not exportable for this architecture ($(ARCH))'; \ | 953 | echo '*** Error: Headers not exportable for this architecture ($(SRCARCH))'; \ |
953 | exit 1 ; fi | 954 | exit 1 ; fi |
954 | $(Q)$(MAKE) $(build)=scripts scripts/unifdef | 955 | $(Q)$(MAKE) $(build)=scripts scripts/unifdef |
955 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst obj=include | 956 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include |
956 | 957 | ||
957 | PHONY += headers_check_all | 958 | PHONY += headers_check_all |
958 | headers_check_all: headers_install_all | 959 | headers_check_all: headers_install_all |
@@ -962,7 +963,7 @@ headers_check_all: headers_install_all | |||
962 | 963 | ||
963 | PHONY += headers_check | 964 | PHONY += headers_check |
964 | headers_check: headers_install | 965 | headers_check: headers_install |
965 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst obj=include HDRCHECK=1 | 966 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include HDRCHECK=1 |
966 | 967 | ||
967 | # --------------------------------------------------------------------------- | 968 | # --------------------------------------------------------------------------- |
968 | # Modules | 969 | # Modules |