Skip to contentSkip to conversation

u-boot.inc: Move fw_env.config to main package

PATCH New Tom Rini 1 participant 3 messages Feb 13, 2012

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH v2 1/3 u-boot.inc: Move fw_env.config to main package

Now that u-boot-fw-utils is a separate recipe (in oe-core) we do not want to try and build the tools here. We also want to package the fw_env.config file in the main package, if it exists.

---
 recipes-bsp/u-boot/u-boot.inc |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
recipes-bsp/u-boot/u-boot.inc +1 -8
index 9669ade..9303568 100644
@@ -28,7 +28,6 @@ do_compile () {
 	unset CFLAGS
 	unset CPPFLAGS
 	oe_runmake ${UBOOT_MAKE_TARGET}
-	oe_runmake tools env
 }
 
 do_install () {
@@ -37,22 +36,16 @@ do_install () {
 	ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
 
 	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
 
 }
 
-FILES_${PN} = "/boot"
+FILES_${PN} = "/boot ${sysconfdir}"
 # no gnu_hash in uboot.bin, by design, so skip QA
 INSANE_SKIP_${PN} = True
 
-PACKAGES += "${PN}-fw-utils"
-FILES_${PN}-fw-utils = "${sysconfdir} ${base_sbindir}"
-
 inherit deploy
 
 addtask deploy before do_package after do_compile
Signature · 1 line
1.7.0.4
author
#1 lore raw

PATCH v2 2/3 u-boot 2011.12: Add fw_env.config for beagleboard

beagleboard provides a correct fw_env.config file so add to the SRC_URI and RRECOMMENDS on u-boot-fw-utils.

---
 recipes-bsp/u-boot/u-boot_2011.12.bb |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
recipes-bsp/u-boot/u-boot_2011.12.bb +8 -1
index 3610837..35ffd4b 100644
@@ -6,7 +6,7 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
 UBOOT_SYMLINK = "u-boot-${MACHINE}.img"
 
 PV = "2011.12"
-PR = "r4"
+PR = "r5"
 
 # No patches for other machines yet
 COMPATIBLE_MACHINE = "(beagleboard|pandaboard|hawkboard|am3517-evm|am37x-evm|omap3evm)"
@@ -15,6 +15,10 @@ COMPATIBLE_MACHINE = "(beagleboard|pandaboard|hawkboard|am3517-evm|am37x-evm|oma
 CACHEFIX = "file://2011.12/0008-Revert-armv7-disable-L2-cache-in-cleanup_before_linu.patch"
 CACHEFIX_omap4 = ""
 
+# File is board-specific, only copy when it will be correct.
+FWENV_beagleboard = "file://fw_env.config"
+FWENV = ""
+
 SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
            file://2011.12/0001-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch \
            file://2011.12/0002-beagleboard-add-support-for-TCT-Beacon-board.patch \
@@ -26,6 +30,7 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
            ${CACHEFIX} \
            file://2011.12/0009-Beagleboard-Correct-memory-size-on-rev-C4.patch \
            file://2011.12/0010-OMAP3-Correct-get_sdr_cs_offset-mask.patch \
+           ${FWENV} \
           "
 
 
@@ -35,3 +40,5 @@ SRCREV = "cba9a894fdb1cb49b60fcd1d1d6919cbd7995dd5"
 LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
 
 S = "${WORKDIR}/git"
+
+RRECOMMENDS_${PN}_beagleboard = "u-boot-fw-utils"
Signature · 1 line
1.7.0.4
author
#2 lore raw

PATCH v2 3/3 u-boot git: Update omap3-touchbook for u-boot-fw-utils change

In reply to Tom Rini
---
 recipes-bsp/u-boot/u-boot_git.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
recipes-bsp/u-boot/u-boot_git.bb +3 -1
index 5abb6f5..e7f1777 100644
@@ -1,5 +1,5 @@
 require u-boot.inc
-PR ="r67"
+PR ="r68"
 
 DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_ti814x = "-1"
@@ -57,3 +57,5 @@ PV_hawkboard               = "2009.08+gitr${SRCREV}"
 
 
 S = "${WORKDIR}/git"
+
+RRECOMMENDS_omap3-touchbook = "u-boot-fw-utils"
Signature · 1 line
1.7.0.4