Re: [ptxdist] Question to BUILDTIME

2019-06-28 Thread Denis OSTERLAND
Hi Michael,

seems my mind tricked my.
Thanks for the explanation.

Regards Denis

Am Freitag, den 28.06.2019, 16:23 +0200 schrieb Michael Olbrich:
> Hi,
> 
> On Fri, Jun 28, 2019 at 08:14:09AM +, Denis OSTERLAND wrote:
> > 
> > Am Freitag, den 28.06.2019, 09:12 +0200 schrieb Michael Olbrich:
> > > 
> > > On Thu, Jun 27, 2019 at 01:25:50PM +, Denis OSTERLAND wrote:
> > > > 
> > > >  
> > > > select  if BUILDTIME
> > > >  
> > > > works only if  has no prompt, correct?
> > > No, 'if BUILDTIME' can be used with any package. It just means, that The
> > > packages will be ordered accordingly at build-time but no dependency will
> > > be added to the resulting .ipk File.
> > This was how I understand it two.
> > The last time I used this feature is to long ago, to be sure ;-)
> > With recent release (ptxdist-2019.06.0) the package gets installed until I 
> > remove prompt line.
> > 
> > I try to pin my problem down.
> > Where is the post processing which removes the dependencies with BUILDTIME?
> > I mean, in 'scripts/lib/ptxd_lib_dgen.sh' there is 
> > 'PTXDIST_DEP_TARGET="run" ptxd_kconfig_dep_all "${config[@]}"',
> > but the automatically selected package will stick if it has a prompt.
> I think I understand way you're trying to do.  Consider this example:
> 
> config FOO
>   tristate
>   select BAR if BUILDTIME
>   prompt "foo"
> 
> If 'foo' is enabled, then so is 'bar'. This means both symbols are enabled
> in the ptxconfig. This also means that both packages will be in the default
> package ist for the rootfs. That cannot be changed.
> What 'if BUILDTIME' means is, that
> 1. The make dependencies are a bit more relaxed, which can improve the
>    build time.
> 2. There is no dependency for this in the ipkg. So you could remove the
>    package 'bar' at runtime without removing 'foo'.
> 
> Creating an image with 'foo' but without 'bar' is not easily done. I
> suppose you could create your own image with:
> 
> IMAGE_BLA_PKGS := $(filter-out bar,$(PTX_PACKAGES_INSTALL))
> 
> Regards,
> Michael
> 

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Question to BUILDTIME

2019-06-28 Thread Michael Olbrich
Hi,

On Fri, Jun 28, 2019 at 08:14:09AM +, Denis OSTERLAND wrote:
> Am Freitag, den 28.06.2019, 09:12 +0200 schrieb Michael Olbrich:
> > On Thu, Jun 27, 2019 at 01:25:50PM +, Denis OSTERLAND wrote:
> > > 
> > > select  if BUILDTIME
> > > 
> > > works only if  has no prompt, correct?
> > No, 'if BUILDTIME' can be used with any package. It just means, that The
> > packages will be ordered accordingly at build-time but no dependency will
> > be added to the resulting .ipk File.
> This was how I understand it two.
> The last time I used this feature is to long ago, to be sure ;-)
> With recent release (ptxdist-2019.06.0) the package gets installed until I 
> remove prompt line.
> 
> I try to pin my problem down.
> Where is the post processing which removes the dependencies with BUILDTIME?
> I mean, in 'scripts/lib/ptxd_lib_dgen.sh' there is 'PTXDIST_DEP_TARGET="run" 
> ptxd_kconfig_dep_all "${config[@]}"',
> but the automatically selected package will stick if it has a prompt.

I think I understand way you're trying to do.  Consider this example:

config FOO
tristate
select BAR if BUILDTIME
prompt "foo"

If 'foo' is enabled, then so is 'bar'. This means both symbols are enabled
in the ptxconfig. This also means that both packages will be in the default
package ist for the rootfs. That cannot be changed.
What 'if BUILDTIME' means is, that
1. The make dependencies are a bit more relaxed, which can improve the
   build time.
2. There is no dependency for this in the ipkg. So you could remove the
   package 'bar' at runtime without removing 'foo'.

Creating an image with 'foo' but without 'bar' is not easily done. I
suppose you could create your own image with:

IMAGE_BLA_PKGS := $(filter-out bar,$(PTX_PACKAGES_INSTALL))

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- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Question to BUILDTIME

2019-06-28 Thread Denis OSTERLAND
Hi,

Am Freitag, den 28.06.2019, 09:12 +0200 schrieb Michael Olbrich:
> Hi,
> 
> On Thu, Jun 27, 2019 at 01:25:50PM +, Denis OSTERLAND wrote:
> > 
> > select  if BUILDTIME
> > 
> > works only if  has no prompt, correct?
> No, 'if BUILDTIME' can be used with any package. It just means, that The
> packages will be ordered accordingly at build-time but no dependency will
> be added to the resulting .ipk File.
This was how I understand it two.
The last time I used this feature is to long ago, to be sure ;-)
With recent release (ptxdist-2019.06.0) the package gets installed until I 
remove prompt line.

I try to pin my problem down.
Where is the post processing which removes the dependencies with BUILDTIME?
I mean, in 'scripts/lib/ptxd_lib_dgen.sh' there is 'PTXDIST_DEP_TARGET="run" 
ptxd_kconfig_dep_all "${config[@]}"',
but the automatically selected package will stick if it has a prompt.

Regards Denis

> 
> 
> Michael
> 

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Question to BUILDTIME

2019-06-28 Thread Michael Olbrich
Hi,

On Thu, Jun 27, 2019 at 01:25:50PM +, Denis OSTERLAND wrote:
> select  if BUILDTIME
> 
> works only if  has no prompt, correct?

No, 'if BUILDTIME' can be used with any package. It just means, that The
packages will be ordered accordingly at build-time but no dependency will
be added to the resulting .ipk File.


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- |

___
ptxdist mailing list
ptxdist@pengutronix.de