Skip to contentSkip to conversation

Unified IMAGE_POSTPROCESS_COMMAND in image recipes

meta-atmel Marco 1 participant 1 message May 12, 2014 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore

Marco

author
#0 lore raw

please find attached patches for

- Unified IMAGE_POSTPROCESS_COMMAND in your image recipes
https://github.com/linux4sam/meta-atmel/pull/11

Ciao

Signature · 4 lines
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com

From 0050a6a7fa34930f587c07b1c7ae9a73b4c3ba91 Mon Sep 17 00:00:00 2001
From: Marco Cavallini <[email protected]>
Date: Mon, 12 May 2014 17:34:20 +0200
Subject: [meta-atmel 2/2] Unified usba_udc and g_serial setting for all
atmel-xplained-*-image.bb

* Moved common parts in atmel-demo-image.inc

---
 recipes-core/images/atmel-demo-image.inc             | 18 ++++++++++++++++++
 recipes-core/images/atmel-xplained-demo-image.bb     | 12 ------------
 recipes-core/images/atmel-xplained-lcd-demo-image.bb | 12 ------------
 3 files changed, 18 insertions(+), 24 deletions(-)
recipes-core/images/atmel-demo-image.inc +18 -0
index 3101e20..394bebe 100644
@@ -35,3 +35,21 @@ inherit core-image
 
 # we don't need the kernel in the image
 ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; "
+
+# Unified usba_udc and g_serial
+module_autoload_atmel_usba_udc = "atmel_usba_udc"
+module_autoload_g_serial = "g_serial"
+
+sama5d3_xplained_rootfs_postprocess() {
+    curdir=$PWD
+    cd ${IMAGE_ROOTFS}
+
+    # autoload needed modules
+    cd etc
+    echo "atmel_usba_udc" >> modules
+    echo "g_serial" >> modules
+
+    cd $curdir
+}
+
+ROOTFS_POSTPROCESS_COMMAND += "sama5d3_xplained_rootfs_postprocess; "
recipes-core/images/atmel-xplained-demo-image.bb +0 -12
index 5a88add..59b4572 100644
@@ -8,15 +8,3 @@ IMAGE_INSTALL += "\
     packagegroup-base-3g \
     packagegroup-base-usbhost \
     "
-
-sama5d3_xplained_rootfs_postprocess() {
-    curdir=$PWD
-    cd ${IMAGE_ROOTFS}
-
-    # autoload needed modules
-    cd etc
-    echo "atmel_usba_udc" >> modules
-    echo "g_serial" >> modules
-
-    cd $curdir
-}
recipes-core/images/atmel-xplained-lcd-demo-image.bb +0 -12
index cecd4c3..6cda1c3 100644
@@ -15,15 +15,3 @@ IMAGE_INSTALL += "\
     tslib-tests \
     tslib-calibrate \
     "
-
-sama5d3_xplained_rootfs_postprocess() {
-    curdir=$PWD
-    cd ${IMAGE_ROOTFS}
-
-    # autoload needed modules
-    cd etc
-    echo "atmel_usba_udc" >> modules
-    echo "g_serial" >> modules
-
-    cd $curdir
-}
Signature · 1 line
1.8.4