please find attached patches for

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

Ciao
--
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 <m.cavall...@koansoftware.com>
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

Signed-off-by: Marco Cavallini <m.cavall...@koansoftware.com>
---
 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(-)

diff --git a/recipes-core/images/atmel-demo-image.inc b/recipes-core/images/atmel-demo-image.inc
index 3101e20..394bebe 100644
--- a/recipes-core/images/atmel-demo-image.inc
+++ b/recipes-core/images/atmel-demo-image.inc
@@ -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; "
diff --git a/recipes-core/images/atmel-xplained-demo-image.bb b/recipes-core/images/atmel-xplained-demo-image.bb
index 5a88add..59b4572 100644
--- a/recipes-core/images/atmel-xplained-demo-image.bb
+++ b/recipes-core/images/atmel-xplained-demo-image.bb
@@ -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
-}
diff --git a/recipes-core/images/atmel-xplained-lcd-demo-image.bb b/recipes-core/images/atmel-xplained-lcd-demo-image.bb
index cecd4c3..6cda1c3 100644
--- a/recipes-core/images/atmel-xplained-lcd-demo-image.bb
+++ b/recipes-core/images/atmel-xplained-lcd-demo-image.bb
@@ -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
-}
-- 
1.8.4

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to