diff options
Diffstat (limited to 'meta/classes/kernel-arch.bbclass')
-rw-r--r-- | meta/classes/kernel-arch.bbclass | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index b3b78b6278..a51e82b6c4 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass | |||
@@ -43,3 +43,16 @@ def map_uboot_arch(a, d): | |||
43 | 43 | ||
44 | export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}" | 44 | export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}" |
45 | 45 | ||
46 | # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture | ||
47 | # specific options necessary for building the kernel and modules. | ||
48 | TARGET_CC_KERNEL_ARCH ?= "" | ||
49 | HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" | ||
50 | TARGET_LD_KERNEL_ARCH ?= "" | ||
51 | HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" | ||
52 | TARGET_AR_KERNEL_ARCH ?= "" | ||
53 | HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}" | ||
54 | |||
55 | KERNEL_CC = "${CC} ${HOST_CC_KERNEL_ARCH}" | ||
56 | KERNEL_LD = "${LD} ${HOST_LD_KERNEL_ARCH}" | ||
57 | KERNEL_AR = "${AR} ${HOST_AR_KERNEL_ARCH}" | ||
58 | |||