From 7ee888a8576e398429739e51c9749388662c3d81 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Sun, 30 Jun 2013 19:49:21 -0700 Subject: [PATCH] Changed echo usage for printf as it is more portable. --- Makefile | 14 +++++++------- examples/lm3s/Makefile.include | 2 +- examples/lm4f/Makefile.include | 2 +- examples/lpc13xx/Makefile.include | 2 +- examples/lpc17xx/Makefile.include | 2 +- examples/lpc43xx/Makefile.include | 2 +- examples/stm32/f1/Makefile.include | 6 +++--- examples/stm32/f2/Makefile.include | 4 ++-- examples/stm32/f4/Makefile.include | 4 ++-- examples/stm32/l1/Makefile.include | 6 +++--- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index af3ace9..d1a756f 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/examples/lm3s/Makefile.include b/examples/lm3s/Makefile.include index a4fc808..d95ac8e 100644 --- a/examples/lm3s/Makefile.include +++ b/examples/lm3s/Makefile.include @@ -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" diff --git a/examples/lm4f/Makefile.include b/examples/lm4f/Makefile.include index 98a2e06..73645a8 100644 --- a/examples/lm4f/Makefile.include +++ b/examples/lm4f/Makefile.include @@ -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" diff --git a/examples/lpc13xx/Makefile.include b/examples/lpc13xx/Makefile.include index 4245810..ce0fed3 100644 --- a/examples/lpc13xx/Makefile.include +++ b/examples/lpc13xx/Makefile.include @@ -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" diff --git a/examples/lpc17xx/Makefile.include b/examples/lpc17xx/Makefile.include index 7a6ef8d..ccf1c35 100644 --- a/examples/lpc17xx/Makefile.include +++ b/examples/lpc17xx/Makefile.include @@ -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" diff --git a/examples/lpc43xx/Makefile.include b/examples/lpc43xx/Makefile.include index 1ebd47d..05b8c70 100644 --- a/examples/lpc43xx/Makefile.include +++ b/examples/lpc43xx/Makefile.include @@ -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" diff --git a/examples/stm32/f1/Makefile.include b/examples/stm32/f1/Makefile.include index 0560dff..0b7af7b 100644 --- a/examples/stm32/f1/Makefile.include +++ b/examples/stm32/f1/Makefile.include @@ -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 \ diff --git a/examples/stm32/f2/Makefile.include b/examples/stm32/f2/Makefile.include index 8a03552..209ab4b 100644 --- a/examples/stm32/f2/Makefile.include +++ b/examples/stm32/f2/Makefile.include @@ -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 \ diff --git a/examples/stm32/f4/Makefile.include b/examples/stm32/f4/Makefile.include index fc43e9a..eebbeab 100644 --- a/examples/stm32/f4/Makefile.include +++ b/examples/stm32/f4/Makefile.include @@ -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 \ diff --git a/examples/stm32/l1/Makefile.include b/examples/stm32/l1/Makefile.include index e259010..4e28ac6 100644 --- a/examples/stm32/l1/Makefile.include +++ b/examples/stm32/l1/Makefile.include @@ -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 \