[yocto] [meta-ivi][PATCH] packagegroups: restructure the yocto-ivi PGs

Fahad Usman fahad_usman at mentor.com
Wed Jun 5 21:54:01 PDT 2013


with the current implementation of packagegroups, it's not clear how a
particular recipe map to the GENIVI baseline document.

this scheme remove confusion about which packagegroup a certain recipe belong
to. And provide guidance to the customers about modifying the image. For
instance customers should be careful about replacing specific-p1 components if
they wish to maintain GENIVI compliance.

Signed-off-by: Fahad Usman <fahad_usman at mentor.com>
---
 recipes-yocto-ivi/images/foton-image.bb             |  8 +++++++-
 .../packagegroup-abstract-component-p1.bb           | 21 +++++++++++++++++++++
 ...-p2.bb => packagegroup-abstract-component-p2.bb} | 14 ++++++--------
 .../packagegroup-placeholder-component-p1.bb        | 20 ++++++++++++++++++++
 ...-p1.bb => packagegroup-specific-component-p1.bb} | 21 +++++++--------------
 .../packagegroup-specific-component-p2.bb           | 19 +++++++++++++++++++
 6 files changed, 80 insertions(+), 23 deletions(-)
 create mode 100644 recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p1.bb
 rename recipes-yocto-ivi/packagegroups/{packagegroup-core-p2.bb => packagegroup-abstract-component-p2.bb} (63%)
 create mode 100644 recipes-yocto-ivi/packagegroups/packagegroup-placeholder-component-p1.bb
 rename recipes-yocto-ivi/packagegroups/{packagegroup-core-p1.bb => packagegroup-specific-component-p1.bb} (67%)
 create mode 100644 recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p2.bb

diff --git a/recipes-yocto-ivi/images/foton-image.bb b/recipes-yocto-ivi/images/foton-image.bb
index 6d3077e..0b9a04a 100644
--- a/recipes-yocto-ivi/images/foton-image.bb
+++ b/recipes-yocto-ivi/images/foton-image.bb
@@ -4,6 +4,12 @@ include recipes-yocto-ivi/images/ivi-image.inc
 PV = "4.0.1"
 #PR = "r1"
 
-IMAGE_INSTALL_append = " packagegroup-core-p1 packagegroup-core-p2"
+IMAGE_INSTALL_append = " \
+    packagegroup-abstract-component-p1 \
+    packagegroup-placeholder-component-p1 \
+    packagegroup-specific-component-p2 \
+    packagegroup-abstract-component-p2 \
+    packagegroup-specific-component-p1 \
+"
 
 # Add image specific packages
diff --git a/recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p1.bb b/recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p1.bb
new file mode 100644
index 0000000..7730252
--- /dev/null
+++ b/recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p1.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "GENIVI P1 Abstract components (AC)"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${IVI_COREBASE}/meta-ivi/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+PR = "r0"
+
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-abstract-component-p1 \
+    "
+
+ALLOW_EMPTY_${PN} = "1"
+
+RDEPENDS_${PN} += "\
+    bluez4 \
+    bluez4-systemd \
+    eglibc \
+    layer-management \
+    obex-client \
+    obexd \
+    "
diff --git a/recipes-yocto-ivi/packagegroups/packagegroup-core-p2.bb b/recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p2.bb
similarity index 63%
rename from recipes-yocto-ivi/packagegroups/packagegroup-core-p2.bb
rename to recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p2.bb
index e9b7b86..c9ca67b 100644
--- a/recipes-yocto-ivi/packagegroups/packagegroup-core-p2.bb
+++ b/recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p2.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "P2 packages"
+DESCRIPTION = "GENIVI P2 Abstract components (SC)"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${IVI_COREBASE}/meta-ivi/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 PR = "r0"
@@ -6,16 +6,14 @@ PR = "r0"
 inherit packagegroup
 
 PACKAGES = "\
-    packagegroup-core-p2 \
+    packagegroup-abstract-component-p2 \
     "
 
-RDEPENDS_packagegroup-core-p2 = "\
+ALLOW_EMPTY_${PN} = "1"
+
+
+RDEPENDS_${PN} += "\
     node-state-manager \
     ofono \
     ofono-systemd \
-    pulseaudio-server \
-    wireless-tools \
     "
-
-
-
diff --git a/recipes-yocto-ivi/packagegroups/packagegroup-placeholder-component-p1.bb b/recipes-yocto-ivi/packagegroups/packagegroup-placeholder-component-p1.bb
new file mode 100644
index 0000000..373266a
--- /dev/null
+++ b/recipes-yocto-ivi/packagegroups/packagegroup-placeholder-component-p1.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "GENIVI P1 Placeholder components (PC)"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${IVI_COREBASE}/meta-ivi/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+PR = "r0"
+
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-placeholder-component-p1 \
+    "
+
+ALLOW_EMPTY_${PN} = "1"
+
+
+RDEPENDS_${PN} += "\
+    "
+
+RRECOMMENDS_${PN} = "\
+    packagegroup-xserver-ivi \
+    "
diff --git a/recipes-yocto-ivi/packagegroups/packagegroup-core-p1.bb b/recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p1.bb
similarity index 67%
rename from recipes-yocto-ivi/packagegroups/packagegroup-core-p1.bb
rename to recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p1.bb
index 657aa89..731813b 100644
--- a/recipes-yocto-ivi/packagegroups/packagegroup-core-p1.bb
+++ b/recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p1.bb
@@ -1,44 +1,37 @@
-DESCRIPTION = "P1 packages"
+DESCRIPTION = "GENIVI P1 Specific components (SC)"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${IVI_COREBASE}/meta-ivi/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-PR = "r1"
+PR = "r0"
 
 inherit packagegroup
 
 PACKAGES = "\
-    packagegroup-core-p1 \
+    packagegroup-specific-component-p1 \
     "
 
-RDEPENDS_packagegroup-core-p1 = "\
+ALLOW_EMPTY_${PN} = "1"
+
+
+RDEPENDS_${PN} += "\
     kernel-modules \
     audiomanager \
     dlt-daemon \
     dlt-daemon-systemd \
     alsa-lib  \
     alsa-utils \
-    bluez4 \
-    bluez4-systemd \
     connman \
     curl \
     dbus \
     ecryptfs-utils \
-    eglibc \
     fuse \
     gstreamer \
     gst-plugins-good \
     gst-plugins-base \
-    layer-management \
     libusb1 \
     node-startup-controller \
-    obex-client \
-    obexd \
     openssl \
     quota \
     sqlite3 \
     udev \
     wpa-supplicant \
     "
-
-RRECOMMENDS_${PN} = "\
-    packagegroup-xserver-ivi \
-    "
diff --git a/recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p2.bb b/recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p2.bb
new file mode 100644
index 0000000..18a2abb
--- /dev/null
+++ b/recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p2.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "GENIVI P2 Specific components (SC)"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${IVI_COREBASE}/meta-ivi/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+PR = "r0"
+
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-specific-component-p2 \
+    "
+
+ALLOW_EMPTY_${PN} = "1"
+
+
+RDEPENDS_${PN} += "\
+    pulseaudio-server \
+    wireless-tools \
+    "
+
-- 
1.8.2.3




More information about the yocto mailing list