dra7xx-evm: u-boot: Add custom uenv.txt 33/7233/1
authorKarthik Ramanan <a0393906@ti.com>
Thu, 17 Nov 2016 09:10:29 +0000 (14:40 +0530)
committerKarthik Ramanan <a0393906@ti.com>
Thu, 17 Nov 2016 09:13:11 +0000 (14:43 +0530)
dra7xx-evm supports multiple LCD panels, to boot the board
successfully, the uenv.txt has to specify the correct dtb
file. This patch adds the default dtb and specifies one of
the LCD panels in it.

NOTE:
It could happen that the panel that you have is a different
panel, in that case you would have to manually edit the same.

Change-Id: I0fdbe0ce48ca0654604a5808de684558308582c5
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
meta-agl-bsp/meta-ti/recipes-bsp/u-boot/files/uEnv.txt [new file with mode: 0755]
meta-agl-bsp/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_%.bbappend

diff --git a/meta-agl-bsp/meta-ti/recipes-bsp/u-boot/files/uEnv.txt b/meta-agl-bsp/meta-ti/recipes-bsp/u-boot/files/uEnv.txt
new file mode 100755 (executable)
index 0000000..6ea1abb
--- /dev/null
@@ -0,0 +1 @@
+fdtfile=dra7-evm-lcd-lg.dtb
index 6296678..77b84f9 100644 (file)
@@ -1,9 +1,20 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
+SRCREV = "${AUTOREV}"
+BRANCH = "p-ti-u-boot-2016.05"
+
+SRC_URI = "git://git.omapzoom.org/repo/u-boot.git;protocol=git;branch=${BRANCH}"
 # This applies to the JACINTO 6 vayu board ... essentially it is dra7_evm.
 SRC_URI_vayu     += "file://fix_builderror_gcc5.patch"
+SRC_URI += " file://${UBOOT_ENV_BINARY}"
 
-BRANCH = "p-ti-u-boot-2016.05"
-SRC_URI = "git://git.omapzoom.org/repo/u-boot.git;protocol=git;branch=${BRANCH}"
-SRCREV = "${AUTOREV}"
+UBOOT_ENV = "uEnv"
+
+do_deploy_append () {
+    if [ "x${UBOOT_ENV}" != "x" ]
+    then
+        install ${WORKDIR}/${UBOOT_ENV_BINARY} ${DEPLOYDIR}/${UBOOT_ENV_IMAGE}
+        ln -sf ${UBOOT_ENV_IMAGE} ${DEPLOYDIR}/${UBOOT_ENV_SYMLINK}
+    fi
+}