mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Copying kernel and uboot to /boot in target filesystem image
@ 2018-12-21 12:17 Guillermo Rodriguez Garcia
  2018-12-21 13:01 ` Alexander Dahl
  0 siblings, 1 reply; 5+ messages in thread
From: Guillermo Rodriguez Garcia @ 2018-12-21 12:17 UTC (permalink / raw)
  To: ptxdist

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.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image
  2018-12-21 12:17 [ptxdist] Copying kernel and uboot to /boot in target filesystem image Guillermo Rodriguez Garcia
@ 2018-12-21 13:01 ` Alexander Dahl
  2018-12-21 13:27   ` Guillermo Rodriguez Garcia
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Dahl @ 2018-12-21 13:01 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image
  2018-12-21 13:01 ` Alexander Dahl
@ 2018-12-21 13:27   ` Guillermo Rodriguez Garcia
  2018-12-21 14:16     ` Alexander Dahl
  0 siblings, 1 reply; 5+ messages in thread
From: Guillermo Rodriguez Garcia @ 2018-12-21 13:27 UTC (permalink / raw)
  To: ptxdist

Hi Alexander,

El vie., 21 dic. 2018 a las 14:02, Alexander Dahl (<ada@thorsis.com>) 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image
  2018-12-21 13:27   ` Guillermo Rodriguez Garcia
@ 2018-12-21 14:16     ` Alexander Dahl
  2018-12-21 15:52       ` Guillermo Rodriguez Garcia
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Dahl @ 2018-12-21 14:16 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Copying kernel and uboot to /boot in target filesystem image
  2018-12-21 14:16     ` Alexander Dahl
@ 2018-12-21 15:52       ` Guillermo Rodriguez Garcia
  0 siblings, 0 replies; 5+ messages in thread
From: Guillermo Rodriguez Garcia @ 2018-12-21 15:52 UTC (permalink / raw)
  To: ptxdist

Hello,

El vie., 21 dic. 2018 a las 15:16, Alexander Dahl (<ada@thorsis.com>) 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-21 15:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-21 12:17 [ptxdist] Copying kernel and uboot to /boot in target filesystem image Guillermo Rodriguez Garcia
2018-12-21 13:01 ` Alexander Dahl
2018-12-21 13:27   ` Guillermo Rodriguez Garcia
2018-12-21 14:16     ` Alexander Dahl
2018-12-21 15:52       ` Guillermo Rodriguez Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox