summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2013-01-28 22:45:18 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-02-05 18:54:17 +0100
commit634150a87c453d2cbfcf169afa478dbb19a99a6a (patch)
tree1a88540b914823e76eda137c875f68a7900c4d3d
parent2b9f6ee2c558beaf9e3d2133cf493a9bd8f4f46f (diff)
downloadptxdist-634150a87c453d2cbfcf169afa478dbb19a99a6a.tar.gz
ptxdist-634150a87c453d2cbfcf169afa478dbb19a99a6a.tar.xz
host-checkpolicy: add package
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--rules/host-checkpolicy.in8
-rw-r--r--rules/host-checkpolicy.make28
2 files changed, 36 insertions, 0 deletions
diff --git a/rules/host-checkpolicy.in b/rules/host-checkpolicy.in
new file mode 100644
index 000000000..c5f54c084
--- /dev/null
+++ b/rules/host-checkpolicy.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools_noprompt
+
+config HOST_CHECKPOLICY
+ tristate
+ default ALLYES
+ select HOST_LIBSELINUX
+ select HOST_LIBSEPOL
+ select HOST_FLEX
diff --git a/rules/host-checkpolicy.make b/rules/host-checkpolicy.make
new file mode 100644
index 000000000..9f34d2871
--- /dev/null
+++ b/rules/host-checkpolicy.make
@@ -0,0 +1,28 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_CHECKPOLICY) += host-checkpolicy
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_CHECKPOLICY_CONF_TOOL := NO
+HOST_CHECKPOLICY_MAKE_ENV := $(HOST_ENV)
+HOST_CHECKPOLICY_MAKE_OPT := LIBDIR=$(PTXDIST_SYSROOT_HOST)/lib
+# no ":=" here
+HOST_CHECKPOLICY_INSTALL_OPT = \
+ PREFIX=$(HOST_CHECKPOLICY_PKGDIR) \
+ install
+
+# vim: syntax=make