Skip to contentSkip to conversation

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

PATCH Superseded Tom Rini 2 participants 6 messages Feb 13, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 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 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 |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
recipes-bsp/u-boot/u-boot_2011.12.bb +7 -1
index 3610837..4024e64 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,11 @@ 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 = ""
+RRECOMMENDS_beagleboard = "u-boot-fw-utils"
+
 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 +31,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} \
           "
 
 
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH 2/3] u-boot 2011.12: Add fw_env.config for beagleboard

Op 13 feb. 2012, om 08:51 heeft Tom Rini het volgende geschreven:

Quoted 25 lines

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 | 8 +++++++-

1 files changed, 7 insertions(+), 1 deletions(-)
recipes-bsp/u-boot/u-boot_2011.12.bb +0 -0
index 3610837..4024e64 100644
@@ -6,7 +6,7 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"

UBOOT_SYMLINK = "u-boot-${MACHINE}.img"

PV = "2011.12"

recipes-bsp/u-boot/u-boot_2011.12.bb +1 -1
-PR = "r4"
+PR = "r5"

# No patches for other machines yet
COMPATIBLE_MACHINE = "(beagleboard|pandaboard|hawkboard|am3517-evm|am37x-evm|omap3evm)"

recipes-bsp/u-boot/u-boot_2011.12.bb +0 -0
@@ -15,6 +15,11 @@ 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 = ""

recipes-bsp/u-boot/u-boot_2011.12.bb COMPATIBLE_MACHINE = "(beagleboard|pandaboard|hawkboard|am3517-evm|am37x-evm|oma · line 21

Quoted 4 lines
recipes-bsp/u-boot/u-boot_2011.12.bb +4 -0
+# File is board-specific, only copy when it will be correct.
+FWENV_beagleboard = "file://fw_env.config"
+FWENV = ""
+RRECOMMENDS_beagleboard = "u-boot-fw-utils"

RECOMMENDS_${PN}_foo and move it below do_install

Quoted 19 lines

+

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 \
recipes-bsp/u-boot/u-boot_2011.12.bb +1 -0
@@ -26,6 +31,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} \
          "
 
 
Signature · 6 lines
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
author
#3 lore raw

PATCH 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 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
recipes-bsp/u-boot/u-boot_git.bb +2 -1
index 5abb6f5..90527f6 100644
@@ -1,5 +1,5 @@
 require u-boot.inc
-PR ="r67"
+PR ="r68"
 
 DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_ti814x = "-1"
@@ -42,6 +42,7 @@ SRC_URI_omap3-touchbook = "git://gitorious.org/u-boot-omap3/mainline.git;branch=
 "
 SRCREV_pn-${PN}_omap3-touchbook = "d363f9cb0918a1b6b92e2e20d01543d0c4f53274"
 PV_omap3-touchbook = "2009.05+${PR}+gitr${SRCREV}"
+RRECOMMENDS_omap3-touchbook = "u-boot-fw-utils"
 
 # OMAPL1 omapl137/omapl138 - PSP 3.20.0.11
 
Signature · 1 line
1.7.0.4
#4 lore raw

Re: [PATCH 3/3] u-boot git: Update omap3-touchbook for u-boot-fw-utils change

Op 13 feb. 2012, om 08:51 heeft Tom Rini het volgende geschreven:

Quoted 17 lines

---
recipes-bsp/u-boot/u-boot_git.bb | 3 ++-

1 files changed, 2 insertions(+), 1 deletions(-)
recipes-bsp/u-boot/u-boot_git.bb +0 -0
index 5abb6f5..90527f6 100644
@@ -1,5 +1,5 @@

require u-boot.inc

recipes-bsp/u-boot/u-boot_git.bb +1 -1
-PR ="r67"
+PR ="r68"

DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_ti814x = "-1"

recipes-bsp/u-boot/u-boot_git.bb +0 -0
@@ -42,6 +42,7 @@ SRC_URI_omap3-touchbook = "git://gitorious.org/u-boot-omap3/mainline.git;branch=
Quoted 4 lines

"
SRCREV_pn-${PN}_omap3-touchbook = "d363f9cb0918a1b6b92e2e20d01543d0c4f53274" PV_omap3-touchbook = "2009.05+${PR}+gitr${SRCREV}" +RRECOMMENDS_omap3-touchbook = "u-boot-fw-utils"

RECOMMENS_${PN}_foo and move it below do_install

Acked-by on v1 1/3
#5 lore raw
In reply to Tom Rini

Op 13 feb. 2012, om 08:51 heeft Tom Rini het volgende geschreven:

Quoted 52 lines

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 -5
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

recipes-bsp/u-boot/u-boot.inc +0 -3
-PACKAGES += "${PN}-fw-utils"
-FILES_${PN}-fw-utils = "${sysconfdir} ${base_sbindir}"
-

inherit deploy

addtask deploy before do_package after do_compile

Signature · 6 lines
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti