refactor packagegroup-agl-cluster-demo-qtcompositor.bb to make some common pieces 80/22180/2
authorZhou Mingying <zhoumy@cn.fujitsu.com>
Tue, 20 Aug 2019 07:21:03 +0000 (15:21 +0800)
committerZhou Mingying <zhoumy@cn.fujitsu.com>
Fri, 23 Aug 2019 03:11:37 +0000 (11:11 +0800)
Create the below file in recipes-platform/packagegroups
  packagegroup-agl-networking.bb
  packagegroup-agl-source-han-sans-ttf-fonts.bb
  packagegroup-agl-ttf-fonts.bb
Modify the below bb files to include the new packagegroups
  packagegroup-agl-cluster-demo-platform.bb
  packagegroup-agl-cluster-demo-qtcompositor.bb

Bug-AGL: SPEC-2731

Signed-off-by: Zhou Mingying <zhoumy@cn.fujitsu.com>
Signed-off-by: Liu Wenlong <liuwl.fnst@cn.fujitsu.com>
Change-Id: I422a45ec7d51df2f8621e3297f60383ceb8d69c1

recipes-platform/packagegroups/packagegroup-agl-cluster-demo-platform.bb
recipes-platform/packagegroups/packagegroup-agl-cluster-demo-qtcompositor.bb
recipes-platform/packagegroups/packagegroup-agl-networking.bb [new file with mode: 0644]
recipes-platform/packagegroups/packagegroup-agl-source-han-sans-ttf-fonts.bb [new file with mode: 0644]
recipes-platform/packagegroups/packagegroup-agl-ttf-fonts.bb [new file with mode: 0644]

index d639495..3b0c91c 100644 (file)
@@ -13,18 +13,11 @@ ALLOW_EMPTY_${PN} = "1"
 
 RDEPENDS_${PN} += "\
     packagegroup-agl-profile-cluster-qt5 \
+    packagegroup-agl-ttf-fonts \
+    packagegroup-agl-source-han-sans-ttf-fonts \
+    packagegroup-agl-networking \
     "
 
-# fonts
-TTF_FONTS = " \
-    ttf-bitstream-vera \
-    ttf-dejavu-sans \
-    ttf-dejavu-sans-mono \
-    ttf-dejavu-serif \
-    source-han-sans-cn-fonts \
-    source-han-sans-jp-fonts \
-    source-han-sans-tw-fonts \
-    "
 
 AGL_APPS = " \
     cluster-dashboard \
@@ -41,13 +34,6 @@ RDEPENDS_${PN}_append = " \
     hmi-debug \
     libva-utils \
     linux-firmware-ralink \
-    connman \
-    connman-client \
-    connman-tools \
-    cluster-connman-conf \
-    iproute2 \
-    dhcp-client \
-    ${TTF_FONTS} \
     ${AGL_APPS} \
     ${AGL_APIS} \
 "
index 879248c..cc034d3 100644 (file)
@@ -13,6 +13,8 @@ ALLOW_EMPTY_${PN} = "1"
 
 RDEPENDS_${PN} += "\
     packagegroup-agl-profile-cluster-qtcompositor \
+    packagegroup-agl-ttf-fonts \
+    packagegroup-agl-networking \
     "
 
 AGL_SERVICE = " \
@@ -30,13 +32,6 @@ AGL_SERVICE = " \
 SMARTDEVICELINK = "${@bb.utils.contains('DISTRO_FEATURES', 'agl-sdl', \
     'sdl-core', '', d)}"
 
-# fonts
-TTF_FONTS = " \
-    ttf-bitstream-vera \
-    ttf-dejavu-sans \
-    ttf-dejavu-sans-mono \
-    ttf-dejavu-serif \
-    "
 
 AGL_APPS = " \
     cluster-gauges-qtcompositor \
@@ -45,15 +40,8 @@ AGL_APPS = " \
 RDEPENDS_${PN}_append = " \
     libva-utils \
     linux-firmware-ralink \
-    connman \
-    connman-client \
-    connman-tools \
-    cluster-connman-conf \
-    iproute2 \
-    dhcp-client \
     can-utils \
     most \
-    ${TTF_FONTS} \
     ${AGL_SERVICE} \
     ${AGL_APPS} \
     ${SMARTDEVICELINK} \
diff --git a/recipes-platform/packagegroups/packagegroup-agl-networking.bb b/recipes-platform/packagegroups/packagegroup-agl-networking.bb
new file mode 100644 (file)
index 0000000..3e89303
--- /dev/null
@@ -0,0 +1,23 @@
+SUMMARY = "The networking for AGL"
+DESCRIPTION = "A set of packages for AGL cluster's  networking"
+
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-agl-networking \
+    "
+
+ALLOW_EMPTY_${PN} = "1"
+
+
+# fonts
+RDEPENDS_${PN}_append = " \
+    connman \
+    connman-client \
+    connman-tools \
+    cluster-connman-conf \
+    iproute2 \
+    dhcp-client \
+"
diff --git a/recipes-platform/packagegroups/packagegroup-agl-source-han-sans-ttf-fonts.bb b/recipes-platform/packagegroups/packagegroup-agl-source-han-sans-ttf-fonts.bb
new file mode 100644 (file)
index 0000000..fb33289
--- /dev/null
@@ -0,0 +1,20 @@
+SUMMARY = "The Source Han Sans ttf fonts for AGL"
+DESCRIPTION = "A set of packages for source Han Sans ttf fonts"
+
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-agl-source-han-sans-ttf-fonts \
+    "
+
+ALLOW_EMPTY_${PN} = "1"
+
+
+# fonts
+RDEPENDS_${PN}_append = " \
+    source-han-sans-cn-fonts \
+    source-han-sans-jp-fonts \
+    source-han-sans-tw-fonts \
+"
diff --git a/recipes-platform/packagegroups/packagegroup-agl-ttf-fonts.bb b/recipes-platform/packagegroups/packagegroup-agl-ttf-fonts.bb
new file mode 100644 (file)
index 0000000..9a3b578
--- /dev/null
@@ -0,0 +1,21 @@
+SUMMARY = "The ttf fonts for AGL"
+DESCRIPTION = "A set of packages for fonts"
+
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PACKAGES = "\
+     packagegroup-agl-ttf-fonts \
+    "
+
+ALLOW_EMPTY_${PN} = "1"
+
+
+# fonts
+RDEPENDS_${PN}_append = " \
+    ttf-bitstream-vera \
+    ttf-dejavu-sans \
+    ttf-dejavu-sans-mono \
+    ttf-dejavu-serif \
+"