From ef7f5e7c5825413c8ae35639208ed76fd7c219aa Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 18 May 2021 22:39:40 -0400 Subject: 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 , but is updated to the current sloci-image recipe contents. Signed-off-by: Bruce Ashfield --- .../sloci-image/sloci-image-native_git.bb | 27 ---------------------- recipes-containers/sloci-image/sloci-image_git.bb | 27 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 recipes-containers/sloci-image/sloci-image-native_git.bb create mode 100644 recipes-containers/sloci-image/sloci-image_git.bb diff --git a/recipes-containers/sloci-image/sloci-image-native_git.bb b/recipes-containers/sloci-image/sloci-image-native_git.bb deleted file mode 100644 index a68c6d9a..00000000 --- a/recipes-containers/sloci-image/sloci-image-native_git.bb +++ /dev/null @@ -1,27 +0,0 @@ -SUMMARY = "A simple CLI tool for packing rootfs into a single-layer OCI image" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=948cd8e59069fad992b0469af9ad7966" -SRC_URI = "git://github.com/jirutka/sloci-image.git \ - file://0001-sloci-image-fix-variant-quoting.patch \ - " - - -DEPENDS = "" - -SRCREV = "4015e49763e5a738026a5bbfcf32b38b5a4fa650" -PV = "v0.1.0+git${SRCPV}" - -inherit native - -S = "${WORKDIR}/git" - -do_compile() { - : -} - -do_install() { - cd ${S} - make PREFIX="${exec_prefix}" DESTDIR=${D} install -} - -CLEANBROKEN = "1" diff --git a/recipes-containers/sloci-image/sloci-image_git.bb b/recipes-containers/sloci-image/sloci-image_git.bb new file mode 100644 index 00000000..fc3c329e --- /dev/null +++ b/recipes-containers/sloci-image/sloci-image_git.bb @@ -0,0 +1,27 @@ +SUMMARY = "A simple CLI tool for packing rootfs into a single-layer OCI image" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=948cd8e59069fad992b0469af9ad7966" +SRC_URI = "git://github.com/jirutka/sloci-image.git \ + file://0001-sloci-image-fix-variant-quoting.patch \ + " + + +DEPENDS = "" + +SRCREV = "4015e49763e5a738026a5bbfcf32b38b5a4fa650" +PV = "v0.1.0+git${SRCPV}" + +S = "${WORKDIR}/git" + +do_compile() { + : +} + +do_install() { + cd ${S} + make PREFIX="${exec_prefix}" DESTDIR=${D} install +} + +CLEANBROKEN = "1" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf