All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tisdk-image: add handling for SPL/UART version of the bootloader, if exists
@ 2013-06-25  1:54 Denys Dmytriyenko
  0 siblings, 0 replies; only message in thread
From: Denys Dmytriyenko @ 2013-06-25  1:54 UTC (permalink / raw)
  To: meta-arago

From: Denys Dmytriyenko <denys@ti.com>

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 meta-arago-distro/classes/tisdk-image.bbclass      | 26 ++++++++++++++++------
 .../recipes-core/images/arago-amsdk-image.bb       |  2 +-
 .../recipes-core/images/arago-core-tisdk-image.bb  |  2 +-
 3 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/meta-arago-distro/classes/tisdk-image.bbclass b/meta-arago-distro/classes/tisdk-image.bbclass
index f533a90..d3b97ee 100644
--- a/meta-arago-distro/classes/tisdk-image.bbclass
+++ b/meta-arago-distro/classes/tisdk-image.bbclass
@@ -46,8 +46,11 @@ TARGET_IMAGE_TYPES ?= "tar.bz2 tar.gz ubi"
 # the variable is in the BB_ENV_EXTRAWHITE list.
 EXTRA_TISDK_FILES ?= ""
 
-# Variable to specify the name of the secondary bootloader
-SECONDARY_BOOTLOADER_NAME ?= "MLO-${MACHINE}"
+# Variable to specify the name of SPL
+DEPLOY_SPL_NAME ?= "MLO-${MACHINE}"
+
+# Variable to specify the name of SPL/UART
+DEPLOY_SPL_UART_NAME ?= "u-boot-spl.bin-${MACHINE}"
 
 # Manifest file location which will be created as part of the image build
 # process.
@@ -541,18 +544,27 @@ do_sdk_image () {
         done
     fi
 
-    if [ "${SECONDARY_BOOTLOADER_NAME}" != "" ]
+    if [ "${DEPLOY_SPL_NAME}" != "" ]
     then
-        # Copy the secondary bootloader image if it exists
-        if [ -e ${DEPLOY_DIR_IMAGE}/${SECONDARY_BOOTLOADER_NAME} ]
+        # Copy the SPL image if it exists
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_SPL_NAME} ]
         then
-            cp ${DEPLOY_DIR_IMAGE}/${SECONDARY_BOOTLOADER_NAME} ${prebuilt_dir}/
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_SPL_NAME} ${prebuilt_dir}/
         else
-            echo "Could not find the secondary bootloader image"
+            echo "Could not find the SPL image"
             return 1
         fi
     fi
 
+    if [ "${DEPLOY_SPL_UART_NAME}" != "" ]
+    then
+        # Copy the SPL/UART image if it exists
+        if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_SPL_UART_NAME} ]
+        then
+            cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_SPL_UART_NAME} ${prebuilt_dir}/
+        fi
+    fi
+
     # Add the EXTRA_TISDK_FILES contents if they exist
     # Make sure EXTRA_TISDK_FILES is not empty so we don't accidentaly
     # copy the root directory.
diff --git a/meta-arago-distro/recipes-core/images/arago-amsdk-image.bb b/meta-arago-distro/recipes-core/images/arago-amsdk-image.bb
index 5cb2bc5..5995507 100644
--- a/meta-arago-distro/recipes-core/images/arago-amsdk-image.bb
+++ b/meta-arago-distro/recipes-core/images/arago-amsdk-image.bb
@@ -1,5 +1,5 @@
 require arago-core-tisdk-image.inc
 
-SECONDARY_BOOTLOADER_NAME_omapl138 = ""
+DEPLOY_SPL_NAME_omapl138 = ""
 
 export IMAGE_BASENAME = "arago-amsdk-image"
diff --git a/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.bb b/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.bb
index 608386f..33bfc11 100644
--- a/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.bb
+++ b/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.bb
@@ -1,5 +1,5 @@
 require arago-core-tisdk-image.inc
 
-SECONDARY_BOOTLOADER_NAME_omapl138 = ""
+DEPLOY_SPL_NAME_omapl138 = ""
 
 export IMAGE_BASENAME = "arago-core-tisdk-image"
-- 
1.8.2.1



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

only message in thread, other threads:[~2013-06-25  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-25  1:54 [PATCH] tisdk-image: add handling for SPL/UART version of the bootloader, if exists Denys Dmytriyenko

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.