sloci-image: allow target and nativesdk variants

We now have use cases for sloci that can run on the target itself,
or have it used in a nativesdk scenario.

To avoid the awkwardly named "nativesdk-sloci-image-native" or
.inc files, we rename the recipe sloci-image_git and use
BBCLASSEXTEND for native/nativesdk support

This is similar to the change sent by: Hongxu Jia <hongxu.jia@windriver.com>,
but is updated to the current sloci-image recipe contents.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2021-05-18 22:39:40 -04:00
parent 07ed07b9f1
commit ef7f5e7c58

View File

@ -11,8 +11,6 @@ DEPENDS = ""
SRCREV = "4015e49763e5a738026a5bbfcf32b38b5a4fa650" SRCREV = "4015e49763e5a738026a5bbfcf32b38b5a4fa650"
PV = "v0.1.0+git${SRCPV}" PV = "v0.1.0+git${SRCPV}"
inherit native
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
do_compile() { do_compile() {
@ -25,3 +23,5 @@ do_install() {
} }
CLEANBROKEN = "1" CLEANBROKEN = "1"
BBCLASSEXTEND = "native nativesdk"