Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image

2018-12-21 Thread Guillermo Rodriguez Garcia
Hello,

El vie., 21 dic. 2018 a las 15:16, Alexander Dahl () escribió:
>
> Hello,
>
> Am Freitag, 21. Dezember 2018, 14:27:12 CET schrieb Guillermo Rodriguez
> Garcia:
> > > PTXCONF_U_BOOT is in platformconfig, so I guess your .in file can only
> > > depend on it, if it extends the platformconfig as well, not the normal
> > > ptxconfig?
> > I see. How can I have my .in file "extend" the platformconfig ?
>
> Just move it from the folder 'rules' to 'platforms' or maybe better to config/
> yourplatform/platforms. You call 'make platformconfig' then and find it
> somewhere there.
>
> It's probably good to see some other platform packages in the ptxdist source
> in 'platforms' or in DistroKit e.g. in 'configs/platform-v7a/platforms'. IIRC
> the categories in the first line of the .in file differ.
>
> I'm not sure if all possibilities for the accompaning .make files apply, nor
> if that topic is covered in the documentation, but it should give you a
> starting point.

This got me on the right track, although it looks like it doesn't
matter whether the file is in rules, or platform or whatever -- what
matters is actually the category in the first line of the .in file.
In fact, I already have a modified u-boot.in in my BSP's rules
directory, so I just added a new option there; if this option is
enabled, any selected u-boot files will be installed to /boot in the
target filesystem, in addition to copying them to the platform image
directory.

Thank you for the pointer!

Guillermo

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image

2018-12-21 Thread Alexander Dahl
Hello, 

Am Freitag, 21. Dezember 2018, 14:27:12 CET schrieb Guillermo Rodriguez 
Garcia:
> > PTXCONF_U_BOOT is in platformconfig, so I guess your .in file can only
> > depend on it, if it extends the platformconfig as well, not the normal
> > ptxconfig?
> I see. How can I have my .in file "extend" the platformconfig ?

Just move it from the folder 'rules' to 'platforms' or maybe better to config/
yourplatform/platforms. You call 'make platformconfig' then and find it 
somewhere there. 

It's probably good to see some other platform packages in the ptxdist source 
in 'platforms' or in DistroKit e.g. in 'configs/platform-v7a/platforms'. IIRC 
the categories in the first line of the .in file differ.

I'm not sure if all possibilities for the accompaning .make files apply, nor 
if that topic is covered in the documentation, but it should give you a 
starting point.

Greets
Alex


___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image

2018-12-21 Thread Guillermo Rodriguez Garcia
Hi Alexander,

El vie., 21 dic. 2018 a las 14:02, Alexander Dahl () escribió:
>
> Hei hei,
>
> Am Freitag, 21. Dezember 2018, 13:17:52 CET schrieb Guillermo Rodriguez
> Garcia:
> > I want to have ptxdist copy the generated kernel and uboot binaries to
> > the /boot directory in the target filesystem image.
>
> What about KERNEL_INSTALL in platformconfig? Do you have more files which are
> not covered by that?

I didn't know about that option. That's good -- it covers the kernel
and dts file. But I also need to copy the SPL and uboot binaries.

>
> > For this I need to setup a package that would depend on the kernel and
> > uboot packages, so that these are generated first. In the .in file I
> > added the following:
> >
> > select U_BOOT if ROOTFS_EXTRA_COPY_UBOOT_FILES
> > select KERNEL if ROOTFS_EXTRA_COPY_KERNEL_FILES
> >
> > But for u-boot I get the following:
> >
> > warning: 'select' used by config symbol 'ROOTFS_EXTRA' refers to
> > undefined symbol 'U_BOOT'
> >
> > Why is this, and how can I solve it?
>
> PTXCONF_U_BOOT is in platformconfig, so I guess your .in file can only depend
> on it, if it extends the platformconfig as well, not the normal ptxconfig?

I see. How can I have my .in file "extend" the platformconfig ?

Thanks,

Guillermo

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image

2018-12-21 Thread Alexander Dahl
Hei hei,

Am Freitag, 21. Dezember 2018, 13:17:52 CET schrieb Guillermo Rodriguez 
Garcia:
> I want to have ptxdist copy the generated kernel and uboot binaries to
> the /boot directory in the target filesystem image.

What about KERNEL_INSTALL in platformconfig? Do you have more files which are 
not covered by that?

> For this I need to setup a package that would depend on the kernel and
> uboot packages, so that these are generated first. In the .in file I
> added the following:
> 
> select U_BOOT if ROOTFS_EXTRA_COPY_UBOOT_FILES
> select KERNEL if ROOTFS_EXTRA_COPY_KERNEL_FILES
> 
> But for u-boot I get the following:
> 
> warning: 'select' used by config symbol 'ROOTFS_EXTRA' refers to
> undefined symbol 'U_BOOT'
> 
> Why is this, and how can I solve it?

PTXCONF_U_BOOT is in platformconfig, so I guess your .in file can only depend 
on it, if it extends the platformconfig as well, not the normal ptxconfig?

Greets
Alex


___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] Copying kernel and uboot to /boot in target filesystem image

2018-12-21 Thread Guillermo Rodriguez Garcia
Hi all,

I want to have ptxdist copy the generated kernel and uboot binaries to
the /boot directory in the target filesystem image.

For this I need to setup a package that would depend on the kernel and
uboot packages, so that these are generated first. In the .in file I
added the following:

select U_BOOT if ROOTFS_EXTRA_COPY_UBOOT_FILES
select KERNEL if ROOTFS_EXTRA_COPY_KERNEL_FILES

But for u-boot I get the following:

warning: 'select' used by config symbol 'ROOTFS_EXTRA' refers to
undefined symbol 'U_BOOT'

Why is this, and how can I solve it?

Thank you,

Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de