AnsweredAssumed Answered

yocto单独编译busybox

Question asked by luo yaojun on Jun 15, 2020
Latest reply on Jun 19, 2020 by luo yaojun

使用yocto工程如何能够单独编译busybox,并生成新的ext4文件系统?

例如:

修改busybox中的源码文件:busybox-1.23.1/libbb/printable_string.c修改代码中某个函数,实现支持中文的显示。

修改完成后使用bitbake fsl-image-qt5并不能生成正确的busybox,如何操作才能正确重新编译busybox并生成我想要的文件系统?

当我使用bitbake -c compile -f busybox编译了busybox后再用命令bitbake fsl-image-qt5生成文件系统时报错:

/yocto/fsl-release-bsp/sources/poky/meta/recipes-core/busybox/busybox_1.23.1.bb.do_compile is tainted from a forced run

ERROR: Unable to install packages. Command '/yocto/fsl-release-bsp/imx6ul/tmp/sysroots/x86_64-linux/usr/bin/smart --quiet --data-dir=/yocto/fsl-release-bsp/imx6ul/tmp/work/imx6ulevk-poky-linux-gnueabi/fsl-image-qt5/1.0-r0/rootfs/var/lib/smart install -y packagegroup-core-ssh-dropbear@all psplash@cortexa7hf_vfp_neon packagegroup-core-tools-profile@imx6ulevk xserver-xorg-extension-glx@cortexa7hf_vfp_neon liberation-fonts@all rpm@cortexa7hf_vfp_neon packagegroup-fsl-pulseaudio@all packagegroup-fsl-tools-benchmark@imx6ulevk smartpm@cortexa7hf_vfp_neon xorg-minimal-fonts@all packagegroup-core-boot@imx6ulevk packagegroup-core-tools-testapps@imx6ulevk mesa-megadriver@cortexa7hf_vfp_neon packagegroup-core-x11-base@all packagegroup-core-nfs-server@all packagegroup-fsl-tools-gpu-external@imx6ulevk packagegroup-fsl-multimedia-gstreamer1.0-core@imx6ulevk packagegroup-fsl-tools-gpu@imx6ulevk packagegroup-core-x11-sato-games@imx6ulevk packagegroup-fsl-tools-testapps@imx6ulevk packagegroup-fsl-tools-bluetooth@all packagegroup-core-tools-debug@all packagegroup-fsl-multimedia-gstreamer1.0-testapps@imx6ulevk packagegroup-base-extended@imx6ulevk packagegroup-core-x11-sato@imx6ulevk locale-base-en-us@cortexa7hf_vfp_neon locale-base-en-gb@cortexa7hf_vfp_neon' returned 1:
error: Can't install packagegroup-core-boot-1.0-r17@imx6ulevk: no package provides busybox-hwclock


ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /yocto/fsl-release-bsp/imx6ul/tmp/work/imx6ulevk-poky-linux-gnueabi/fsl-image-qt5/1.0-r0/temp/log.do_rootfs.9658
ERROR: Task 7 (/yocto/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-qt5.bb, do_rootfs) failed with exit code '1'

 

如何正确修改busybox源码,修改完成后能够正常重新打包文件系统(使用命令bitbake fsl-image-qt5)?

Outcomes