Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory
@ 2012-11-22 12:35 Gregory Hermant
  2012-12-07 11:10 ` Fabio Porcedda
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gregory Hermant @ 2012-11-22 12:35 UTC (permalink / raw)
  To: buildroot

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@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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory
  2012-11-22 12:35 [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory Gregory Hermant
@ 2012-12-07 11:10 ` Fabio Porcedda
  2012-12-07 12:40   ` Fabio Porcedda
  2012-12-10  7:17 ` Arnout Vandecappelle
  2012-12-10 20:59 ` Peter Korsgaard
  2 siblings, 1 reply; 5+ messages in thread
From: Fabio Porcedda @ 2012-12-07 11:10 UTC (permalink / raw)
  To: buildroot

On Thu, Nov 22, 2012 at 1:35 PM, Gregory Hermant
<gregory.hermant@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@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@gmail.com>

Thanks
--
Fabio Porcedda

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory
  2012-12-07 11:10 ` Fabio Porcedda
@ 2012-12-07 12:40   ` Fabio Porcedda
  0 siblings, 0 replies; 5+ messages in thread
From: Fabio Porcedda @ 2012-12-07 12:40 UTC (permalink / raw)
  To: buildroot

On Fri, Dec 7, 2012 at 12:10 PM, Fabio Porcedda
<fabio.porcedda@gmail.com> wrote:
> On Thu, Nov 22, 2012 at 1:35 PM, Gregory Hermant
> <gregory.hermant@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@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@gmail.com>

Acked-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Tested-by: Fabio Porcedda <fabio.porcedda@gmail.com>

Thanks
--
Fabio Porcedda

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory
  2012-11-22 12:35 [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory Gregory Hermant
  2012-12-07 11:10 ` Fabio Porcedda
@ 2012-12-10  7:17 ` Arnout Vandecappelle
  2012-12-10 20:59 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2012-12-10  7:17 UTC (permalink / raw)
  To: buildroot

On 22/11/12 13:35, Gregory Hermant 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@calao-systems.com>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory
  2012-11-22 12:35 [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory Gregory Hermant
  2012-12-07 11:10 ` Fabio Porcedda
  2012-12-10  7:17 ` Arnout Vandecappelle
@ 2012-12-10 20:59 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2012-12-10 20:59 UTC (permalink / raw)
  To: buildroot

>>>>> "Gregory" == Gregory Hermant <gregory.hermant@calao-systems.com> writes:

 Gregory> Barebox creates a symlink to the binary. This symlink points to
 Gregory> the barebox.bin or to the compressed zbarebox.bin binary.

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-10 20:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 12:35 [Buildroot] [PATCH] barebox: use the symlink to copy the barebox binary to the images directory Gregory Hermant
2012-12-07 11:10 ` Fabio Porcedda
2012-12-07 12:40   ` Fabio Porcedda
2012-12-10  7:17 ` Arnout Vandecappelle
2012-12-10 20:59 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox