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 <gregory.hermant@calao-systems.com> Tested-by: Fabio Porcedda <fabio.porcedda@gmail.com> Acked-by: Fabio Porcedda <fabio.porcedda@gmail.com> Tested-by: Fabio Porcedda <fabio.porcedda@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
6f62ce55f0
commit
62b13aea1d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user