diff options
author | Ross Burton <ross.burton@intel.com> | 2013-06-20 17:38:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-25 17:30:33 +0100 |
commit | fd9bad3e48a605e9fd28c129413300ff6b548788 (patch) | |
tree | 3b3acec60de3b7b9c63d926a430c121c20e5d0f1 | |
parent | 1b4b25d3cebab90398db208281d54e7442d43bcd (diff) | |
download | openembedded-core-fd9bad3e48a605e9fd28c129413300ff6b548788.tar.gz openembedded-core-fd9bad3e48a605e9fd28c129413300ff6b548788.tar.bz2 openembedded-core-fd9bad3e48a605e9fd28c129413300ff6b548788.zip |
libpam: check if PAM is enabled when building
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.1.6.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb index 96133c361b..f811f4ce0f 100644 --- a/meta/recipes-extended/pam/libpam_1.1.6.bb +++ b/meta/recipes-extended/pam/libpam_1.1.6.bb @@ -99,3 +99,9 @@ do_install() { # The lsb requires unix_chkpwd has setuid permission chmod 4755 ${D}${sbindir}/unix_chkpwd } + +python do_pam_sanity () { + if "pam" not in d.getVar("DISTRO_FEATURES", True).split(): + bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly") +} +addtask pam_sanity before do_configure |