[Buildroot] [git commit] barebox: use the symlink to copy the barebox binary to the images directory

Peter Korsgaard jacmet at sunsite.dk
Mon Dec 10 20:56:54 UTC 2012

commit: http://git.buildroot.net/buildroot/commit/?id=62b13aea1dadea09cdddf06f2b9673bc927dcc0c
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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>
Tested-by: Fabio Porcedda <fabio.porcedda at gmail.com>
Acked-by: Fabio Porcedda <fabio.porcedda at gmail.com>
Tested-by: Fabio Porcedda <fabio.porcedda at gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
 boot/barebox/barebox.mk |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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

More information about the buildroot mailing list