1

我正在尝试构建一个包含 OP-TEE 的 Yocto 图像。我已经习惯了 OP-TEE 的构建仓库(bl1.bin 等)的输出,但我无法让 Yocto 系统做同样的事情。也不/dev/tee存在任何设备(因此可能未配置内核)。尽管已经安装了 xtest 和 optee-examples。我正在尝试首先针对 QEMU ARMv8 构建它。

到目前为止,这是我的配置:

本地配置文件

MACHINE ?= "qemuarm64"

PREFERRED_PROVIDER_virtual/kernel = "linux-linaro-aarch64"

IMAGES_CLASSES = "image_types_bios image_types_uefi" 

DISTRO ?= "poky"

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-system-native = " sdl"

CONF_VERSION = "1"

OPTEEOUTPUTMACHINE = "vexpress"
OPTEEMACHINE = "vexpress-qemu_armv8a"
CORE_IMAGE_EXTRA_INSTALL += "optee-client optee-examples optee-os optee-test python-pycrypto"
INSANE_SKIP_optee-examples = "ldflags"
DISTRO_FEATURES_append = "optee"

bblayers.conf


BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /mnt/raid/yocto_stuff/arm64/poky/meta \
  /mnt/raid/yocto_stuff/arm64/poky/meta-poky \
  /mnt/raid/yocto_stuff/arm64/poky/meta-yocto-bsp \
  /mnt/raid/yocto_stuff/arm64/meta-linaro/meta-optee \
  /mnt/raid/yocto_stuff/arm64/meta-linaro/meta-linaro \
  /mnt/raid/yocto_stuff/arm64/meta-openembedded/meta-oe \
  /mnt/raid/yocto_stuff/arm64/meta-openembedded/meta-networking \
  /mnt/raid/yocto_stuff/arm64/meta-openembedded/meta-python \
  "

谢谢你的帮助。

4

0 回答 0