summaryrefslogtreecommitdiff
path: root/recipes/u-boot
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-09-17 20:05:51 +0200
committerKoen Kooi <koen@openembedded.org>2009-09-17 20:05:51 +0200
commitfde321de556abd8ce66e494ab21bc4a2d4e28699 (patch)
tree98ecb7520d96b37caee0bf09dd4623d550db8e07 /recipes/u-boot
parentb4aa04a13fe93a15d8735294a528e102132a44fc (diff)
u-boot: if there's a fw-env in SRC_URI build and install tools as well
Diffstat (limited to 'recipes/u-boot')
-rw-r--r--recipes/u-boot/u-boot.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/u-boot/u-boot.inc b/recipes/u-boot/u-boot.inc
index 294b4446c4..6c8566fb28 100644
--- a/recipes/u-boot/u-boot.inc
+++ b/recipes/u-boot/u-boot.inc
@@ -20,6 +20,17 @@ do_compile () {
unset CPPFLAGS
oe_runmake ${UBOOT_MACHINE}
oe_runmake all
+ oe_runmake tools
+}
+
+do_install () {
+ if [ -e ${WORKDIR}/fw_env.config ] ; then
+ install -d ${D}$base_sbindir}
+ install -d ${D}${sysconfdir}
+ install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
+ install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
+ install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
+ fi
}
do_deploy () {