【发布时间】:2020-04-02 22:17:52
【问题描述】:
我正在尝试将 tmux 包添加到我使用 BitBake 构建的映像中。
tmux 的配方是众所周知的 bitbake:
user@ubuntu:/opt/user/build$ bitbake-layers show-recipes | grep -A 1 tmux
tmux:
meta-oe 2.1
将此行添加到我的 conf/local.conf:
IMAGE_INSTALL_append = " tmux"
清理并构建映像:
bitbake -c cleansstate phytec-headless-image
bitbake -c clean phytec-headless-image
bitbake phytec-headless-image
构建的输出:
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.8"
TARGET_SYS = "arm-phytec-linux-gnueabi"
MACHINE = "phyboard-mira-imx6-9"
DISTRO = "yogurt"
DISTRO_VERSION = "BSP-Yocto-i.MX6-PD18.1.2"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:5f660914cd7eec8117efccdf1eb29c466b4e74f7"
meta-oe
meta-networking
meta-python
meta-multimedia = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-gstreamer1.0 = "HEAD:802a5db727edf0ec1d142122241c857bffab8667"
meta-phytec = "HEAD:fcc5c4c755fd273b951ac4726b795ca5a9e9a5ed"
meta-rauc = "HEAD:e9c3928d6c24bd58c613bd8334066021946d6347"
meta-qt5 = "HEAD:e6fb3850d43f857e87f7c53fc7df5933fef98cbd"
meta-yogurt = "HEAD:608387f14f29509af5d029347ab2049764b453d2"
将镜像复制到sdcard,它可以正常启动。但是没有tmux:
root@phyboard-mira-imx6-3:~# tmux
-sh: tmux: command not found
root@phyboard-mira-imx6-3:~# find / -name tmux
root@phyboard-mira-imx6-3:~#
感谢您提供有关为什么不将 tmux 添加到图像中的指导或提示。
【问题讨论】:
-
试试
IMAGE_INSTALL_append +=。但在刷新图像之前,您可以在 `tmp/work/phyboard-mira-imx6-9/phytec-headless-image/*/rootfs.这样您就可以在刷机之前确保它已安装在目标 RFS 中。