summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-07-18 15:25:16 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-07-18 15:25:16 +0200
commit97b134c1ce203bfb3a28cebc84909b21f17d7ba4 (patch)
tree1a091d583707439f897c08332c9d17a34b28854e /src
parentf0aa94c4265fb0d1b1038fdd356ec0c91723b13e (diff)
tc1796 makefile: generate system.bin for jtag-over-usb flasher
Diffstat (limited to 'src')
-rw-r--r--src/arch/infineon-tc1796-mock/Makefile.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/infineon-tc1796-mock/Makefile.inc b/src/arch/infineon-tc1796-mock/Makefile.inc
index 223a079..4d811c0 100644
--- a/src/arch/infineon-tc1796-mock/Makefile.inc
+++ b/src/arch/infineon-tc1796-mock/Makefile.inc
@@ -13,7 +13,7 @@ ARCH_SHORTNAME = tc1796
LICENSE = -mlicense-dir=${HOME}/var/source/aurix-infineon-hightec-tricore
CC = wine ${HOME}/.wine/drive_c/HighTec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/tricore-gcc.exe ${LICENSE}
CXX = wine ${HOME}/.wine/drive_c/HighTec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/tricore-g++.exe ${LICENSE}
-OBJCOPY = wine ${HOME}/.wine/drive_c/HighTec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/tricore-objcopy.exe ${LICENSE}
+OBJCOPY = wine ${HOME}/.wine/drive_c/HighTec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/tricore-objcopy.exe
OBJDUMP = wine ${HOME}/.wine/drive_c/HighTec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/tricore-objdump.exe ${LICENSE}
SIZE = wine ${HOME}/.wine/drive_c/HighTec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/tricore-size.exe
@@ -52,7 +52,10 @@ build/system.elf: ${OBJECTS}
-Wl,--gc-sections \
-o $@ ${OBJECTS}
-program: build/system.elf
+build/system.bin: build/system.elf
+ ${QUIET}${OBJCOPY} -O binary $< $@
+
+program: build/system.bin
@echo "Not Implemented"
${QUIET}false