Skip to content

Commit d3d938d

Browse files
committed
Kinetis SDK path: fixed command line variable
1 parent 8eb8374 commit d3d938d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ BOOT0_OFFSET?=`cat include/target.h |grep WOLFBOOT_PARTITION_BOOT_ADDRESS | sed
88
BOOT_IMG?=test-app/image.bin
99
SIGN?=ED25519
1010
TARGET?=stm32f4
11-
KINETIS?=$(HOME)/src/FRDM-K64F/devices/MK64F12
12-
KINETIS_CMSIS?=$(KINETIS)/../../CMSIS
11+
KINETIS?=$(HOME)/src/FRDM-K64F
12+
KINETIS_DRIVERS?=$(KINETIS)/devices/MK64F12
13+
KINETIS_CMSIS?=$(KINETIS)/CMSIS
1314
DEBUG?=0
1415
VTOR?=1
1516
SWAP?=1
@@ -77,8 +78,8 @@ CFLAGS+=-mthumb -Wall -Wextra -Wno-main -Wstack-usage=1024 -ffreestanding -Wno-u
7778
-DPLATFORM_$(TARGET)
7879

7980
ifeq ($(TARGET),kinetis)
80-
CFLAGS+= -I$(KINETIS)/drivers -I$(KINETIS) -DCPU_MK64FN1M0VLL12 -I$(KINETIS_CMSIS)/Include -DDEBUG_CONSOLE_ASSERT_DISABLE=1
81-
OBJS+= $(KINETIS)/drivers/fsl_clock.o $(KINETIS)/drivers/fsl_ftfx_flash.o $(KINETIS)/drivers/fsl_ftfx_cache.o $(KINETIS)/drivers/fsl_ftfx_controller.o
81+
CFLAGS+= -I$(KINETIS_DRIVERS)/drivers -I$(KINETIS_DRIVERS) -DCPU_MK64FN1M0VLL12 -I$(KINETIS_CMSIS)/Include -DDEBUG_CONSOLE_ASSERT_DISABLE=1
82+
OBJS+= $(KINETIS_DRIVERS)/drivers/fsl_clock.o $(KINETIS_DRIVERS)/drivers/fsl_ftfx_flash.o $(KINETIS_DRIVERS)/drivers/fsl_ftfx_cache.o $(KINETIS_DRIVERS)/drivers/fsl_ftfx_controller.o
8283
endif
8384

8485
ifeq ($(EXT_FLASH),1)

0 commit comments

Comments
 (0)