[Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory
Fabio Porcedda
fabio.porcedda at gmail.com
Fri Dec 7 11:10:27 UTC 2012
On Thu, Nov 22, 2012 at 1:35 PM, Gregory Hermant
<gregory.hermant at calao-systems.com> wrote:
> Barebox creates a symlink to the binary. This symlink points to
> the barebox.bin or to the compressed zbarebox.bin binary.
>
> Signed-off-by: Gregory Hermant <gregory.hermant at calao-systems.com>
> ---
> boot/barebox/barebox.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk
> index a025d5f..6cc4976 100644
> --- a/boot/barebox/barebox.mk
> +++ b/boot/barebox/barebox.mk
> @@ -72,7 +72,11 @@ define BAREBOX_BUILD_CMDS
> endef
>
> define BAREBOX_INSTALL_IMAGES_CMDS
> - cp $(@D)/barebox.bin $(BINARIES_DIR)
> + if test -h $(@D)/barebox-flash-image ; then \
> + cp -L $(@D)/barebox-flash-image $(BINARIES_DIR)/barebox.bin ; \
> + else \
> + cp $(@D)/barebox.bin $(BINARIES_DIR);\
> + fi
> endef
>
> ifeq ($(BR2_TARGET_BAREBOX_BAREBOXENV),y)
> --
> 1.7.9.5
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Tested-by: Fabio Porcedda <fabio.porcedda at gmail.com>
Thanks
--
Fabio Porcedda
More information about the buildroot
mailing list