Unified IMAGE_POSTPROCESS_COMMAND in image recipes
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.comFrom 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
Signed-off-by Marco Cavallini <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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