blob: fe8c087b6121219322012f7fe3f5f15e0a186bf5 [file] [log] [blame]
lh758261d2023-07-13 05:52:04 -07001SUMMARY = "SELinux library and simple utilities"
2DESCRIPTION = "libselinux provides an API for SELinux applications to get and set \
3process and file security contexts and to obtain security policy \
4decisions. Required for any applications that use the SELinux API."
5SECTION = "base"
6LICENSE = "PD"
7
8inherit lib_package python3native
9
10DEPENDS += "libsepol libpcre"
11DEPENDS_append_libc-musl = " fts"
12
13def get_policyconfigarch(d):
14 import re
15 target = d.getVar('TARGET_ARCH')
16 p = re.compile('i.86')
17 target = p.sub('i386',target)
18 return "ARCH=%s" % (target)
19EXTRA_OEMAKE += "${@get_policyconfigarch(d)}"
20
21EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'"
22EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts"
23
24BBCLASSEXTEND = "native"