From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/6] Remove the "project" feature
Date: Sat, 19 Sep 2009 17:26:29 +0200 [thread overview]
Message-ID: <87fxajx8ey.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <20090917161713.GA4647@mx.loc> (Bernhard Reutner-Fischer's message of "Thu\, 17 Sep 2009 18\:17\:13 +0200")
>>>>> "Bernhard" == Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> writes:
Hi,
Bernhard> On Wed, Sep 16, 2009 at 11:07:41PM +0200, Thomas Petazzoni wrote:
>> flush:
>> - rm -f $(PROJECT_BUILD_DIR)/tgt-config.cache
>> + rm -f $(BUILD_DIR)/tgt-config.cache
>>
>> %_defconfig: $(CONFIG)/conf
>> cp $(shell find ./target/ -name $@) .config
>> -@$(MAKE) oldconfig
Bernhard> That find is gross. $(wildcard $(TOPDIR)/target/*/$(@)_defconfig)
Bernhard> and we have $(Q) that is either set to '@' or is empty.
Bernhard> Apart from that a failing oldconfig is and should be fatal.
Yes - Notice that it's not something new Thomas is introducing, it has
been in the tree for a long time (Ulf afaik added it).
I think I would actually prefer having all defconfigs together in
something like configs/ just like the Linux kernel has it instead of
spread over the tree. That has a number of advantages:
- %_defconfig rule gets a lot simpler - E.G. something like:
%_defconfig: $(TOPDIR)/config/%_defconfig:
cp $^ $(TOPDIR)/.config
- We could display the available defconfigs in make help:
@$(foreach b, $(notdir $(wildcard $(TOPDIR)/configs/*_defconfig)), \
printf " %-22s - Build for %s\\n" $(b) $(subst _defconfig,,$(b));)
- It's easy to build all defconfigs before a release with simple shell
scripting, and it's easy for newcomers to see what configs are
available
The disadvantage is that the defconfig isn't together with the other
target/device/* files.
I implemented something like that for the company I work for, but Ulf
added the current implementation before I got mine committed.
Comments, anyone?
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2009-09-19 15:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-16 21:07 [Buildroot] [pull request] Buildroot cleanup, v2 Thomas Petazzoni
2009-09-16 21:07 ` [Buildroot] [PATCH 1/6] Remove the "project" feature Thomas Petazzoni
2009-09-17 16:17 ` Bernhard Reutner-Fischer
2009-09-17 17:30 ` Thomas Petazzoni
2009-09-19 15:26 ` Peter Korsgaard [this message]
2009-09-19 15:15 ` Peter Korsgaard
2009-09-16 21:07 ` [Buildroot] [PATCH 2/6] Remove the BOARD/LOCAL feature Thomas Petazzoni
2009-09-16 22:00 ` Thiago A. Corrêa
2009-09-16 22:08 ` Thomas Petazzoni
2009-09-16 22:21 ` Thiago A. Corrêa
2009-09-17 5:43 ` Thomas Petazzoni
2009-09-17 12:02 ` Peter Korsgaard
2009-09-16 21:07 ` [Buildroot] [PATCH 3/6] By default, put the output in an output/ directory Thomas Petazzoni
2009-09-16 21:07 ` [Buildroot] [PATCH 4/6] Remove BR2_TOPDIR_PREFIX and BR2_TOPDIR_SUFFIX Thomas Petazzoni
2009-09-16 21:07 ` [Buildroot] [PATCH 5/6] Rename the output directories Thomas Petazzoni
2009-09-16 21:07 ` [Buildroot] [PATCH 6/6] documentation: update after major changes Thomas Petazzoni
2009-09-19 15:27 ` [Buildroot] [pull request] Buildroot cleanup, v2 Peter Korsgaard
2009-09-20 9:08 ` Thomas Petazzoni
2009-09-21 2:37 ` Steve Calfee
2009-09-22 22:16 ` H Hartley Sweeten
2009-09-22 22:38 ` Thomas Petazzoni
2009-09-22 22:56 ` H Hartley Sweeten
2009-09-22 23:13 ` Thomas Petazzoni
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=87fxajx8ey.fsf@macbook.be.48ers.dk \
--to=jacmet@uclibc.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox