mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Ptxdist / DistroKit Questions
@ 2017-07-09 13:09 Vlastimil Setka
  2017-07-09 19:42 ` Alexander Dahl
  2017-07-17  8:01 ` Michael Olbrich
  0 siblings, 2 replies; 3+ messages in thread
From: Vlastimil Setka @ 2017-07-09 13:09 UTC (permalink / raw)
  To: ptxdist

Hello,

after using ptxdist with DistroKit as a reference BSP for a while, I 
have several questions and ambiguities about some dark corners:

# Is it possible to built some packages into .ipk files, but do not 
include them by default in the image? I thought that the [M] option 
available in menuconfig could be intended for this, but seems it does 
not work this way. Btw, what the [M] option really do differently from [*]?

# (maybe extension of previous question) How to manage ptxdist 
configuration for multiple boards sharing the same CPU architecture and 
all base packages? Some boards needs some additional packages for 
specific HW, or specific application cases. Or the requirement could be 
to have minimal image and full-featured image for the same board. It 
would be nice to have some way how to build multiple images -- with 
multiple different _rootfs_ images -- with different package (and maybe 
additional files) sets.

# How the ${PTXDIST_BSP_AUTOVERSION} works? With current DistroKit from 
git, I'm allways getting 
"OSELAS(R)-DistroKit-????.??.?-?-g76e1280aca97-dirty-1 / 
v7a-????.??.?-?-g76e1280aca97-dirty". Similar problem with ???? version 
is in the doc files built from current git. Maybe some tag is missing in 
the git?

Regards, Vlastimil


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Ptxdist / DistroKit Questions
  2017-07-09 13:09 [ptxdist] Ptxdist / DistroKit Questions Vlastimil Setka
@ 2017-07-09 19:42 ` Alexander Dahl
  2017-07-17  8:01 ` Michael Olbrich
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Dahl @ 2017-07-09 19:42 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1027 bytes --]

Hei hei,

On Sun, Jul 09, 2017 at 03:09:21PM +0200, Vlastimil Setka wrote:
> # Is it possible to built some packages into .ipk files, but do not include
> them by default in the image? I thought that the [M] option available in
> menuconfig could be intended for this, but seems it does not work this way.
> Btw, what the [M] option really do differently from [*]?

This is for using so called collections, which are not well
documented. You can create so called collection configs for different
sets of packages. 'ptxdist menuconfig collection' allows to edit
those and there's a symlink selected_collection (?) in your BSP. You
may search the mailing list archive, IIRC there were some explanations
over the years.

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured, 
the first thought forbidden, the first freedom denied, chains us all 
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: C28E E6B9 0263 95CF 8FAF  08FA 34AD CD00 7221 5CC6 ***

[-- Attachment #1.2: Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Ptxdist / DistroKit Questions
  2017-07-09 13:09 [ptxdist] Ptxdist / DistroKit Questions Vlastimil Setka
  2017-07-09 19:42 ` Alexander Dahl
@ 2017-07-17  8:01 ` Michael Olbrich
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2017-07-17  8:01 UTC (permalink / raw)
  To: ptxdist

Hi,

On Sun, Jul 09, 2017 at 03:09:21PM +0200, Vlastimil Setka wrote:
> after using ptxdist with DistroKit as a reference BSP for a while, I have
> several questions and ambiguities about some dark corners:
> 
> # Is it possible to built some packages into .ipk files, but do not include
> them by default in the image? I thought that the [M] option available in
> menuconfig could be intended for this, but seems it does not work this way.
> Btw, what the [M] option really do differently from [*]?

With no collection [M] and [*] behave the same way. With a collection, you
enable or disable the packages marked as [M]. So by choosing a collection
you can enable or disable groups of packages. This can be done globally as
Alexander described, or for an image. Or you can use a collection for an
image. This is actually described in the documentation. Just search for
'collection' in the docs/ directory.

> # (maybe extension of previous question) How to manage ptxdist configuration
> for multiple boards sharing the same CPU architecture and all base packages?
> Some boards needs some additional packages for specific HW, or specific
> application cases. Or the requirement could be to have minimal image and
> full-featured image for the same board. It would be nice to have some way
> how to build multiple images -- with multiple different _rootfs_ images --
> with different package (and maybe additional files) sets.

As mentioned above, you can use collections for an image. Just create a new
rootfs image and collection for each board.
There are some limitations:
 - The collections only work with packages not sub-options.
 - It must be possible to build all packages in one go, so there cannot be
   conflicting header files.

If you use NFS root: Search for _NFSROOT in the documentation. You can
create a separate NFS root for each collection.

> # How the ${PTXDIST_BSP_AUTOVERSION} works? With current DistroKit from git,
> I'm allways getting "OSELAS(R)-DistroKit-????.??.?-?-g76e1280aca97-dirty-1 /
> v7a-????.??.?-?-g76e1280aca97-dirty". Similar problem with ???? version is
> in the doc files built from current git. Maybe some tag is missing in the
> git?

PTXDIST_BSP_AUTOVERSION uses 'git describe'. This needs annotated (or
signed) tags. And it expects the tags to be named: SomeTagPrefix-YYYY.MM.n
(<year>.<month>.<bugfixversion>) similar to the ptxdist tags.

Regards,
Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2017-07-17  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-09 13:09 [ptxdist] Ptxdist / DistroKit Questions Vlastimil Setka
2017-07-09 19:42 ` Alexander Dahl
2017-07-17  8:01 ` Michael Olbrich

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