0

core-image-selinux为 yocto Warriors 分支生成时,我遇到了错误,

ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: meson failed
ERROR: glib-2.0-native-1_2.58.3-r0 do_configure: Function failed: do_configure (log file is located at /home/panther2/warrior/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.58.3-r0/temp/log.do_configure.34545)
ERROR: Logfile of failure stored in: /home/panther2/warrior/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.58.3-r0/temp/log.do_configure.34545
Log data follows:
| DEBUG: Executing shell function do_configure
| NOTE: Executing meson -Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=false -Dlibmount=true -Dman=false -Dselinux=disabled -Dinternal_pcre=false -Dinstalled_tests=false...
| The Meson build system
| Version: 0.49.2
| Source dir: /home/panther2/warrior/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.58.3-r0/glib-2.58.3
| Build dir: /home/panther2/warrior/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.58.3-r0/build
| Build type: native build
|
| meson.build:1:0: ERROR:  Value disabled is not boolean (true or false).
|
| A full log can be found at /home/panther2/warrior/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.58.3-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/panther2/warrior/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.58.3-r0/temp/log.do_configure.34545)

这就是我所做的:

  • 克隆pokymeta-openembeddedmeta-selinux用于战士分支
  • source poky/oe-init-build-env
  • 在下面的图层中添加bblayers.conf

    /home/panther2/warrior/meta-openembedded/meta-python \

    /home/panther2/warrior/meta-openembedded/meta-oe \

    /home/panther2/warrior/meta-selinux \

  • 在以下行中添加local.conf

    DISTRO_FEATURES_append = "acl xattr pam selinux" PREFERRED_PROVIDER_virtual/refpolicy ?= "refpolicy-mls"

  • 执行bitbake core-image-selinux并得到上述错误

非常感谢您的任何帮助,感谢您的宝贵时间。

4

0 回答 0