Phil Sutter dixit:

>You're sure this is how the dependency mentioned above ought to be used?
>Doesn't it rather decide whether a package should be installed into the
>rootfs image?

Yes and no. If it's y/m it should be built. If it's y it should be
packaged into the root fs, but that's not what I mean here.

>Rewriting all calls to PKG_template is not acceptable.

Why? We're touching all Makefiles anyway. Plus, this'd be easy to script.

>This is why I
>suggested a solution where only the template has to be changed

How would you do that? In the asterisk case, what differences
are between the first and the second call?

>> An alternative solution:
>> - ifeq ($(FWRT_PACKAGE_$(1)),y)
>> + ifneq (${FWRT_PACKAGE_$(1)}${DEVELOPER},)
>
>This is about what I want to have, but best defined as make function, so
>one doesn't have to type so much, and it's easy to remember.

No, that's INSIDE the template.

>Please note that the problem is merely missing control over what
>sub-packages are build when using 'package=foobar'

Wrong, because a full make has the same problems(*).

>This is the jumping point (taken from mk/package.mk):
>| ifneq ($(FWRT_PACKAGE_$(1)),)
>| compile-targets: $$(IPKG_$(1))
>| endif
>| ifneq ($(DEVELOPER),)
>| compile-targets: $$(IPKG_$(1))
>| endif

compile-targets are no longer used.

That's what I meant.

>BTW: I had my problems with asterisk also when using just 'make', so
>it's not a problem of building with 'package=asterisk'!

I said that above at (*).

bye,
//mirabile
-- 
  "Using Lynx is like wearing a really good pair of shades: cuts out
   the glare and harmful UV (ultra-vanity), and you feel so-o-o COOL."
                                         -- Henry Nelson, March 1999
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to