diff --git a/examples/stm32/nucleo-f746zg-freertos-mip/Makefile b/examples/stm32/nucleo-f746zg-freertos-mip/Makefile index 1531b98c..c526d656 100644 --- a/examples/stm32/nucleo-f746zg-freertos-mip/Makefile +++ b/examples/stm32/nucleo-f746zg-freertos-mip/Makefile @@ -1,5 +1,3 @@ -ROOT ?= $(realpath $(CURDIR)/../../..) -DOCKER ?= docker run --platform linux/amd64 --rm -v $(ROOT):$(ROOT) -w $(CURDIR) mdashnet/armgcc CFLAGS ?= -W -Wall -Wextra -Werror -Wundef -Wshadow -Wdouble-promotion \ -Wformat-truncation -fno-common -Wconversion \ -g3 -Os -ffunction-sections -fdata-sections \ @@ -11,10 +9,10 @@ SOURCES = main.c boot.c syscalls.c ../../../mongoose.c FREERTOS_VERSION ?= V10.5.0 FREERTOS_REPO ?= https://github.com/FreeRTOS/FreeRTOS-Kernel -build example: firmware.elf +build example: firmware.bin firmware.elf: FreeRTOS-Kernel $(SOURCES) - $(DOCKER) arm-none-eabi-gcc -o $@ $(SOURCES) $(CFLAGS) \ + arm-none-eabi-gcc -o $@ $(SOURCES) $(CFLAGS) \ -IFreeRTOS-Kernel/include \ -IFreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1 \ -Wno-conversion \ @@ -24,7 +22,7 @@ firmware.elf: FreeRTOS-Kernel $(SOURCES) $(LDFLAGS) firmware.bin: firmware.elf - $(DOCKER) arm-none-eabi-objcopy -O binary $< $@ + arm-none-eabi-objcopy -O binary $< $@ flash: firmware.bin st-flash --reset write firmware.bin 0x8000000