Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Jiang Lu <lu.jiang@windriver.com>
To: <lu.jiang@windriver.com>, <openembedded-core@lists.openembedded.org>
Subject: [PATCH 1/7] wic:enable wic compile as individual package
Date: Thu, 30 Aug 2018 18:01:16 +0800	[thread overview]
Message-ID: <1535623282-13919-2-git-send-email-lu.jiang@windriver.com> (raw)
In-Reply-To: <1535623282-13919-1-git-send-email-lu.jiang@windriver.com>

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



  reply	other threads:[~2018-08-30 10:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-30 10:01 [PATCH 0/7] wic:allow wic compile as an individual package Jiang Lu
2018-08-30 10:01 ` Jiang Lu [this message]
2018-08-30 10:01 ` [PATCH 2/7] wic:move wic src into meta/receipt-support/wic Jiang Lu
2018-08-30 10:01 ` [PATCH 3/7] image_type_wic:add wic-native into depend Jiang Lu
2018-08-30 10:01 ` [PATCH 4/7] wic:allow wic run outof bb enviroment Jiang Lu
2018-08-30 10:01 ` [PATCH 5/7] wic:direct:remove same entry when updating fstab Jiang Lu
2018-08-30 10:01 ` [PATCH 6/7] wic:bootimg-efi:try other place for efi Jiang Lu
2018-08-30 10:01 ` [PATCH 7/7] wic:mkefidisk:add use-uuid for all partitions Jiang Lu
2018-08-30 10:32 ` ✗ patchtest: failure for wic:allow wic compile as an individual package Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2018-08-31  2:15 [v2] [PATCH 0/7] " Jiang Lu
2018-08-31  2:15 ` [PATCH 1/7] wic:enable wic compile as " Jiang Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1535623282-13919-2-git-send-email-lu.jiang@windriver.com \
    --to=lu.jiang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox