All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-atmel] Unified IMAGE_POSTPROCESS_COMMAND in image recipes
@ 2014-05-12 15:53 Marco
  0 siblings, 0 replies; only message in thread
From: Marco @ 2014-05-12 15:53 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

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

[-- Attachment #2: 0002-Unified-usba_udc-and-g_serial-setting-for-all-atmel-.patch --]
[-- Type: text/x-patch, Size: 2690 bytes --]

From 0050a6a7fa34930f587c07b1c7ae9a73b4c3ba91 Mon Sep 17 00:00:00 2001
From: Marco Cavallini <m.cavallini@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.cavallini@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-12 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-12 15:53 [meta-atmel] Unified IMAGE_POSTPROCESS_COMMAND in image recipes Marco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.