Skip to contentSkip to conversation

barebox: use the symlink to copy the barebox binary to the images directory

PATCH New Gregory Hermant 4 participants 5 messages Nov 22, 2012 – Dec 10, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 barebox: use the symlink to copy the barebox binary to the images directory

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

---
 boot/barebox/barebox.mk |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
boot/barebox/barebox.mk +5 -1
index a025d5f..6cc4976 100644
@@ -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)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 barebox: use the symlink to copy the barebox binary to the images directory

Quoted 28 lines · Gregory Hermant

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

---
 boot/barebox/barebox.mk |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
boot/barebox/barebox.mk +5 -2
index a025d5f..6cc4976 100644
@@ -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

Quoted 4 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Thanks
--
Fabio Porcedda

#2 lore raw

PATCH 1/1 barebox: use the symlink to copy the barebox binary to the images directory

Quoted 30 lines · Fabio Porcedda
Quoted 28 lines · Gregory Hermant

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

---
 boot/barebox/barebox.mk |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
boot/barebox/barebox.mk +5 -2
index a025d5f..6cc4976 100644
@@ -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

Quoted 6 lines
Quoted 4 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Thanks
--
Fabio Porcedda

#3 lore raw

PATCH 1/1 barebox: use the symlink to copy the barebox binary to the images directory

In reply to Gregory Hermant
Quoted 4 lines · Gregory Hermant

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

Signature · 6 lines
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
#4 lore raw

PATCH 1/1 barebox: use the symlink to copy the barebox binary to the images directory

In reply to Gregory Hermant
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gregory" == Gregory Hermant <[email protected]> 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.

Signature · 1 line
Bye, Peter Korsgaard