diff options
author | Anas Nashif <anas.nashif@intel.com> | 2015-11-02 20:42:35 -0500 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:24:52 -0500 |
commit | df73d321472322462226e48ff423c41ab1393356 (patch) | |
tree | ba5000a3e62702923379bd3d3b7f50cf3f9a84a6 /Kbuild | |
parent | 77ba3c3b8b44342a89d9f91488a069113b978158 (diff) |
build: use architecture definition from kconfig
Do not depend on host architecture and use architecture definition
from the defconfig file of the board.
Change-Id: Idb3dd42524f26bd167a34d6eb024d4d9816e9730
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,4 +1,7 @@ # vim: filetype=make +DQUOTE = " +#This comment line is to fix the highlighting of some editors due the quote effect." +ARCH=$(subst $(DQUOTE),,$(CONFIG_ARCH)) ifneq ($(strip $(CONFIG_MAX_NUM_TASK_IRQS)),) ifneq (${CONFIG_MAX_NUM_TASK_IRQS},0) @@ -90,11 +93,11 @@ OFFSETS_INCLUDE = $(strip \ -I $(srctree)/kernel/microkernel/include \ -I $(srctree)/kernel/nanokernel/include \ -I $(srctree)/lib/libc/minimal/include \ - -I $(srctree)/arch/${SRCARCH}/include ) + -I $(srctree)/arch/${ARCH}/include ) cmd_cc_o_c_1 = $(CC) $(KBUILD_CFLAGS) $(OFFSETS_INCLUDE) -c -o $@ $< -arch/$(SRCARCH)/core/offsets/offsets.o: arch/$(SRCARCH)/core/offsets/offsets.c +arch/$(ARCH)/core/offsets/offsets.o: arch/$(ARCH)/core/offsets/offsets.c $(Q)mkdir -p $(dir $@) $(call if_changed,cc_o_c_1) @@ -112,7 +115,7 @@ define offsetchk fi endef -include/generated/offsets.h: $(GENOFFSET_H) arch/$(SRCARCH)/core/offsets/offsets.o \ +include/generated/offsets.h: $(GENOFFSET_H) arch/$(ARCH)/core/offsets/offsets.o \ include/config/auto.conf FORCE - $(call offsetchk,arch/$(SRCARCH)/core/offsets/offsets.o) + $(call offsetchk,arch/$(ARCH)/core/offsets/offsets.o) |