summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/selinux_common.inc
blob: e53792d2bfb3da032ef2107b2b1e38c959698054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
HOMEPAGE = "https://github.com/SELinuxProject"

# EXTRA_OEMAKE is typically: -e MAKEFLAGS=
# "MAKEFLAGS= " causes problems as ENV variables will not pass to subdirs, so
# we redefine EXTRA_OEMAKE here
EXTRA_OEMAKE = "-e"

# Releases are now from the base of the full tree, necessitating our skipping
# through an extra level of directories.
S = "${WORKDIR}/selinux-${BPN}-${PV}/${BPN}"

do_compile() {
    oe_runmake all \
            INCLUDEDIR='${STAGING_INCDIR}' \
            LIBDIR='${STAGING_LIBDIR}'
}

do_install() {
    oe_runmake install \
            DESTDIR="${D}" \
            PREFIX="${D}/${prefix}" \
            INCLUDEDIR="${D}/${includedir}" \
            LIBDIR="${D}/${libdir}" \
            SHLIBDIR="${D}/${base_libdir}"
}