summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot/u-boot.inc
diff options
context:
space:
mode:
authorFranklin S. Cooper Jr <fcooperjr27@gmail.com>2012-09-07 18:42:56 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-10 13:01:52 +0100
commit23a6f63f74e42c62167a49c71ca13c86bdf2f851 (patch)
treea9098f8e0319a8f4b78dfc3093722d28e144e0a9 /meta/recipes-bsp/u-boot/u-boot.inc
parent24288740d0bf0c4e381ee942857a88c23647eafc (diff)
downloadpoky-23a6f63f74e42c62167a49c71ca13c86bdf2f851.tar.gz
u-boot: Use fw_env.config if available.
* Add support for board specific fw_env.config file if available. (From OE-Core rev: 5b6a8e987f9039aca63d97bc42421b78acab8a3d) Signed-off-by: Franklin S. Cooper Jr <fcooper27jr@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/u-boot/u-boot.inc')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc16
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 a8642f0b06..ae53b9019c 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -49,6 +49,11 @@ do_install () {
49 install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} 49 install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
50 ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} 50 ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
51 51
52 if [ -e ${WORKDIR}/fw_env.config ] ; then
53 install -d ${D}${sysconfdir}
54 install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
55 fi
56
52 if [ "x${SPL_BINARY}" != "x" ] 57 if [ "x${SPL_BINARY}" != "x" ]
53 then 58 then
54 install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} 59 install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}
@@ -56,16 +61,17 @@ do_install () {
56 fi 61 fi
57} 62}
58 63
59FILES_${PN} = "/boot" 64FILES_${PN} = "/boot ${sysconfdir}"
60FILESPATH =. "${FILE_DIRNAME}/u-boot-git/${MACHINE}:" 65FILESPATH =. "${FILE_DIRNAME}/u-boot-git/${MACHINE}:"
61 66
62do_deploy () { 67do_deploy () {
63 install -d ${DEPLOYDIR} 68 install -d ${DEPLOYDIR}
64 install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} 69 install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
65 70
66 cd ${DEPLOYDIR} 71 cd ${DEPLOYDIR}
67 rm -f ${UBOOT_SYMLINK} 72 rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK}
68 ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} 73 ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
74 ln -sf ${UBOOT_IMAGE} ${UBOOT_BINARY}
69 75
70 if [ "x${SPL_BINARY}" != "x" ] 76 if [ "x${SPL_BINARY}" != "x" ]
71 then 77 then