diff options
author | xengineering <me@xengineering.eu> | 2021-09-25 15:47:25 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2021-09-26 12:33:08 +0200 |
commit | 7211bd49452e67e0b53ea06ca474f4e54af991ae (patch) | |
tree | 2de4b48926830ea29b8ba1f670aedbb4945f4e1d /Makefile | |
parent | 3eaf47ee2144f2abf781c10194f920a799aebb3a (diff) | |
download | ledcontrol-7211bd49452e67e0b53ea06ca474f4e54af991ae.tar ledcontrol-7211bd49452e67e0b53ea06ca474f4e54af991ae.tar.zst ledcontrol-7211bd49452e67e0b53ea06ca474f4e54af991ae.zip |
Implement Linker Script and Startup File
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4ef61dd --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ + +.PHONY: all clean + +all: + mkdir build + arm-none-eabi-gcc -O0 -c -g -mcpu=cortex-m3 -mthumb -o build/test_program.o src/test_program.c + arm-none-eabi-gcc -O0 -c -g -mcpu=cortex-m3 -mthumb -o build/startup.o src/startup.c + arm-none-eabi-ld -Tld/stm32.ld -o build/test_program.elf build/startup.o build/test_program.o + arm-none-eabi-objcopy -O binary build/test_program.elf build/test_program.bin + +clean: + rm -rf build |