From: Michael Walle <michael@walle.cc>
To: buildroot@busybox.net
Subject: [Buildroot] genconfig/unconditonally include external.mk
Date: Tue, 08 Nov 2016 11:59:53 +0100 [thread overview]
Message-ID: <fce79a1a961dd6b6df31fbdca3166af2@walle.cc> (raw)
In-Reply-To: <ebbb33ee-6c3c-8be4-0e3e-ffdd136d6ad7@mind.be>
Am 2016-11-08 02:22, schrieb Arnout Vandecappelle:
> On 07-11-16 10:49, Michael Walle wrote:
>> Hi,
>>
>> there was a discussion (and rejected patches) [1] about adding support
>> for
>> buildroot config fragments. The conclusion was that this should not be
>> part of
>> buildroot and should stay external.
>
> With "stay external", the idea was not that it would be handled in
> external.mk,
> but rather that you have a script that merges the defconfigs to a
> temporary file
> and the calls 'make defconfig BR2_DEFCONFIG=...' on it.
mhh, ok, but i guess having additional make targets would be more
appealing. Esp. if you need some variables defined by buildroot.
>> But an integration would need unconditonal
>> inclusion of the external.mk. The last mail about this subject was in
>> July [2].
>> Are there any news on this topic?
>
> Nobody ever posted a patch :-)
>
> But I can already tell you that you won't be able to just move the
> include
> outside of the conditional: it can go up over the definition of the
> package
> infras, and it can't go down over the target-finalize: $(PACKAGES)
> rule. So it
> has to stay where it is, and the conditional has to be split up.
>
> It should be analyzed then what the effect is of including package .mk
> files
> when the package infra is not defined.
mhh I see.. yann wrote that the correct solution would be to include
external.mk unconditionally. I'm not so sure about this anymore after
your comment above. I think we should treat the internal and external
package makefiles the same. That is, either include both if
BR2_HAVE_DOT_CONFIG is not set or include none of them. But I guess
there is are reasons not include the package files if
BR2_HAVE_DOT_CONFIG is not set. So why should be external package .mk
files be special..
You could include external.mk unconditonally, but put the package .mk
files in a BR2_HAVE_DOT_CONFIG block, which is not backwards compatible
and doesn't really fit simplicity. So I'm not sure. I know you were
already down that route, but a second external.mk which is included
unconditonally?
-michael
next prev parent reply other threads:[~2016-11-08 10:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-07 9:49 [Buildroot] genconfig/unconditonally include external.mk Michael Walle
2016-11-08 1:22 ` Arnout Vandecappelle
2016-11-08 10:59 ` Michael Walle [this message]
2016-11-08 12:02 ` Arnout Vandecappelle
2016-11-08 12:38 ` Michael Walle
2016-11-08 22:05 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fce79a1a961dd6b6df31fbdca3166af2@walle.cc \
--to=michael@walle.cc \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.