[OE-core] [PATCH v2 1/3] kernel-fitimage: add initramfs support

George McCollister george.mccollister at gmail.com
Mon Aug 8 16:15:19 UTC 2016


On Fri, Aug 5, 2016 at 4:25 PM, Denys Dmytriyenko <denis at denix.org> wrote:
> On Mon, Jul 18, 2016 at 12:57:55PM -0500, George McCollister wrote:
>> If INITRAMFS_IMAGE is set, build an additional fitImage containing the
>> initramfs. Copy the additional fitImage and the source (*.its) file, used
>> to create it to DEPLOYDIR. The fitImage containing the initramfs must be
>> built before do_deploy and after do_install to avoid circular dependencies.
>>
>> UBOOT_RD_LOADADDRESS - Specifies the load address used by u-boot for the
>>                        initramfs.
>> UBOOT_RD_ENTRYPOINT  - Specifies the entry point used by u-boot for the
>>                        initramfs.
>>
>> Signed-off-by: George McCollister <george.mccollister at gmail.com>
>> ---
>>  meta/classes/kernel-fitimage.bbclass | 282 +++++++++++++++++++++++------------
>>  1 file changed, 187 insertions(+), 95 deletions(-)
>>
>> diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
>> index 9a3caf5..ede69e7 100644
>> --- a/meta/classes/kernel-fitimage.bbclass
>> +++ b/meta/classes/kernel-fitimage.bbclass
>> @@ -16,7 +16,7 @@ python __anonymous () {
>>
>
> <snip>
>
>
>> +     #
>> +     # Step 3: Prepare a ramdisk section.
>> +     #
>> +     if [ "x${ramdiskcount}" = "x1" ] ; then
>> +             copy_initramfs
>> +             fitimage_emit_section_ramdisk ${1} "${ramdiskcount}" ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio
>
> May I suggest dropping ${B} here to get the ramdisk path shorter and easier to
> read? It's relative to ${B} anyway - same as all the DTBs...
>
> + fitimage_emit_section_ramdisk ${1} "${ramdiskcount}" usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio

Change made, will be included in the new pull request.
Thanks

>
>> +     fi
>>
>
> <snip>
>
> --
> Denys



More information about the Openembedded-core mailing list