[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [PATCH 1/7] wic:enable wic compile as individual package
From:       Jiang Lu <lu.jiang () windriver ! com>
Date:       2018-08-31 2:15:04
Message-ID: 1535681710-29461-2-git-send-email-lu.jiang () windriver ! com
[Download RAW message or body]

Enable wic compile as an individual package.

Signed-off-by: Jiang Lu <lu.jiang@windriver.com>
---
 meta/recipes-support/wic/files/setup.py | 18 ++++++++++++++++++
 meta/recipes-support/wic/wic_0.2.0.bb   | 24 ++++++++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 meta/recipes-support/wic/files/setup.py
 create mode 100644 meta/recipes-support/wic/wic_0.2.0.bb

diff --git a/meta/recipes-support/wic/files/setup.py b/meta/recipes-support/wic/files/setup.py
new file mode 100644
index 0000000..5a147f9
--- /dev/null
+++ b/meta/recipes-support/wic/files/setup.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+import os
+from distutils.core import setup
+
+packages = [
+            "wic",
+            "wic/plugins/imager",
+            "wic/plugins/source",
+           ]
+
+setup(name = "wic",
+      version="0.2.0",
+      description="wic' is the OpenEmbedded Image Creator",
+      author="Tom Zanussi",
+      author_email="tom.zanussi@linux.intel.com",
+      packages=packages
+)
diff --git a/meta/recipes-support/wic/wic_0.2.0.bb b/meta/recipes-support/wic/wic_0.2.0.bb
new file mode 100644
index 0000000..1224768
--- /dev/null
+++ b/meta/recipes-support/wic/wic_0.2.0.bb
@@ -0,0 +1,24 @@
+SUMMARY = "Wic installer script"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+RDEPENDS_${PN} += "mtools"
+
+SRC_URI = " \
+	file://wic.py \
+	file://setup.py \
+	file://wic \
+"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}:${THISDIR}/files:"
+
+S = "${WORKDIR}/"
+
+inherit setuptools3
+
+do_install_append() {
+    install -d 0755 ${D}/${bindir}
+    install -m 0755 ${S}/wic.py ${D}${bindir}/wic
+}
+
+BBCLASSEXTEND = "native"
-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic