Change in osmo-asf4-dfu[sysmoOCTSIM]: create bootloader-$(BOARD).{elf, bin} symlinks

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

tsaitgaist gerrit-no-reply at lists.osmocom.org
Tue Jan 14 13:14:59 UTC 2020


Hello laforge,

I'd like you to do a code review. Please visit

    https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/16859

to review the following change.


Change subject: create bootloader-$(BOARD).{elf,bin} symlinks
......................................................................

create bootloader-$(BOARD).{elf,bin} symlinks

Change-Id: I3a1eb038e51f4b38ae2e2154bd53c615d98db517
---
M gcc/Makefile
1 file changed, 6 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-asf4-dfu refs/changes/59/16859/1

diff --git a/gcc/Makefile b/gcc/Makefile
index 86d199c..06404ad 100644
--- a/gcc/Makefile
+++ b/gcc/Makefile
@@ -180,7 +180,7 @@
 vpath %.S ../
 
 # All Target
-all: $(SUB_DIRS) $(OUTPUT_FILE_PATH)
+all: $(SUB_DIRS) $(OUTPUT_FILE_PATH) symlink
 
 # Linker target
 
@@ -203,7 +203,10 @@
 	"arm-none-eabi-objdump" -h -S "$(OUTPUT_FILE_NAME).elf" > "$(OUTPUT_FILE_NAME).lss"
 	"arm-none-eabi-size" "$(OUTPUT_FILE_NAME).elf"
 
-	
+.PHONY: symlink
+symlink: $(OUTPUT_FILE_PATH)
+	ln -sf $(OUTPUT_FILE_NAME).bin bootloader-$(BOARD_LC).bin
+	ln -sf $(OUTPUT_FILE_NAME).elf bootloader-$(BOARD_LC).elf
 
 # Compiler targets
 
@@ -253,4 +256,4 @@
 	rm -f $(DEPS_AS_ARGS)
 	rm -f $(OUTPUT_FILE_NAME).a $(OUTPUT_FILE_NAME).hex $(OUTPUT_FILE_NAME).bin \
         $(OUTPUT_FILE_NAME).lss $(OUTPUT_FILE_NAME).eep $(OUTPUT_FILE_NAME).map \
-        $(OUTPUT_FILE_NAME).srec
+        $(OUTPUT_FILE_NAME).srec bootloader-$(BOARD_LC).bin bootloader-$(BOARD_LC).elf

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/16859
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-asf4-dfu
Gerrit-Branch: sysmoOCTSIM
Gerrit-Change-Id: I3a1eb038e51f4b38ae2e2154bd53c615d98db517
Gerrit-Change-Number: 16859
Gerrit-PatchSet: 1
Gerrit-Owner: tsaitgaist <kredon at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200114/91d69eed/attachment.htm>


More information about the gerrit-log mailing list