* [Buildroot] [PATCH] Makefile: ensure system is built even if no filesystem image is selected
@ 2014-02-28 20:05 Thomas Petazzoni
2014-02-28 20:07 ` Gustavo Zacarias
2014-03-01 11:54 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-02-28 20:05 UTC (permalink / raw)
To: buildroot
The parallel build patch series has significantly reworked how some of
the core dependencies are expressed. We now have the following
dependencies:
all: world
world: target-post-image
target-post-image: $(TARGETS_ROOTFS)
with TARGETS_ROOTFS containing the list of root filesystem image
targets, each having the following dependencies:
$$(BINARIES_DIR)/rootfs.$(1): target-finalize $$(ROOTFS_$(2)_DEPENDENCIES)
The bottom line is that the "target-finalize" target, which in turns
ensures that all packages are built, is only triggered if at least one
filesystem image is enabled.
As we want to support builds with no filesystem image selected, this
is not acceptable. As a fix, we change the target-post-image target
to:
target-post-image: $(TARGETS_ROOTFS) target-finalize
This way, target-finalize will be triggered even if TARGETS_ROOTFS is
empty. This is still correct for parallel build, as the individual
root filesystem image targets still depend on target-finalize.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2e5d11e..ae868da 100644
--- a/Makefile
+++ b/Makefile
@@ -620,7 +620,7 @@ target-generatelocales: host-localedef
done
endif
-target-post-image: $(TARGETS_ROOTFS)
+target-post-image: $(TARGETS_ROOTFS) target-finalize
@$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_IMAGE_SCRIPT)), \
$(call MESSAGE,"Executing post-image script $(s)"); \
$(USER_HOOKS_EXTRA_ENV) $(s) $(BINARIES_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep))
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] Makefile: ensure system is built even if no filesystem image is selected
2014-02-28 20:05 [Buildroot] [PATCH] Makefile: ensure system is built even if no filesystem image is selected Thomas Petazzoni
@ 2014-02-28 20:07 ` Gustavo Zacarias
2014-02-28 22:29 ` Fabio Porcedda
2014-03-01 11:54 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Gustavo Zacarias @ 2014-02-28 20:07 UTC (permalink / raw)
To: buildroot
On 02/28/2014 05:05 PM, Thomas Petazzoni wrote:
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] Makefile: ensure system is built even if no filesystem image is selected
2014-02-28 20:07 ` Gustavo Zacarias
@ 2014-02-28 22:29 ` Fabio Porcedda
0 siblings, 0 replies; 4+ messages in thread
From: Fabio Porcedda @ 2014-02-28 22:29 UTC (permalink / raw)
To: buildroot
On Fri, Feb 28, 2014 at 9:07 PM, Gustavo Zacarias
<gustavo@zacarias.com.ar> wrote:
> On 02/28/2014 05:05 PM, Thomas Petazzoni wrote:
>
>> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>
> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Acked-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Thanks
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] Makefile: ensure system is built even if no filesystem image is selected
2014-02-28 20:05 [Buildroot] [PATCH] Makefile: ensure system is built even if no filesystem image is selected Thomas Petazzoni
2014-02-28 20:07 ` Gustavo Zacarias
@ 2014-03-01 11:54 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-03-01 11:54 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni,
On Fri, 28 Feb 2014 21:05:27 +0100, Thomas Petazzoni wrote:
> The parallel build patch series has significantly reworked how some of
> the core dependencies are expressed. We now have the following
> dependencies:
>
> all: world
> world: target-post-image
> target-post-image: $(TARGETS_ROOTFS)
>
> with TARGETS_ROOTFS containing the list of root filesystem image
> targets, each having the following dependencies:
>
> $$(BINARIES_DIR)/rootfs.$(1): target-finalize $$(ROOTFS_$(2)_DEPENDENCIES)
>
> The bottom line is that the "target-finalize" target, which in turns
> ensures that all packages are built, is only triggered if at least one
> filesystem image is enabled.
>
> As we want to support builds with no filesystem image selected, this
> is not acceptable. As a fix, we change the target-post-image target
> to:
>
> target-post-image: $(TARGETS_ROOTFS) target-finalize
>
> This way, target-finalize will be triggered even if TARGETS_ROOTFS is
> empty. This is still correct for parallel build, as the individual
> root filesystem image targets still depend on target-finalize.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-01 11:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 20:05 [Buildroot] [PATCH] Makefile: ensure system is built even if no filesystem image is selected Thomas Petazzoni
2014-02-28 20:07 ` Gustavo Zacarias
2014-02-28 22:29 ` Fabio Porcedda
2014-03-01 11:54 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox