diff options
author | Franklin S. Cooper Jr <fcooperjr27@gmail.com> | 2012-09-17 13:12:55 -0500 |
---|---|---|
committer | Scott Garman <scott.a.garman@intel.com> | 2012-09-24 09:51:14 -0700 |
commit | 4bc2151d6bb500b0489bc00bce7574dc24f41b90 (patch) | |
tree | 0fe91428d47839806a510f0e3c30fe8ce122ec11 /meta/recipes-bsp/u-boot/u-boot.inc | |
parent | ebfc81f57bbc60e958472d9a1257e6a19f60adbb (diff) | |
download | openembedded-core-4bc2151d6bb500b0489bc00bce7574dc24f41b90.tar.gz |
u-boot: Use fw_env.config if avaliable
* Add support for board specific fw_env.config file if avaliable
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Diffstat (limited to 'meta/recipes-bsp/u-boot/u-boot.inc')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index e627e978c8..3086814ea3 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc @@ -48,6 +48,11 @@ do_install () { install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} + if [ -e ${WORKDIR}/fw_env.config ] ; then + install -d ${D}${sysconfdir} + install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config + fi + if [ "x${SPL_BINARY}" != "x" ] then install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} @@ -55,15 +60,16 @@ do_install () { fi } -FILES_${PN} = "/boot" +FILES_${PN} = "/boot ${sysconfdir}" do_deploy () { install -d ${DEPLOYDIR} - install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} + install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} - cd ${DEPLOYDIR} - rm -f ${UBOOT_SYMLINK} - ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} + cd ${DEPLOYDIR} + rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} + ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} + ln -sf ${UBOOT_IMAGE} ${UBOOT_BINARY} if [ "x${SPL_BINARY}" != "x" ] then |