Skip to contentSkip to conversation

arago-tiny-image: make it tinier by removing non essential packages

RFC PATCH New Denys Dmytriyenko 1 participant 5 messages Nov 14, 2019

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/5 arago-tiny-image: make it tinier by removing non essential packages

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/recipes-core/images/arago-tiny-image.bb | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
meta-arago-distro/recipes-core/images/arago-tiny-image.bb +3 -9
index 5d1733e..cac37a5 100644
@@ -2,17 +2,11 @@ ARAGO_SYSVINIT = "1"
 
 require arago-image.inc
 
+IMAGE_FEATURES_remove = "package-management splash"
+
 IMAGE_FSTYPES += "cpio"
 
-# Install a small set of utils which can be used for diagnostics
-ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= " \
-	parted \
-	util-linux \
-	e2fsprogs \
-	dosfstools \
-	devmem2 \
-	arago-feed-config \
-"
+ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= ""
 
 IMAGE_INSTALL = " \
 	packagegroup-arago-sysvinit-boot \
Signature · 1 line
2.7.4
#1 lore raw

RFC PATCH 2/5 packagegroup-*-graphics*: cleanup #2 - drop chromium

From: Denys Dmytriyenko <[email protected]>

---
 .../packagegroup-arago-tisdk-graphics-sdk-host.bb           |  3 +--
 .../packagegroup-arago-tisdk-graphics-sdk-target.bb         |  8 ++------
 .../packagegroups/packagegroup-arago-tisdk-graphics.bb      | 13 +------------
 3 files changed, 4 insertions(+), 20 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-host.bb +1 -2
index 8f6d112..5290d5e 100644
@@ -4,8 +4,7 @@ PR = "r8"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-inherit packagegroup
-inherit machine_features_check
+inherit packagegroup machine_features_check
 
 REQUIRED_MACHINE_FEATURES = "gpu"
 
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb +2 -6
index 63cd882..28fb1d3 100644
@@ -1,17 +1,13 @@
-DESCRIPTION = "Task to install graphics binaries on sdk target"
+DESCRIPTION = "Task to install graphics packages in SDK target"
 LICENSE = "MIT"
 PR = "r10"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-inherit packagegroup
-inherit machine_features_check
+inherit packagegroup machine_features_check
 
 REQUIRED_MACHINE_FEATURES = "gpu"
 
-GRAPHICS_RDEPENDS = "\
-"
-
 RDEPENDS_${PN} = "\
     libegl-dev \
     libdrm-dev \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics.bb +1 -12
index 37e1606..f1a5ab6 100644
@@ -4,8 +4,7 @@ PR = "r26"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-inherit packagegroup
-inherit machine_features_check
+inherit packagegroup machine_features_check
 
 REQUIRED_MACHINE_FEATURES = "gpu"
 
@@ -15,15 +14,6 @@ GFX_WAYLAND = "\
     wayland-ivi-extension \
 "
 
-GFX_CHROMIUM = ""
-GFX_CHROMIUM_append_omap-a15 = "\
-    chromium-wayland \
-"
-
-GFX_CHROMIUM_append_k3 = "\
-    chromium-wayland \
-"
-
 GFX_UTILS = ""
 GFX_UTILS_append_omap-a15  = "\
     glsdk-util-scripts \
@@ -34,6 +24,5 @@ RDEPENDS_${PN} = "\
     glmark2 \
     ${@bb.utils.contains('MACHINE_FEATURES', 'gc320', 'ti-gc320-tests', '', d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', "${GFX_WAYLAND}", '', d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', "${GFX_CHROMIUM}", '', d)} \
     ${GFX_UTILS} \
 "
Signature · 1 line
2.7.4
#2 lore raw

RFC PATCH 3/5 packagegroup-*-gtk*: cleanup

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 .../packagegroup-arago-tisdk-gtk-sdk-target.bb           |  8 ++++++--
 .../packagegroups/packagegroup-arago-tisdk-gtk.bb        | 16 ++++++----------
 2 files changed, 12 insertions(+), 12 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb +6 -2
index 24db604..d1783d1 100644
@@ -1,8 +1,12 @@
 DESCRIPTION = "Task to install Gtk dev packages in SDK"
 LICENSE = "MIT"
-PR = "r1"
+PR = "r2"
 
-inherit packagegroup
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit packagegroup machine_features_check
+
+REQUIRED_MACHINE_FEATURES = "gpu"
 
 RDEPENDS_${PN} = "\
     gtk+3-dev \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk.bb +6 -10
index d6b9326..4baba84 100644
@@ -1,18 +1,14 @@
 DESCRIPTION = "Task to add Gtk embedded related packages"
 LICENSE = "MIT"
-PR = "r1"
+PR = "r2"
 
-inherit packagegroup
+PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-GTK = "\
-    gtk+3 \
-"
+inherit packagegroup machine_features_check
 
-GTK_DEMOS = "\
-    gtk+3-demo \
-"
+REQUIRED_MACHINE_FEATURES = "gpu"
 
 RDEPENDS_${PN} = "\
-    ${GTK} \
-    ${GTK_DEMOS} \
+    gtk+3 \
+    gtk+3-demo \
 "
Signature · 1 line
2.7.4
#3 lore raw

RFC PATCH 4/5 packagegroup-*-multimedia*: cleanup

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 ...packagegroup-arago-tisdk-multimedia-sdk-host.bb | 11 +++----
 .../packagegroup-arago-tisdk-multimedia.bb         | 35 +++++++---------------
 2 files changed, 14 insertions(+), 32 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb +4 -7
index 2ab9dc7..11d3318 100644
@@ -8,31 +8,28 @@ inherit packagegroup
 
 MULTIMEDIA = ""
 
+MULTIMEDIA_append_ti33x = " barcode-roi-src"
+
 MULTIMEDIA_append_ti43x = " \
     dual-camera-demo-src \
     image-gallery-src \
     barcode-roi-src \
 "
 
-MULTIMEDIA_append_ti33x = " barcode-roi-src"
-
-MULTIMEDIA_append_am65xx = " barcode-roi-src"
-
 MULTIMEDIA_append_omap-a15 = " \
     dual-camera-demo-src \
     image-gallery-src \
     barcode-roi-src \
 "
 
+MULTIMEDIA_append_am65xx = " barcode-roi-src"
+
 MULTIMEDIA_append_dra7xx = " \
     ${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'qt-opencv-opencl-opengl-multithreaded-src', '', d)} \
 "
 
 MULTIMEDIA_append_keystone = " barcode-roi-src"
 
-#Demo doesn't work on 3.14
-# ${@oe.utils.conditional('QT_PROVIDER', 'qt5', '', 'dual-camera-demo-src image-gallery-src', d)}
-
 RDEPENDS_${PN} = "\
     ${MULTIMEDIA} \
 "
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb +10 -25
index 6f6f1f7..056b2c8 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to add multimedia related packages"
 LICENSE = "MIT"
-PR = "r23"
+PR = "r24"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -11,6 +11,7 @@ MULTIMEDIA = " \
 "
 
 MULTIMEDIA_omapl138 = ""
+
 MULTIMEDIA_append_keystone = " \
     hevc-arm-decoder \
 "
@@ -26,6 +27,7 @@ MULTIMEDIA_append_omap-a15 = " \
 "
 
 MULTIMEDIA_append_dra7xx = " \
+    vis \
     hevc-arm-decoder \
     ${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'qt-opencv-opencl-opengl-multithreaded-dev', '', d)} \
 "
@@ -34,36 +36,19 @@ MULTIMEDIA_append_omap5-evm = " \
     abefw \
 "
 
-MULTIMEDIA_append_j7-evm = " \
-    ti-img-encode-decode \
-    vxd-dec-fw \
-"
-
-ACCEL_FW = ""
-
-ACCEL_FW_append_am57xx-evm = " \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'ipumm-fw', '', d)} \
-"
+ACCEL_MM = ""
 
-ACCEL_FW_append_am57xx-hs-evm = " \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'ipumm-fw', '', d)} \
+ACCEL_MM_append_omap-a15 = " \
+    ipumm-fw \
 "
 
-ACCEL_FW_append_omap5-evm = " \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'ipumm-fw', '', d)} \
-"
-
-ACCEL_FW_append_dra7xx-evm = " \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'ipumm-fw', '', d)} \
-    vis \
-"
-
-ACCEL_FW_append_dra7xx-hs-evm = " \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'ipumm-fw', '', d)} \
+ACCEL_MM_append_j7-evm = " \
+    ti-img-encode-decode \
+    vxd-dec-fw \
 "
 
 RDEPENDS_${PN} = "\
     packagegroup-arago-gst \
     ${MULTIMEDIA} \
-    ${ACCEL_FW} \
+    ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', '${ACCEL_MM}', '', d)} \
 "
Signature · 1 line
2.7.4
#4 lore raw

RFC PATCH 5/5 packagegroup-ti-world: list of packages to populate feeds

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 .../packagegroups/packagegroup-ti-world.bb         | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-ti-world.bb
meta-arago-distro/recipes-core/packagegroups/packagegroup-ti-world.bb new file +38 -0
new file mode 100644
index 0000000..8457908
@@ -0,0 +1,38 @@
+DESCRIPTION = "Task to install graphics packages"
+LICENSE = "MIT"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit packagegroup
+
+CHROMIUM = ""
+CHROMIUM_append_omap-a15 = "\
+    chromium-wayland \
+"
+
+CHROMIUM_append_k3 = "\
+    chromium-wayland \
+"
+
+RDEPENDS_${PN} = "\
+    packagegroup-arago-base \
+    packagegroup-arago-console \
+    packagegroup-arago-base-tisdk \
+    packagegroup-arago-test \
+    packagegroup-arago-test-addons \
+    ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics','',d)} \
+    ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-gtk','',d)} \
+    packagegroup-arago-tisdk-qte \
+    ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl','',d)} \
+    ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl-extra','',d)} \
+    packagegroup-arago-tisdk-connectivity \
+    packagegroup-arago-tisdk-crypto \
+    packagegroup-arago-tisdk-matrix \
+    packagegroup-arago-tisdk-matrix-extra \
+    packagegroup-arago-tisdk-multimedia \
+    packagegroup-arago-tisdk-amsdk \
+    packagegroup-arago-tisdk-addons \
+    packagegroup-arago-tisdk-addons-extra \
+    packagegroup-arago-tisdk-hmi \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', "${CHROMIUM}", '', d)} \
+"
Signature · 1 line
2.7.4