From 62b13aea1dadea09cdddf06f2b9673bc927dcc0c Mon Sep 17 00:00:00 2001 From: Gregory Hermant Date: Thu, 22 Nov 2012 02:35:11 +0000 Subject: 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. Signed-off-by: Gregory Hermant Tested-by: Fabio Porcedda Acked-by: Fabio Porcedda Tested-by: Fabio Porcedda Acked-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Peter Korsgaard --- boot/barebox/barebox.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'boot') diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk index a025d5f4a..6cc497669 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) -- cgit v1.2.3