summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-02-20 15:29:47 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-02-20 15:29:47 +0800
commit2c2506fbecd39912f48767583f18b14eea098e7f (patch)
tree9a27e31ab0a2f124b5e6678619ff19d88aa1f79b
parent4923d17aeaa1e0f4ffdd1cffe72261bfdddda3b1 (diff)
downloadmeta-selinux-2c2506fbecd39912f48767583f18b14eea098e7f.tar.gz
Add selinux common include file for build.
-rw-r--r--recipes-security/selinux/selinux_common.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-security/selinux/selinux_common.inc b/recipes-security/selinux/selinux_common.inc
new file mode 100644
index 0000000..6997cee
--- /dev/null
+++ b/recipes-security/selinux/selinux_common.inc
@@ -0,0 +1,21 @@
1HOMEPAGE = "http://userspace.selinuxproject.org"
2
3# EXTRA_OEMAKE is typically: -e MAKEFLAGS=
4# "MAKEFLAGS= " causes problems as ENV variables will not pass to subdirs, so
5# we redefine EXTRA_OEMAKE here
6EXTRA_OEMAKE = "-e"
7
8do_compile() {
9 oe_runmake all \
10 INCLUDEDIR='${STAGING_INCDIR}' \
11 LIBDIR='${STAGING_LIBDIR}'
12}
13
14do_install() {
15 oe_runmake install \
16 DESTDIR="${D}" \
17 PREFIX="${D}/${prefix}" \
18 INCLUDEDIR="${D}/${includedir}" \
19 LIBDIR="${D}/${libdir}" \
20 SHLIBDIR="${D}/${base_libdir}"
21}