selinux: update inc file to 3.2

* Drop selinux_DATE.inc since upstream now uses X.Y version instead of
  date for release tag[1]. Move its content to selinux_common.inc.
* Switch to git repo in SRC_URI, then all selinux recipes can use
  unified source.

[1] f63ac245f7

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
Yi Zhao 2021-03-13 13:50:29 +08:00 committed by Joe MacDonald
parent ab7ce3d5f6
commit 2835042b0f
2 changed files with 10 additions and 13 deletions

View File

@ -1,8 +0,0 @@
SELINUX_RELEASE = "20200710"
SRC_URI = "https://github.com/SELinuxProject/selinux/releases/download/${SELINUX_RELEASE}/${BPN}-${PV}.tar.gz"
UPSTREAM_CHECK_URI = "https://github.com/SELinuxProject/selinux/releases"
UPSTREAM_CHECK_REGEX = "libselinux-(?P<pver>.+)\.tar\.gz"
require selinux_common.inc

View File

@ -1,14 +1,19 @@
HOMEPAGE = "https://github.com/SELinuxProject"
SRC_URI = "git://github.com/SELinuxProject/selinux.git"
SRCREV = "cf853c1a0c2328ad6c62fb2b2cc55d4926301d6b"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
do_compile() {
oe_runmake all
}
do_install() {
oe_runmake install \
DESTDIR="${D}" \
PREFIX="${prefix}" \
INCLUDEDIR="${includedir}" \
LIBDIR="${libdir}" \
SHLIBDIR="${base_libdir}"
DESTDIR="${D}" \
PREFIX="${prefix}" \
INCLUDEDIR="${includedir}" \
LIBDIR="${libdir}" \
SHLIBDIR="${base_libdir}"
}