aboutsummaryrefslogtreecommitdiff
path: root/system-clock/Makefile.preamble
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:07:54 -0700
committerJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:07:54 -0700
commit79c73cd2734d5e3b3c86885ebcb28aa36a2d0f56 (patch)
treef2a95625521adb4f3615c3b56e0ce4542f272599 /system-clock/Makefile.preamble
parent8e20f53dd3b33058508ff51bd19e49df19b06fb7 (diff)
downloadstm32l4-79c73cd2734d5e3b3c86885ebcb28aa36a2d0f56.tar.gz
stm32l4-79c73cd2734d5e3b3c86885ebcb28aa36a2d0f56.tar.bz2
stm32l4-79c73cd2734d5e3b3c86885ebcb28aa36a2d0f56.zip
fix bugs in genmake that make it always rerun all dependencies
Diffstat (limited to 'system-clock/Makefile.preamble')
-rw-r--r--system-clock/Makefile.preamble4
1 files changed, 2 insertions, 2 deletions
diff --git a/system-clock/Makefile.preamble b/system-clock/Makefile.preamble
index 4be2dac..3c8a61b 100644
--- a/system-clock/Makefile.preamble
+++ b/system-clock/Makefile.preamble
@@ -8,10 +8,10 @@ LD_FLAGS?=-T linker/linker_script.ld -nostdlib --cref -Map linker/main.map -stat
all: _$(PREFIX)_obs/main.elf
-_$(PREFIX)_obs/main.bin: main.elf
+_$(PREFIX)_obs/main.bin: _$(PREFIX)_obs/main.elf
$(PREFIX)objcopy -O binary _$(PREFIX)_obs/main.elf _$(PREFIX)_obs/main.bin
-flash: main.bin
+flash: _$(PREFIX)_obs/main.bin
st-flash write _$(PREFIX)_obs/main.bin 0x8000000
clean: