Skip to contentSkip to conversation

Dmitry Eremin-Solenikov : u-boot: add a recipe for fresh release of u-boot. Also make it default for tqm8540 board

oe-commits Tom Rini 2 participants 2 messages Jul 13, 2010 – Jul 14, 2010 1 message not in the archive

lore
Share & tools
lore

Tom Rini

author
#1 lore raw
In reply to a message not in the archive
Quoted 29 lines · git version control
Module: openembedded.git
Branch: org.openembedded.dev
Commit: e1a3091c2417994a798b51bc6d6cac1d52799865
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e1a3091c2417994a798b51bc6d6cac1d52799865
Author: Dmitry Eremin-Solenikov <[email protected]>
Date:   Wed Jul 14 00:01:39 2010 +0400

u-boot: add a recipe for fresh release of u-boot. Also make it default for tqm8540 board

---

 recipes/u-boot/u-boot_2010.06.bb |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
recipes/u-boot/u-boot_2010.06.bb new file +6 -0
new file mode 100644
index 0000000..73dea39
@@ -0,0 +1,20 @@
+PR = "r1"
+require u-boot.inc
+
+DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE_tqm8540 = "1"
+

recipes/u-boot/u-boot_2010.06.bb line 16

Quoted 10 lines
recipes/u-boot/u-boot_2010.06.bb new file +10 -0
+SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
+
+TARGET_LDFLAGS = ""
+
+inherit base
+
+do_compile () {
+       oe_runmake ${UBOOT_MACHINE}
+       oe_runmake all
+}

I know this isn't new. Why is the oe_runmake ${UBOOT_MACHINE}, which is basically "configure u-boot for this machine" in do_compile and not do_configure?

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#2 lore raw

2010/7/14 Tom Rini <[email protected]>

Quoted 41 lines
Quoted 39 lines · git version control

Module: openembedded.git
Branch: org.openembedded.dev
Commit: e1a3091c2417994a798b51bc6d6cac1d52799865
URL:
http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e1a3091c2417994a798b51bc6d6cac1d52799865

Author: Dmitry Eremin-Solenikov <[email protected]>
Date:   Wed Jul 14 00:01:39 2010 +0400

u-boot: add a recipe for fresh release of u-boot. Also make it default for tqm8540 board

---

 recipes/u-boot/u-boot_2010.06.bb |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
recipes/u-boot/ renamed from recipes/u-boot/u-boot_2010.06.bb +0 -0

u-boot_2010.06.bb
new file mode 100644
index 0000000..73dea39

recipes/u-boot/u-boot_2010.06.bb new file +13 -0
@@ -0,0 +1,20 @@
+PR = "r1"
+require u-boot.inc
+
+DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE_tqm8540 = "1"
+
+SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2<ftp://ftp.denx.de/pub/u-boot/u-boot-$%7BPV%7D.tar.bz2>"
+
+TARGET_LDFLAGS = ""
+
+inherit base
+
+do_compile () {
Quoted 9 lines

recipes/u-boot/u-boot_2010.06.bb line 16

Quoted 4 lines
recipes/u-boot/u-boot_2010.06.bb new file +3 -0
+       oe_runmake ${UBOOT_MACHINE}
+       oe_runmake all
+}

I know this isn't new. Why is the oe_runmake ${UBOOT_MACHINE}, which is basically "configure u-boot for this machine" in do_compile and not do_configure?

I suspect this is because it happens in some other recipes.

There is an issue if you want to generate multiple u-boot binaries in one recipe (like the gta guys do, and like I had to do for mpc8536 which has different u-boots for sd, spi flash and nand).
Typically what you then get is multiple lines like given above in do_compile.

Quoted 9 lines

--
Tom Rini
Mentor Graphics Corporation

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel