我需要为我的机器编译u-boot,这是一个带有32位工具链的64位arm核心。问题在于所有 我的其他食谱使用64位linaro工具链。如何告诉bitbake使用32位linaro进行u-boot?
我试图在我的u-boot配方中添加以下内容:
UBOOT_ARCH = "arm"
PACKAGE_ARCH = "armv7a"
CROSS_COMPILE="arm-poky-linux-gnueabi-"
但似乎没有任何效果。它继续使用aarch64-poky-linux-gcc
来编译u-boot。我的食谱目前看起来像这样:
DESCRIPTION = "U-boot for mymachine"
require recipes-bsp/u-boot/u-boot.inc
LICENSE = "GPLv2"
COMPATIBLE_MACHINE = "mymachine"
UBOOT_MACHINE_mymachine = "mymachine_config"
UBOOT_ARCH_mymachine = "arm"
PACKAGE_ARCH = "armv7a"
CROSS_COMPILE="arm-poky-linux-gnueabi-"
SRC_URI = "git://github.com/mymachine/u-boot-mymachine.git;branch=master \
file://boot.cmd"
SRCREV="${AUTOREV}"
PV = "v2016.03"
(...)
我的machine.conf
有:
require conf/machine/include/arm64/arch-armv8.inc