Skip to content

Commit

Permalink
Added new config option NXP_CUSTOM_DCD_OBJS
Browse files Browse the repository at this point in the history
+ Fix linker error due to wrong pointer type
  • Loading branch information
danielinux committed Nov 22, 2023
1 parent 83aa1d8 commit ac17c82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ endif

ifeq ($(NXP_CUSTOM_DCD),1)
CFLAGS+=-DNXP_CUSTOM_DCD
OBJS+=$(NXP_CUSTOM_DCD_OBJS)
endif

CFLAGS+=-DWOLFBOOT_ARCH_$(ARCH)
Expand Down
2 changes: 1 addition & 1 deletion hal/imx_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ const BOOT_DATA_T __attribute__((section(".boot_data"))) boot_data = {


extern void isr_reset(void);
extern const uint32_t __dcd_data_start;
extern const uint8_t __dcd_data_start;
const uint32_t dcd_data_addr = (uint32_t) &__dcd_data_start;

#ifndef NXP_CUSTOM_DCD
Expand Down
3 changes: 2 additions & 1 deletion tools/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ifeq ($(ARCH),)
MCUXPRESSO_CMSIS?=$(PWD)/CMSIS_5/CMSIS
FREEDOM_E_SDK?=$(HOME)/src/freedom-e-sdk
NXP_CUSTOM_DCD=0
NXP_CUSTOM_DCD_OBJS=""
STM32CUBE?=$(HOME)/STM32Cube/Repository/STM32Cube_FW_WB_V1.3.0
CYPRESS_PDL?=$(HOME)/src/psoc6pdl
CYPRESS_TARGET_LIB?=$(HOME)/src/TARGET_CY8CKIT-062S2-43012
Expand Down Expand Up @@ -97,4 +98,4 @@ CONFIG_VARS:= ARCH TARGET SIGN HASH MCUXSDK MCUXPRESSO MCUXPRESSO_CPU MCUXPRESSO
WOLFBOOT_UNIVERSAL_KEYSTORE \
XMSS_PARAMS \
ELF \
NXP_CUSTOM_DCD
NXP_CUSTOM_DCD NXP_CUSTOM_DCD_OBJS

0 comments on commit ac17c82

Please sign in to comment.