莱因电博

Li-e.cn

Li Internet Electronic Blog
@rss

Yocto工程 构建Linux系统文件常用目录定义

The system directory definition when Yocto builds the rootf system

————————————————————

例如:一个关于“myprogram”的配方文件的安装示意:

do_install() {
  install -d ${D}${bindir}
  install -m 0644 ${S}/myprogram ${D}${bindir}
}
Yocto参数 系统文件路径
bindir /usr/bin
sbindir /usr/sbin
libdir /usr/lib
sysconfdir /etc
servicedir /srv
sharedstatedir /com
localstatedir /var
datadir /usr/share
infodir /usr/info
mandir /usr/man
docdir /usr/doc
systemd_unitdir /usr/lib/systemd
systemd_system_unitdir /usr/lib/systemd/system
systemd_user_unitdir /usr/lib/systemd/user
includedir /usr/include

有关这些内容的定义,可见:

~/yocto-project/source/poky/meta/conf/bitbake.conf*
(C) 2019 - 2024 Li-e.cn莱因电博(立网电子博客) | Powered by Vercel , based on Hugo with Gists theme.