checkpolicy: allow compiling for target
authorAdam Duskett <Aduskett@gmail.com>
Thu, 2 Feb 2017 22:45:03 +0000 (17:45 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 9 Apr 2017 13:30:02 +0000 (15:30 +0200)
commitb06110621d5b3e936cec5eb433736db50ac36fd1
tree2a48464e9beac1d345b88cb0941f0d35bdb1618d
parent86dcd0e6fecf0d19ceee211e0efc586aa023cb31
checkpolicy: allow compiling for target

checkpolicy is currently a host-only package, however it is a
dependency of audit2allow. This patch allows for checkpolicy to be
compiled for the target.

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
[Thomas:
 - remove LIBSELINUX_INSTALL_STAGING = YES, doing it in
   checkpolicy.mk is wrong, and libselinux is already installed to
   staging
 - add "select BR2_PACKAGE_LIBSELINUX" in Config.in, and propagate the
   necessary dependencies
 - add host-flex in dependencies, since it is also needed (in addition
   to target flex).]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/checkpolicy/Config.in [new file with mode: 0644]
package/checkpolicy/checkpolicy.mk