Changed echo usage for printf as it is more portable.

This commit is contained in:
Piotr Esden-Tempski
2013-06-30 19:49:21 -07:00
parent 614d921a3b
commit 7ee888a857
10 changed files with 22 additions and 22 deletions

View File

@@ -35,13 +35,13 @@ build: lib examples
lib:
$(Q)if [ ! "`ls -A libopencm3`" ] ; then \
echo "######## ERROR ########"; \
echo "\tlibopencm3 is not initialized."; \
echo "\tPlease run:"; \
echo "\t$$ git submodule init"; \
echo "\t$$ git submodule update"; \
echo "\tbefore running make."; \
echo "######## ERROR ########"; \
printf "######## ERROR ########\n"; \
printf "\tlibopencm3 is not initialized.\n"; \
printf "\tPlease run:\n"; \
printf "\t$$ git submodule init\n"; \
printf "\t$$ git submodule update\n"; \
printf "\tbefore running make.\n"; \
printf "######## ERROR ########\n"; \
exit 1; \
fi
$(Q)$(MAKE) -C libopencm3

View File

@@ -70,7 +70,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"

View File

@@ -73,7 +73,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"

View File

@@ -70,7 +70,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"

View File

@@ -70,7 +70,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"

View File

@@ -73,7 +73,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"

View File

@@ -88,7 +88,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"
@@ -151,7 +151,7 @@ else
endif
else
%.flash: %.elf
@echo " GDB $(*).elf (flash)"
@printf " GDB $(*).elf (flash)\n"
$(Q)$(GDB) --batch \
-ex 'target extended-remote $(BMP_PORT)' \
-x $(TOOLCHAIN_DIR)/scripts/black_magic_probe_flash.scr \
@@ -159,7 +159,7 @@ else
endif
else
%.flash: %.elf
@echo " GDB $(*).elf (flash)"
@printf " GDB $(*).elf (flash)\n"
$(Q)$(GDB) --batch \
-ex 'target extended-remote $(STLINK_PORT)' \
-x $(SCRIPT_DIR)/libopencm3/scripts/stlink_flash.scr \

View File

@@ -76,7 +76,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"
@@ -138,7 +138,7 @@ else
endif
else
%.flash: %.elf
@echo " GDB $(*).elf (flash)"
@printf " GDB $(*).elf (flash)\n"
$(Q)$(GDB) --batch \
-ex 'target extended-remote $(BMP_PORT)' \
-x $(TOOLCHAIN_DIR)/scripts/black_magic_probe_flash.scr \

View File

@@ -78,7 +78,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"
@@ -145,7 +145,7 @@ else
endif
else
%.flash: %.elf
@echo " GDB $(*).elf (flash)"
@printf " GDB $(*).elf (flash)\n"
$(Q)$(GDB) --batch \
-ex 'target extended-remote $(BMP_PORT)' \
-x $(TOOLCHAIN_DIR)/scripts/black_magic_probe_flash.scr \

View File

@@ -84,7 +84,7 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
@#echo "*** $* images generated ***"
@#printf "*** $* images generated ***\n"
%.bin: %.elf
@#printf " OBJCOPY $(*).bin\n"
@@ -147,7 +147,7 @@ else
endif
else
%.flash: %.elf
@echo " GDB $(*).elf (flash)"
@printf " GDB $(*).elf (flash)\n"
$(Q)$(GDB) --batch \
-ex 'target extended-remote $(BMP_PORT)' \
-x $(TOOLCHAIN_DIR)/scripts/black_magic_probe_flash.scr \
@@ -155,7 +155,7 @@ else
endif
else
%.flash: %.elf
@echo " GDB $(*).elf (flash)"
@printf " GDB $(*).elf (flash)\n"
$(Q)$(GDB) --batch \
-ex 'target extended-remote $(STLINK_PORT)' \
-x $(SCRIPT_DIR)/libopencm3/scripts/stlink_flash.scr \