From 598d337862c242d36266ebd7de7cf9b89bcbf8ff Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Sun, 12 May 2019 11:25:06 +0200 Subject: [PATCH] fix(makefiles): Compile standalone by default --- Hello_World/Makefile | 2 ++ Hello_World/build_image | 2 +- testapp/Makefile | 2 ++ testapp/build_image | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Hello_World/Makefile b/Hello_World/Makefile index d95c515e..7fee86e9 100644 --- a/Hello_World/Makefile +++ b/Hello_World/Makefile @@ -111,7 +111,9 @@ PROJ_CFLAGS+=-std=c99 #MXC_OPTIMIZE_CFLAGS=-O1 # Point this variable to a linker file to override the default file +ifneq "$(APP)" "" LINKERFILE=$(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC/$(TARGET_LC)_app.ld +endif ################################################################################ # Include external library makefiles here diff --git a/Hello_World/build_image b/Hello_World/build_image index 7119c5c5..efcda785 100755 --- a/Hello_World/build_image +++ b/Hello_World/build_image @@ -1,5 +1,5 @@ make clean -make +make APP=1 make build/max32665.bin cp build/max32665.bin card10.bin python ../bootloader/crc_patch.py card10.bin diff --git a/testapp/Makefile b/testapp/Makefile index 9ecb3810..49bf141c 100644 --- a/testapp/Makefile +++ b/testapp/Makefile @@ -108,7 +108,9 @@ PROJ_CFLAGS+=-std=c99 #MXC_OPTIMIZE_CFLAGS=-O1 # Point this variable to a linker file to override the default file +ifneq "$(APP)" "" LINKERFILE=$(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC/$(TARGET_LC)_app.ld +endif ################################################################################ # Include external library makefiles here diff --git a/testapp/build_image b/testapp/build_image index 7119c5c5..efcda785 100755 --- a/testapp/build_image +++ b/testapp/build_image @@ -1,5 +1,5 @@ make clean -make +make APP=1 make build/max32665.bin cp build/max32665.bin card10.bin python ../bootloader/crc_patch.py card10.bin -- GitLab