6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【yocto】レシピ内変数の早見表

Last updated at Posted at 2022-06-21

はじめに

  • デフォルトでは、おそらく下記表のようになっている
  • 環境によっては必ずしも下記表とは限らないため、注意すること
  • (メンテ中)

path系変数

変数名 内容 備考
${base_bindir} /bin -
${base_libdir} /lib -
${base_prefix} -
${base_sbindir} /sbin -
${bindir} /usr/bin -
${datadir} /usr/share -
${docdir} /usr/share/doc -
${exec_prefix} /usr -
${includedir} /usr/include -
${infodir} /usr/share/info -
${libdir} /usr/lib -
${libexecdir} /usr/libexec -
${localstatedir} /var -
${mandir} /usr/share/man -
${nonarch_base_libdir} /lib -
${nonarch_libdir} /usr/lib -
${oldincludedir} /usr/include -
${prefix} /usr -
${sbindir} /usr/sbin -
${servicedir} /srv -
${sharedstatedir} /com -
${sysconfdir} /etc -
${systemd_system_unitdir} /lib/systemd/system -
${systemd_unitdir} /lib/systemd -
${systemd_user_unitdir} /usr/lib/systemd/user -
  • 確認方法は2通り
$ cat poky/meta/conf/bitbake.conf
$ bitbake -e recipe-name | grep "export "

その他

変数名 内容 備考
${S} ソースコードの展開先
${BPN} レシピ名 zlib-native-1.2.11-r0の場合、zlib
${PN} (prefix、suffixが付いた)レシピ名 zlib-native-1.2.11-r0の場合、zlib-native。BBCLASSEXTENDでnative等を無指定の場合、\${PN}=${BPN}。
${PV} バージョン zlib-native-1.2.11-r0の場合、1.2.11
${PR} リビジョン zlib-native-1.2.11-r0の場合、r0
${BP} \${BPN}-${PV} zlib-native-1.2.11-r0の場合、zlib-1.2.11
${PF} \${PN}-\${PV}-${PV} zlib-native-1.2.11-r0の場合、zlib-native-1.2.11-r0
${TOPDIR} buildディレクトリ poky/build
${TMPDIR} ${TOPDIR}/tmp poky/build/tmp
${WORKDIR} \${TMPDIR}/work/\${MULTIMACH_TARGET_SYS}/
\${PN}/\${EXTENDPE}\${PV}-\${PR}
zlib-native-1.2.11-r0の場合、poky/build/tmp/work/x86_64-linux/zlib-native/1.2.11-r0
${D} ${WORKDIR}/image zlib-native-1.2.11-r0の場合、poky/build/tmp/work/x86_64-linux/zlib-native/1.2.11-r0/image
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?