From: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC 1/2] Makefile: add target-genimage
Date: Wed, 25 Feb 2015 11:48:22 +0100 [thread overview]
Message-ID: <54EDA876.9010200@gmail.com> (raw)
In-Reply-To: <CANxTyt6R72Yi_e15rHX4=vY9vwL2Yd+LEoUeB8C9BY7gbKkSXg@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear Vivien,
looks good so far, and it fits well into my workflow, thanks for your
contribution.
Unfortunately the out-of tree build is broken with this version,
please see inline in your patch my comment.
I would propose to resend this patch with the fixed typos and the fix
for the out-of-tree build.
On 17.02.2015 03:37, Danomi Manchego wrote:
> Vivien,
>
> On Mon, Feb 16, 2015 at 11:41 AM, Vivien Didelot
> <vivien.didelot@savoirfairelinux.com> wrote:
>> Hi Danomi,
>>
>>> A couple nitpicks ...
>>
>> [...]
>>
>>>> The rational behind adding this to Buildroot is that
>>>> genimage requires
>>>
>>> spelling: "rationale".
>>
>> Thanks.
>>
>> [...]
>>
>>>> --- a/Makefile +++ b/Makefile @@ -434,7 +434,7 @@ world:
>>>> target-post-image
>>>>
>>>> .PHONY: all world toolchain dirs clean distclean source
>>>> outputmakefile \ legal-info legal-info-prepare
>>>> legal-info-clean printvars \ - target-finalize
>>>> target-post-image \ + target-finalize target-genimage
>>>> target-post-image \ $(TARGETS) $(TARGETS_ROOTFS) \
>>>> $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO)
>>>> \ $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ @@ -621,7
>>>> +621,20 @@ endif $(call MESSAGE,"Executing post-build script
>>>> $(s)"); \ $(EXTRA_ENV) $(s) $(TARGET_DIR) $(call
>>>> qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep))
>>>>
>>>> -target-post-image: $(TARGETS_ROOTFS) target-finalize
>>>> +target-genimage: $(TARGETS_ROOTFS) target-finalize +
>>>> @$(foreach cfg, $(call qstrip,$(BR2_ROOTFS_GENIMAGE_CFG)), \
>>>> + $(call MESSAGE,"Executing genimage with config
>>>> $(cfg)"); \ + T=$$(mktemp -d
>>>> $(BUILD_DIR)/.genimage.XXXXXXXXXX); \ + mkdir -p
>>>> $$T/{root,tmp}; \ + $(EXTRA_ENV)
>>>> output/host/usr/bin/genimage \
should be $(HOST_DIR)/output/host/
>>>> + --rootpath $$T/root \ + --tmppath $$T/tmp
>>>> \ + --inputpath output/images/ \ +
>>>> --outputpath output/images/ \
both of the paths should be $(BINARIES_DIR)
>>>> + --config $(cfg); \ + rm -rf $$T$(sep))
>>>
>>> I don't think the final $(sep) is needed, since this the last
>>> line of a makefile target, as opposed to, say. a template.
>>
>> Are you sure? I'm not sure either but I tried to follow the other
>> foreach statements.
>
> Ah, so sorry, I missed the fact that it was a foreach. Comment
> retracted!
>
>
>> Thanks for the nitpicks. Other than that, an feedback on the
>> overall RFC?
>
> Sorry, I haven't actually tried it.
>
> Danomi -
>
>
>> Regards, Vivien
> _______________________________________________ buildroot mailing
> list buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
- --
Bests,
Zoltan Gyarmati
IRC freenode: zgyarmati
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJU7ah2AAoJEAGmEeeR8iVhZ38H/0ZX29k/tKM3zjy05jwAGEcE
OM0ySLjhIH+8843/CaNBszDXhG7kIxvfpFfX6ugGnmPJ2NAWu3ajnqk9oYHYkDyN
gJJ7cN7aKo1RzVz64idZNY4ZyOxWyJVAK8vuLroQMOZO2h3Ztepf577UsfayfE82
ThIY4tmAgwbIrdoWeC6R6YGtlMgIMpyzEtQe4FGqNYhMT29XMhyvAJfGt0Ep+EMR
o7FKZrBWMr+G+mX2M6QuFTPcAcY5hffqRUccOOp1pS5ciVSeOVkr2yUnlMpS5CNQ
8gCBAXjd2k/bWBpkdnn09xltVZQlOg1NysC4f7S1vqqFRrF9dfGv22Viz/I7yqA=
=kvfn
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2015-02-25 10:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 22:33 [Buildroot] [RFC 0/2] add a minimal genimage support Vivien Didelot
2015-02-12 22:33 ` [Buildroot] [RFC 1/2] Makefile: add target-genimage Vivien Didelot
2015-02-14 17:24 ` Danomi Manchego
2015-02-16 16:41 ` Vivien Didelot
2015-02-17 2:37 ` Danomi Manchego
2015-02-25 10:48 ` Zoltan Gyarmati [this message]
2015-02-12 22:33 ` [Buildroot] [RFC 2/2] boards/raspberrypi: add a sample genimage config Vivien Didelot
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=54EDA876.9010200@gmail.com \
--to=mr.zoltan.gyarmati@gmail.com \
--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