Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-15 Thread André Draszik
On Thu, 2017-09-14 at 09:13 -0300, Otavio Salvador wrote: > On Thu, Sep 14, 2017 at 7:26 AM, André Draszik wrote: > > On Wed, 2017-09-13 at 09:30 -0300, Otavio Salvador wrote: > > > On Wed, Sep 13, 2017 at 5:15 AM, André Draszik wrote: > > > > On Tue, 2017-09-12 at 17:36 -0300, Otavio Salvador wr

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-14 Thread Otavio Salvador
On Thu, Sep 14, 2017 at 7:26 AM, André Draszik wrote: > On Wed, 2017-09-13 at 09:30 -0300, Otavio Salvador wrote: >> On Wed, Sep 13, 2017 at 5:15 AM, André Draszik wrote: >> > On Tue, 2017-09-12 at 17:36 -0300, Otavio Salvador wrote: >> >> ... >> > AFAICS, zImage is specific to x86 and arm, all o

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-14 Thread André Draszik
On Wed, 2017-09-13 at 09:30 -0300, Otavio Salvador wrote: > On Wed, Sep 13, 2017 at 5:15 AM, André Draszik wrote: > > On Tue, 2017-09-12 at 17:36 -0300, Otavio Salvador wrote: > > ... > > AFAICS, zImage is specific to x86 and arm, all other arches, including > > MIPS > > have no zImage Makefile t

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-14 Thread André Draszik
On Tue, 2017-09-12 at 17:36 -0300, Otavio Salvador wrote: > The are use cases where the Device Tree appended to the kernel is > convinient, so we generate the bundle concatenating the kernel (and > potentionally the initramfs) and the Device Tree binaries. > > To enable it, set KERNEL_DEVICETREE_B

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-13 Thread Otavio Salvador
On Wed, Sep 13, 2017 at 5:15 AM, André Draszik wrote: > On Tue, 2017-09-12 at 17:36 -0300, Otavio Salvador wrote: ... > AFAICS, zImage is specific to x86 and arm, all other arches, including MIPS > have no zImage Makefile target, so we'll never get here. Do you know which types we can use here?

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-13 Thread André Draszik
On Tue, 2017-09-12 at 17:36 -0300, Otavio Salvador wrote: > The are use cases where the Device Tree appended to the kernel is > convinient, so we generate the bundle concatenating the kernel (and > potentionally the initramfs) and the Device Tree binaries. > > To enable it, set KERNEL_DEVICETREE_B

[OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-12 Thread Otavio Salvador
The are use cases where the Device Tree appended to the kernel is convinient, so we generate the bundle concatenating the kernel (and potentionally the initramfs) and the Device Tree binaries. To enable it, set KERNEL_DEVICETREE_BUNDLE variable to '1' Signed-off-by: Otavio Salvador --- Changes

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-12 Thread Otavio Salvador
Andreas, On Tue, Sep 12, 2017 at 4:10 PM, Andreas Oberritter wrote: > On Tue, 12 Sep 2017 14:00:43 -0300 > Otavio Salvador wrote: >> On Tue, Sep 12, 2017 at 11:45 AM, Andreas Oberritter >> wrote: >> > Hi Otavio, >> > >> > On Tue, 12 Sep 2017 10:45:51 -0300 >> > Otavio Salvador wrote: >> > >> >

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-12 Thread Andreas Oberritter
On Tue, 12 Sep 2017 14:00:43 -0300 Otavio Salvador wrote: > Hello Andreas, > > On Tue, Sep 12, 2017 at 11:45 AM, Andreas Oberritter > wrote: > > Hi Otavio, > > > > On Tue, 12 Sep 2017 10:45:51 -0300 > > Otavio Salvador wrote: > > > >> +do_configure_devicetree() { > >> + if [ "${KERNEL_DE

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-12 Thread Otavio Salvador
Hello Andreas, On Tue, Sep 12, 2017 at 11:45 AM, Andreas Oberritter wrote: > Hi Otavio, > > On Tue, 12 Sep 2017 10:45:51 -0300 > Otavio Salvador wrote: > >> +do_configure_devicetree() { >> + if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then >> + if echo ${KERNEL_IMAGETYPE_FOR_MAKE

Re: [OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-12 Thread Andreas Oberritter
Hi Otavio, On Tue, 12 Sep 2017 10:45:51 -0300 Otavio Salvador wrote: > +do_configure_devicetree() { > + if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then > + if echo ${KERNEL_IMAGETYPE_FOR_MAKE} | grep -q 'zImage'; then > + config="${B}/.config" > +

[OE-core] [PATCH v8 3/3] kernel-devicetree.bbclass: Add support to generate append to kernel

2017-09-12 Thread Otavio Salvador
The are use cases where the Device Tree appended to the kernel is convinient, so we generate the bundle concatenating the kernel (and potentionally the initramfs) and the Device Tree binaries. To enable it, set KERNEL_DEVICETREE_BUNDLE variable to '1' Signed-off-by: Otavio Salvador --- Changes