I've enabled the SELinux by doing the below changes,
- Added meta-selinux path to BUILDDIR/conf/bblayers.conf file.
- Set DISTRO_FEATURES_append=" pam selinux" in in BUILDDIR/conf/local.conf file.
I've executed the below command to generate a default se-Linux image,
$ bitbake core-image-selinux
And getting an error from RPM Package,
**../../rpm-5.4.15/rpmio/macro.c: In function 'expandMacro':
../../rpm-5.4.15/rpmio/macro.c:2309:15: error: '_globalI' undeclared (first use in this function)
rpmsm sm = (_globalI ? NULL
^~~~~~~~**
for the time being, I override the error by removing the inherit with-selinux from selinux/recipes-devtools/rpm/rpm_selinux.inc
.
Couldn't find a similar issue in google or issue reported. Could you please someone explain to me, how to debug this issue?