diff options
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 () { | |||
48 | install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | 48 | install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} |
49 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | 49 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} |
50 | 50 | ||
51 | if [ -e ${WORKDIR}/fw_env.config ] ; then | ||
52 | install -d ${D}${sysconfdir} | ||
53 | install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config | ||
54 | fi | ||
55 | |||
51 | if [ "x${SPL_BINARY}" != "x" ] | 56 | if [ "x${SPL_BINARY}" != "x" ] |
52 | then | 57 | then |
53 | install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} | 58 | install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} |
@@ -55,15 +60,16 @@ do_install () { | |||
55 | fi | 60 | fi |
56 | } | 61 | } |
57 | 62 | ||
58 | FILES_${PN} = "/boot" | 63 | FILES_${PN} = "/boot ${sysconfdir}" |
59 | 64 | ||
60 | do_deploy () { | 65 | do_deploy () { |
61 | install -d ${DEPLOYDIR} | 66 | install -d ${DEPLOYDIR} |
62 | install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | 67 | install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} |
63 | 68 | ||
64 | cd ${DEPLOYDIR} | 69 | cd ${DEPLOYDIR} |
65 | rm -f ${UBOOT_SYMLINK} | 70 | rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} |
66 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} | 71 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} |
72 | ln -sf ${UBOOT_IMAGE} ${UBOOT_BINARY} | ||
67 | 73 | ||
68 | if [ "x${SPL_BINARY}" != "x" ] | 74 | if [ "x${SPL_BINARY}" != "x" ] |
69 | then | 75 | then |