diff options
-rw-r--r-- | Kbuild | 6 | ||||
-rw-r--r-- | Makefile | 7 |
2 files changed, 7 insertions, 6 deletions
@@ -12,7 +12,7 @@ offsets-file := include/asm-$(ARCH)/asm-offsets.h | |||
12 | 12 | ||
13 | always := $(offsets-file) | 13 | always := $(offsets-file) |
14 | targets := $(offsets-file) | 14 | targets := $(offsets-file) |
15 | targets += arch/$(ARCH)/kernel/asm-offsets.s | 15 | targets += arch/$(SRCARCH)/kernel/asm-offsets.s |
16 | clean-files := $(addprefix $(objtree)/,$(targets)) | 16 | clean-files := $(addprefix $(objtree)/,$(targets)) |
17 | 17 | ||
18 | # Default sed regexp - multiline due to syntax constraints | 18 | # Default sed regexp - multiline due to syntax constraints |
@@ -40,11 +40,11 @@ define cmd_offsets | |||
40 | endef | 40 | endef |
41 | 41 | ||
42 | # We use internal kbuild rules to avoid the "is up to date" message from make | 42 | # We use internal kbuild rules to avoid the "is up to date" message from make |
43 | arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE | 43 | arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c FORCE |
44 | $(Q)mkdir -p $(dir $@) | 44 | $(Q)mkdir -p $(dir $@) |
45 | $(call if_changed_dep,cc_s_c) | 45 | $(call if_changed_dep,cc_s_c) |
46 | 46 | ||
47 | $(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild | 47 | $(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s Kbuild |
48 | $(Q)mkdir -p $(dir $@) | 48 | $(Q)mkdir -p $(dir $@) |
49 | $(call cmd,offsets) | 49 | $(call cmd,offsets) |
50 | 50 | ||
@@ -186,7 +186,8 @@ ARCH ?= $(SUBARCH) | |||
186 | CROSS_COMPILE ?= | 186 | CROSS_COMPILE ?= |
187 | 187 | ||
188 | # Architecture as present in compile.h | 188 | # Architecture as present in compile.h |
189 | UTS_MACHINE := $(ARCH) | 189 | UTS_MACHINE := $(ARCH) |
190 | SRCARCH := $(ARCH) | ||
190 | 191 | ||
191 | KCONFIG_CONFIG ?= .config | 192 | KCONFIG_CONFIG ?= .config |
192 | 193 | ||
@@ -322,7 +323,7 @@ KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) | |||
322 | KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) | 323 | KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) |
323 | 324 | ||
324 | export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION | 325 | export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION |
325 | export ARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC | 326 | export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC |
326 | export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE | 327 | export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE |
327 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS | 328 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS |
328 | 329 | ||
@@ -609,7 +610,7 @@ libs-y := $(libs-y1) $(libs-y2) | |||
609 | vmlinux-init := $(head-y) $(init-y) | 610 | vmlinux-init := $(head-y) $(init-y) |
610 | vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y) | 611 | vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y) |
611 | vmlinux-all := $(vmlinux-init) $(vmlinux-main) | 612 | vmlinux-all := $(vmlinux-init) $(vmlinux-main) |
612 | vmlinux-lds := arch/$(ARCH)/kernel/vmlinux.lds | 613 | vmlinux-lds := arch/$(SRCARCH)/kernel/vmlinux.lds |
613 | export KBUILD_VMLINUX_OBJS := $(vmlinux-all) | 614 | export KBUILD_VMLINUX_OBJS := $(vmlinux-all) |
614 | 615 | ||
615 | # Rule to link vmlinux - also used during CONFIG_KALLSYMS | 616 | # Rule to link vmlinux - also used during CONFIG_KALLSYMS |