* [PATCH] barebox: Add recipe
@ 2014-07-28 9:55 David Vincent
2014-07-28 10:23 ` Richard Purdie
2014-07-28 11:58 ` Eric Bénard
0 siblings, 2 replies; 9+ messages in thread
From: David Vincent @ 2014-07-28 9:55 UTC (permalink / raw)
To: openembedded-core
barebox (formerly known as u-boot-v2) is a bootloader that inherits the
best of U-Boot and the Linux kernel. This commit adds the possibility to
use it as a virtual/bootloader instead of U-Boot.
Signed-off-by: David Vincent <freesilicon@gmail.com>
---
meta/recipes-bsp/barebox/barebox.inc | 73 +++++++++++++++++++++++++
meta/recipes-bsp/barebox/barebox_2014.07.0.bb | 15 +++++
2 files changed, 88 insertions(+)
create mode 100644 meta/recipes-bsp/barebox/barebox.inc
create mode 100644 meta/recipes-bsp/barebox/barebox_2014.07.0.bb
diff --git a/meta/recipes-bsp/barebox/barebox.inc b/meta/recipes-bsp/barebox/barebox.inc
new file mode 100644
index 0000000..68aeb68
--- /dev/null
+++ b/meta/recipes-bsp/barebox/barebox.inc
@@ -0,0 +1,73 @@
+SUMMARY = "The Barebox Bootloader"
+DESCRIPTION = "Barebox (formerly known as u-boot-v2) is a bootloader that inherits the best of U-Boot and the Linux kernel: The size and look-and-feel of u-boot, with driver model and lots of design concepts from the kernel."
+HOMEPAGE = "http://www.barebox.org"
+SECTION = "bootloaders"
+PROVIDES = "virtual/bootloader"
+
+inherit cml1 deploy kernel-arch
+
+EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
+
+BAREBOX_BINARY ?= "barebox.bin"
+BAREBOX_IMAGE ?= "barebox-${MACHINE}-${PV}-${PR}.bin"
+BAREBOX_SYMLINK ?= "barebox-${MACHINE}.bin"
+
+do_configure () {
+ # Copy defconfig to .config if .config does not exist. This allows
+ # recipes to manage the .config themselves in do_configure_prepend().
+ if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
+ cp "${WORKDIR}/defconfig" "${B}/.config"
+ fi
+
+ # Use board default defconfig if .config does not exist. This allows
+ # recipes to manage the .config themselves in do_configure_prepend().
+ if [ ! -f "${B}/.config" ]; then
+ oe_runmake_call ${BAREBOX_TARGET}
+ fi
+
+ cml1_do_configure
+}
+
+do_compile () {
+ if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
+ sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/Makefile
+ fi
+
+ unset CFLAGS CPPFLAGS LDFLAGS
+ oe_runmake
+}
+
+do_install () {
+ install -d ${D}/boot
+ install ${S}/barebox-flash-image ${D}/boot/${BAREBOX_IMAGE}
+ ln -sf ${BAREBOX_IMAGE} ${D}/boot/${BAREBOX_BINARY}
+
+ # Install target tools if available
+ install -d ${D}${sbindir}
+
+ if [ -e ${WORKDIR}/scripts/bareboxenv-target ]; then
+ install -m 0755 ${WORKDIR}/scripts/bareboxenv-target ${D}${sbindir}/bareboxenv
+ fi
+
+ if [ -e ${WORKDIR}/scripts/bareboxcrc32-target ]; then
+ install -m 0755 ${WORKDIR}/scripts/bareboxcrc32-target ${D}${sbindir}/bareboxcrc32
+ fi
+
+ if [ -e ${WORKDIR}/scripts/kernel-install-target ]; then
+ install -m 0755 ${WORKDIR}/scripts/kernel-install-target ${D}${sbindir}/kernel-install
+ fi
+}
+
+FILES_${PN} = "/boot ${sbindir}"
+
+do_deploy () {
+ install -d ${DEPLOYDIR}
+ install ${S}/barebox-flash-image ${DEPLOYDIR}/${BAREBOX_IMAGE}
+
+ cd ${DEPLOYDIR}
+ rm -f ${BAREBOX_BINARY} ${BAREBOX_SYMLINK}
+ ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK}
+ ln -sf ${BAREBOX_IMAGE} ${BAREBOX_BINARY}
+}
+
+addtask deploy before do_build after do_compile
diff --git a/meta/recipes-bsp/barebox/barebox_2014.07.0.bb b/meta/recipes-bsp/barebox/barebox_2014.07.0.bb
new file mode 100644
index 0000000..6adbff4
--- /dev/null
+++ b/meta/recipes-bsp/barebox/barebox_2014.07.0.bb
@@ -0,0 +1,15 @@
+require barebox.inc
+
+# To build barebox for your machine, provide the following lines in your machine
+# config, replacing the assignments as appropriate for your machine.
+# BAREBOX_MACHINE = "sandbox"
+# BAREBOX_TARGET = "sandbox_defconfig"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=057bf9e50e1ca857d0eb97bfe4ba8e5d"
+
+SRC_URI = "http://www.barebox.org/download/${PN}-${PV}.tar.bz2"
+SRC_URI[md5sum] = "f3a93950777916d4b1c2cd366aec8d91"
+SRC_URI[sha256sum] = "6dca5c78de8565a15aaa404edbf1bc4663415f0dc69e094f3b621636876285f2"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH] barebox: Add recipe
2014-07-28 9:55 [PATCH] barebox: Add recipe David Vincent
@ 2014-07-28 10:23 ` Richard Purdie
[not found] ` <CAKRNOGwGr3BM8FTMoqjNQ+p0tFKUj55RdyL+0wemf_7f1r1UcQ@mail.gmail.com>
2014-07-30 11:46 ` Stefan Müller-Klieser
2014-07-28 11:58 ` Eric Bénard
1 sibling, 2 replies; 9+ messages in thread
From: Richard Purdie @ 2014-07-28 10:23 UTC (permalink / raw)
To: David Vincent; +Cc: openembedded-core
On Mon, 2014-07-28 at 11:55 +0200, David Vincent wrote:
> barebox (formerly known as u-boot-v2) is a bootloader that inherits the
> best of U-Boot and the Linux kernel. This commit adds the possibility to
> use it as a virtual/bootloader instead of U-Boot.
>
> Signed-off-by: David Vincent <freesilicon@gmail.com>
> ---
> meta/recipes-bsp/barebox/barebox.inc | 73 +++++++++++++++++++++++++
> meta/recipes-bsp/barebox/barebox_2014.07.0.bb | 15 +++++
> 2 files changed, 88 insertions(+)
> create mode 100644 meta/recipes-bsp/barebox/barebox.inc
> create mode 100644 meta/recipes-bsp/barebox/barebox_2014.07.0.bb
I have to admit I don't know a lot about this. To make it into OE-Core
we need some kind of story about why its necessary and commonly used.
Are there a number of BSPs using this? Can you give some background to
why this is needed?
Cheers,
Richard
^ permalink raw reply [flat|nested] 9+ messages in thread[parent not found: <CAKRNOGwGr3BM8FTMoqjNQ+p0tFKUj55RdyL+0wemf_7f1r1UcQ@mail.gmail.com>]
* [PATCH] barebox: Add recipe
[not found] ` <CAKRNOGwGr3BM8FTMoqjNQ+p0tFKUj55RdyL+0wemf_7f1r1UcQ@mail.gmail.com>
@ 2014-07-28 12:02 ` David Vincent
0 siblings, 0 replies; 9+ messages in thread
From: David Vincent @ 2014-07-28 12:02 UTC (permalink / raw)
To: openembedded-core
Sorry, the patch alone was maybe a little harsh, I should have
submitted it as a RFC.
For me, this recipe was needed because I don't use u-boot as the
bootloader for my custom board but barebox. More generically, I know
that the meta-fsl-arm has also a recipe for barebox and since my board
was not based on a Freescale MPU but an Atmel one, I thought that the
work could be shared by the two layers in oe-core or, at least, in
meta-oe instead of being also redeveloped in meta-atmel or another BSP
layer.
Since barebox also supports many architectures like ARM, MIPS,
Blackfin,... and many vendors like Atmel, Freescale, TI,... I think it
provides a good alternative for the 'virtual/bootloader' task. People
who want to use it should not put more effort than what they need to
do for u-boot currently.
I've cc'ed the barebox mailing list for more technical details if needed.
Greetings,
David
2014-07-28 12:23 GMT+02:00 Richard Purdie <richard.purdie@linuxfoundation.org>:
> On Mon, 2014-07-28 at 11:55 +0200, David Vincent wrote:
>> barebox (formerly known as u-boot-v2) is a bootloader that inherits the
>> best of U-Boot and the Linux kernel. This commit adds the possibility to
>> use it as a virtual/bootloader instead of U-Boot.
>>
>> Signed-off-by: David Vincent <freesilicon@gmail.com>
>> ---
>> meta/recipes-bsp/barebox/barebox.inc | 73 +++++++++++++++++++++++++
>> meta/recipes-bsp/barebox/barebox_2014.07.0.bb | 15 +++++
>> 2 files changed, 88 insertions(+)
>> create mode 100644 meta/recipes-bsp/barebox/barebox.inc
>> create mode 100644 meta/recipes-bsp/barebox/barebox_2014.07.0.bb
>
> I have to admit I don't know a lot about this. To make it into OE-Core
> we need some kind of story about why its necessary and commonly used.
> Are there a number of BSPs using this? Can you give some background to
> why this is needed?
>
> Cheers,
>
> Richard
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] barebox: Add recipe
2014-07-28 10:23 ` Richard Purdie
[not found] ` <CAKRNOGwGr3BM8FTMoqjNQ+p0tFKUj55RdyL+0wemf_7f1r1UcQ@mail.gmail.com>
@ 2014-07-30 11:46 ` Stefan Müller-Klieser
2014-07-30 16:56 ` Khem Raj
1 sibling, 1 reply; 9+ messages in thread
From: Stefan Müller-Klieser @ 2014-07-30 11:46 UTC (permalink / raw)
To: Richard Purdie, David Vincent; +Cc: openembedded-core
Hello everybody,
it happened that I am also preparing our barebox recipe for OE-core. I
started similar to David but it evolved already. I added support for
packages, configuration fragments and an the ipl, needed for some SoCs.
I will send it to the list for comments. Even if it will not be
accepted, it might be useful for some people. I will provide an
explanation for the maintainer.
Regards, Stefan
On 28.07.2014 12:23, Richard Purdie wrote:
> On Mon, 2014-07-28 at 11:55 +0200, David Vincent wrote:
>> barebox (formerly known as u-boot-v2) is a bootloader that inherits the
>> best of U-Boot and the Linux kernel. This commit adds the possibility to
>> use it as a virtual/bootloader instead of U-Boot.
>>
>> Signed-off-by: David Vincent <freesilicon@gmail.com>
>> ---
>> meta/recipes-bsp/barebox/barebox.inc | 73 +++++++++++++++++++++++++
>> meta/recipes-bsp/barebox/barebox_2014.07.0.bb | 15 +++++
>> 2 files changed, 88 insertions(+)
>> create mode 100644 meta/recipes-bsp/barebox/barebox.inc
>> create mode 100644 meta/recipes-bsp/barebox/barebox_2014.07.0.bb
>
> I have to admit I don't know a lot about this. To make it into OE-Core
> we need some kind of story about why its necessary and commonly used.
> Are there a number of BSPs using this? Can you give some background to
> why this is needed?
>
> Cheers,
>
> Richard
>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] barebox: Add recipe
2014-07-30 11:46 ` Stefan Müller-Klieser
@ 2014-07-30 16:56 ` Khem Raj
0 siblings, 0 replies; 9+ messages in thread
From: Khem Raj @ 2014-07-30 16:56 UTC (permalink / raw)
To: Stefan Müller-Klieser
Cc: openembeded-devel,
Patches and discussions about the oe-core layer
On Wed, Jul 30, 2014 at 4:46 AM, Stefan Müller-Klieser
<s.mueller-klieser@phytec.de> wrote:
>
> it happened that I am also preparing our barebox recipe for OE-core. I
> started similar to David but it evolved already. I added support for
> packages, configuration fragments and an the ipl, needed for some SoCs. I
> will send it to the list for comments. Even if it will not be accepted, it
> might be useful for some people. I will provide an explanation for the
> maintainer.
could you both merge your changes and propose single recipe ?
We could put it in meta-oe and later decide to move to or-core if that
becomes the case.
so also send to oe-devel ml when you send v2
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] barebox: Add recipe
2014-07-28 9:55 [PATCH] barebox: Add recipe David Vincent
2014-07-28 10:23 ` Richard Purdie
@ 2014-07-28 11:58 ` Eric Bénard
2014-07-28 12:15 ` David Vincent
1 sibling, 1 reply; 9+ messages in thread
From: Eric Bénard @ 2014-07-28 11:58 UTC (permalink / raw)
To: David Vincent; +Cc: openembedded-core
Hi David,
Le Mon, 28 Jul 2014 11:55:04 +0200,
David Vincent <freesilicon@gmail.com> a écrit :
>
> barebox (formerly known as u-boot-v2) is a bootloader that inherits the
> best of U-Boot and the Linux kernel. This commit adds the possibility to
> use it as a virtual/bootloader instead of U-Boot.
>
> Signed-off-by: David Vincent <freesilicon@gmail.com>
> ---
> meta/recipes-bsp/barebox/barebox.inc | 73 +++++++++++++++++++++++++
> meta/recipes-bsp/barebox/barebox_2014.07.0.bb | 15 +++++
> 2 files changed, 88 insertions(+)
> create mode 100644 meta/recipes-bsp/barebox/barebox.inc
> create mode 100644 meta/recipes-bsp/barebox/barebox_2014.07.0.bb
>
> diff --git a/meta/recipes-bsp/barebox/barebox.inc b/meta/recipes-bsp/barebox/barebox.inc
> new file mode 100644
> index 0000000..68aeb68
> --- /dev/null
> +++ b/meta/recipes-bsp/barebox/barebox.inc
> @@ -0,0 +1,73 @@
> +SUMMARY = "The Barebox Bootloader"
> +DESCRIPTION = "Barebox (formerly known as u-boot-v2) is a bootloader that inherits the best of U-Boot and the Linux kernel: The size and look-and-feel of u-boot, with driver model and lots of design concepts from the kernel."
> +HOMEPAGE = "http://www.barebox.org"
> +SECTION = "bootloaders"
> +PROVIDES = "virtual/bootloader"
> +
> +inherit cml1 deploy kernel-arch
> +
> +EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
> +
> +BAREBOX_BINARY ?= "barebox.bin"
> +BAREBOX_IMAGE ?= "barebox-${MACHINE}-${PV}-${PR}.bin"
> +BAREBOX_SYMLINK ?= "barebox-${MACHINE}.bin"
> +
> +do_configure () {
> + # Copy defconfig to .config if .config does not exist. This allows
> + # recipes to manage the .config themselves in do_configure_prepend().
> + if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
> + cp "${WORKDIR}/defconfig" "${B}/.config"
> + fi
> +
> + # Use board default defconfig if .config does not exist. This allows
> + # recipes to manage the .config themselves in do_configure_prepend().
> + if [ ! -f "${B}/.config" ]; then
> + oe_runmake_call ${BAREBOX_TARGET}
> + fi
> +
> + cml1_do_configure
> +}
> +
> +do_compile () {
> + if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
> + sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/Makefile
> + fi
> +
I had to add that a few year ago : is that still needed ?
> + unset CFLAGS CPPFLAGS LDFLAGS
> + oe_runmake
> +}
> +
> +do_install () {
> + install -d ${D}/boot
> + install ${S}/barebox-flash-image ${D}/boot/${BAREBOX_IMAGE}
> + ln -sf ${BAREBOX_IMAGE} ${D}/boot/${BAREBOX_BINARY}
> +
> + # Install target tools if available
> + install -d ${D}${sbindir}
> +
> + if [ -e ${WORKDIR}/scripts/bareboxenv-target ]; then
> + install -m 0755 ${WORKDIR}/scripts/bareboxenv-target ${D}${sbindir}/bareboxenv
> + fi
> +
> + if [ -e ${WORKDIR}/scripts/bareboxcrc32-target ]; then
> + install -m 0755 ${WORKDIR}/scripts/bareboxcrc32-target ${D}${sbindir}/bareboxcrc32
> + fi
> +
> + if [ -e ${WORKDIR}/scripts/kernel-install-target ]; then
> + install -m 0755 ${WORKDIR}/scripts/kernel-install-target ${D}${sbindir}/kernel-install
> + fi
> +}
> +
> +FILES_${PN} = "/boot ${sbindir}"
Why not splitting the tools in their own package so that we can have
the tools on the target without having the binary in /boot ?
> +
> +do_deploy () {
> + install -d ${DEPLOYDIR}
> + install ${S}/barebox-flash-image ${DEPLOYDIR}/${BAREBOX_IMAGE}
> +
Why don't you use $BAREBOX_BINARY instead of hardcoding
barebox-flash-image which won't work on old versions of barebox where
barebox's binary is named barebox.bin ?
Best regards,
Eric
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] barebox: Add recipe
2014-07-28 11:58 ` Eric Bénard
@ 2014-07-28 12:15 ` David Vincent
2014-07-28 14:42 ` Eric Bénard
0 siblings, 1 reply; 9+ messages in thread
From: David Vincent @ 2014-07-28 12:15 UTC (permalink / raw)
To: Eric Bénard; +Cc: openembedded-core
Hi Eric,
2014-07-28 13:58 GMT+02:00 Eric Bénard <eric@eukrea.com>:
> Hi David,
>
> Le Mon, 28 Jul 2014 11:55:04 +0200,
> David Vincent <freesilicon@gmail.com> a écrit :
>
>>
>> barebox (formerly known as u-boot-v2) is a bootloader that inherits the
>> best of U-Boot and the Linux kernel. This commit adds the possibility to
>> use it as a virtual/bootloader instead of U-Boot.
>>
>> Signed-off-by: David Vincent <freesilicon@gmail.com>
>> ---
>> meta/recipes-bsp/barebox/barebox.inc | 73 +++++++++++++++++++++++++
>> meta/recipes-bsp/barebox/barebox_2014.07.0.bb | 15 +++++
>> 2 files changed, 88 insertions(+)
>> create mode 100644 meta/recipes-bsp/barebox/barebox.inc
>> create mode 100644 meta/recipes-bsp/barebox/barebox_2014.07.0.bb
>>
>> diff --git a/meta/recipes-bsp/barebox/barebox.inc b/meta/recipes-bsp/barebox/barebox.inc
>> new file mode 100644
>> index 0000000..68aeb68
>> --- /dev/null
>> +++ b/meta/recipes-bsp/barebox/barebox.inc
>> @@ -0,0 +1,73 @@
>> +SUMMARY = "The Barebox Bootloader"
>> +DESCRIPTION = "Barebox (formerly known as u-boot-v2) is a bootloader that inherits the best of U-Boot and the Linux kernel: The size and look-and-feel of u-boot, with driver model and lots of design concepts from the kernel."
>> +HOMEPAGE = "http://www.barebox.org"
>> +SECTION = "bootloaders"
>> +PROVIDES = "virtual/bootloader"
>> +
>> +inherit cml1 deploy kernel-arch
>> +
>> +EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
>> +
>> +BAREBOX_BINARY ?= "barebox.bin"
>> +BAREBOX_IMAGE ?= "barebox-${MACHINE}-${PV}-${PR}.bin"
>> +BAREBOX_SYMLINK ?= "barebox-${MACHINE}.bin"
>> +
>> +do_configure () {
>> + # Copy defconfig to .config if .config does not exist. This allows
>> + # recipes to manage the .config themselves in do_configure_prepend().
>> + if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
>> + cp "${WORKDIR}/defconfig" "${B}/.config"
>> + fi
>> +
>> + # Use board default defconfig if .config does not exist. This allows
>> + # recipes to manage the .config themselves in do_configure_prepend().
>> + if [ ! -f "${B}/.config" ]; then
>> + oe_runmake_call ${BAREBOX_TARGET}
>> + fi
>> +
>> + cml1_do_configure
>> +}
>> +
>> +do_compile () {
>> + if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
>> + sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/Makefile
>> + fi
>> +
> I had to add that a few year ago : is that still needed ?
Don't know, I've taken that directly from u-boot recipe (didn't want
to reinvent the wheel)
>
>> + unset CFLAGS CPPFLAGS LDFLAGS
>> + oe_runmake
>> +}
>> +
>> +do_install () {
>> + install -d ${D}/boot
>> + install ${S}/barebox-flash-image ${D}/boot/${BAREBOX_IMAGE}
>> + ln -sf ${BAREBOX_IMAGE} ${D}/boot/${BAREBOX_BINARY}
>> +
>> + # Install target tools if available
>> + install -d ${D}${sbindir}
>> +
>> + if [ -e ${WORKDIR}/scripts/bareboxenv-target ]; then
>> + install -m 0755 ${WORKDIR}/scripts/bareboxenv-target ${D}${sbindir}/bareboxenv
>> + fi
>> +
>> + if [ -e ${WORKDIR}/scripts/bareboxcrc32-target ]; then
>> + install -m 0755 ${WORKDIR}/scripts/bareboxcrc32-target ${D}${sbindir}/bareboxcrc32
>> + fi
>> +
>> + if [ -e ${WORKDIR}/scripts/kernel-install-target ]; then
>> + install -m 0755 ${WORKDIR}/scripts/kernel-install-target ${D}${sbindir}/kernel-install
>> + fi
>> +}
>> +
>> +FILES_${PN} = "/boot ${sbindir}"
>
> Why not splitting the tools in their own package so that we can have
> the tools on the target without having the binary in /boot ?
Create a barebox-tools recipe should also solve some problems I have
building the said tools (but it is more a question related to barebox
team than OE). I can do it if this request gets accepted. Could be a
v2 for this patch.
>
>> +
>> +do_deploy () {
>> + install -d ${DEPLOYDIR}
>> + install ${S}/barebox-flash-image ${DEPLOYDIR}/${BAREBOX_IMAGE}
>> +
> Why don't you use $BAREBOX_BINARY instead of hardcoding
> barebox-flash-image which won't work on old versions of barebox where
> barebox's binary is named barebox.bin ?
I didn't know that, but I am not sure I can use $BAREBOX_BINARY since
this variable is used in $DEPLOY_DIR. I tried to mimic u-boot recipe
behavior as much as possible.
>
> Best regards,
> Eric
Greetings,
David
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] barebox: Add recipe
2014-07-28 12:15 ` David Vincent
@ 2014-07-28 14:42 ` Eric Bénard
2014-07-30 9:40 ` David Vincent
0 siblings, 1 reply; 9+ messages in thread
From: Eric Bénard @ 2014-07-28 14:42 UTC (permalink / raw)
To: David Vincent; +Cc: openembedded-core
Hi David,
Le Mon, 28 Jul 2014 14:15:12 +0200,
David Vincent <freesilicon@gmail.com> a écrit :
> > Why don't you use $BAREBOX_BINARY instead of hardcoding
> > barebox-flash-image which won't work on old versions of barebox where
> > barebox's binary is named barebox.bin ?
>
> I didn't know that, but I am not sure I can use $BAREBOX_BINARY since
> this variable is used in $DEPLOY_DIR. I tried to mimic u-boot recipe
> behavior as much as possible.
>
you can use the variable as it's defined upper. u-boot recipe does it
this way :
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot/u-boot.inc#n19
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot/u-boot.inc#n63
FWIW you can find here the initial barebox recipe we have in
meta-fsl-arm :
https://github.com/Freescale/meta-fsl-arm/tree/master/recipes-bsp/barebox
Best regards,
Eric
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] barebox: Add recipe
2014-07-28 14:42 ` Eric Bénard
@ 2014-07-30 9:40 ` David Vincent
0 siblings, 0 replies; 9+ messages in thread
From: David Vincent @ 2014-07-30 9:40 UTC (permalink / raw)
To: openembedded-core
Hi all,
Sorry to come back on this subject, but what is the current status of
this request?
Do you need more background? Are you waiting for more opinions or a
vote on this subject? Should I submit a v2 of this patch with what we
have discussed to make it more polished for OE-Core (or another
layer)?
Again, sorry for the noise!
Greetings,
David
2014-07-28 16:42 GMT+02:00 Eric Bénard <eric@eukrea.com>:
> Hi David,
>
> Le Mon, 28 Jul 2014 14:15:12 +0200,
> David Vincent <freesilicon@gmail.com> a écrit :
>> > Why don't you use $BAREBOX_BINARY instead of hardcoding
>> > barebox-flash-image which won't work on old versions of barebox where
>> > barebox's binary is named barebox.bin ?
>>
>> I didn't know that, but I am not sure I can use $BAREBOX_BINARY since
>> this variable is used in $DEPLOY_DIR. I tried to mimic u-boot recipe
>> behavior as much as possible.
>>
> you can use the variable as it's defined upper. u-boot recipe does it
> this way :
> http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot/u-boot.inc#n19
> http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot/u-boot.inc#n63
>
> FWIW you can find here the initial barebox recipe we have in
> meta-fsl-arm :
> https://github.com/Freescale/meta-fsl-arm/tree/master/recipes-bsp/barebox
>
> Best regards,
> Eric
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-07-30 16:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 9:55 [PATCH] barebox: Add recipe David Vincent
2014-07-28 10:23 ` Richard Purdie
[not found] ` <CAKRNOGwGr3BM8FTMoqjNQ+p0tFKUj55RdyL+0wemf_7f1r1UcQ@mail.gmail.com>
2014-07-28 12:02 ` David Vincent
2014-07-30 11:46 ` Stefan Müller-Klieser
2014-07-30 16:56 ` Khem Raj
2014-07-28 11:58 ` Eric Bénard
2014-07-28 12:15 ` David Vincent
2014-07-28 14:42 ` Eric Bénard
2014-07-30 9:40 ` David Vincent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox