Skip to content

Commit 0c1e4f6

Browse files
committed
mcxn947: fix build for ethernet
1 parent 7896651 commit 0c1e4f6

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed
52.9 KB
Binary file not shown.
185 KB
Binary file not shown.

loader/boards/frdm_mcxn947_mcxn947_cpu0.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ CONFIG_UART_LINE_CTRL=y
1818
CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y
1919
CONFIG_USB_MCUX_THREAD_STACK_SIZE=4096
2020

21+
CONFIG_LLEXT_STORAGE_WRITABLE=n
22+
CONFIG_STACK_USAGE=y
23+
CONFIG_STACK_SENTINEL=y
24+
CONFIG_STACK_CANARIES=y
25+
2126
CONFIG_NETWORKING=y
2227
CONFIG_NET_IPV6=n
2328
CONFIG_NET_IPV4=y

variants/frdm_mcxn947_mcxn947_cpu0/includes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
-iwithprefixbefore/llext-edk/include/zephyr/soc/nxp/mcx
55
-iwithprefixbefore/llext-edk/include/zephyr/lib/libc/common/include
66
-iwithprefixbefore/llext-edk/include/zephyr/lib/posix/options/getopt/
7+
-iwithprefixbefore/llext-edk/include/zephyr/include/zephyr/posix/
78
-iwithprefixbefore/llext-edk/include/zephyr/soc/nxp/mcx/mcxnx4x/.
89
-iwithprefixbefore/llext-edk/include/zephyr-arduino-core/include
910
-iwithprefixbefore/llext-edk/include/modules/hal/cmsis/CMSIS/Core/Include
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
LLEXT_CFLAGS = -fno-strict-aliasing -fno-printf-return-value -fno-common -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft -Wall -Wformat -Wformat-security -Wformat -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -mcmse --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -mlong-calls -mthumb -nodefaultlibs -imacros$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h -DLL_EXTENSION_BUILD -imacros$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated/zephyr/autoconf.h -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated/zephyr -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/libc/common/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/posix -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/posix/options/getopt/ -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx/mcxnx4x/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/l2 -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/lib/dns/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/cmsis/CMSIS/Core/Include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/cmsis/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947/drivers -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpi2c -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpuart -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_spc -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/cache64 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi/flash -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/port -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/phy -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/usb/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/crypto/tinycrypt/lib/include
1+
LLEXT_CFLAGS = -fno-strict-aliasing -fstack-protector-all -mstack-protector-guard=global -fno-printf-return-value -fno-common -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft -Wall -Wformat -Wformat-security -Wformat -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fstack-usage -mcmse --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -mlong-calls -mthumb -nodefaultlibs -imacros$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h -DLL_EXTENSION_BUILD -imacros$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated/zephyr/autoconf.h -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated/zephyr -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/libc/common/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/posix -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/posix/options/getopt/ -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx/mcxnx4x/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/l2 -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/lib/dns/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/cmsis/CMSIS/Core/Include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/cmsis/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947/drivers -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpi2c -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpuart -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_spc -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/cache64 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi/flash -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/port -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/phy -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/usb/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/crypto/tinycrypt/lib/include
22

33
LLEXT_ALL_INCLUDE_CFLAGS = -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated/zephyr -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/libc/common/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/posix -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/posix/options/getopt/ -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx/mcxnx4x/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/l2 -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/lib/dns/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/cmsis/CMSIS/Core/Include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/cmsis/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947/drivers -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpi2c -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpuart -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_spc -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/cache64 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi/flash -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/port -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/phy -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/usb/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/crypto/tinycrypt/lib/include
44

55
LLEXT_INCLUDE_CFLAGS = -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/libc/common/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/posix -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/lib/posix/options/getopt/ -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/soc/nxp/mcx/mcxnx4x/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/l2 -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/subsys/net/lib/dns/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/cmsis/CMSIS/Core/Include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/cmsis/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947/drivers -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpi2c -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpuart -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_spc -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/cache64 -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi/flash -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/mcux-sdk/drivers/port -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/device -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/phy -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/hal/nxp/mcux/middleware/mcux-sdk-middleware-usb/include -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/usb/. -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/modules/hal_nxp/. -I$(LLEXT_EDK_INSTALL_DIR)/include/modules/crypto/tinycrypt/lib/include
66

77
LLEXT_GENERATED_INCLUDE_CFLAGS = -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated/zephyr -I$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated
88

9-
LLEXT_BASE_CFLAGS = -fno-strict-aliasing -fno-printf-return-value -fno-common -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft -Wall -Wformat -Wformat-security -Wformat -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -mcmse --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -mlong-calls -mthumb -nodefaultlibs -imacros$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h -DLL_EXTENSION_BUILD
9+
LLEXT_BASE_CFLAGS = -fno-strict-aliasing -fstack-protector-all -mstack-protector-guard=global -fno-printf-return-value -fno-common -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft -Wall -Wformat -Wformat-security -Wformat -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fstack-usage -mcmse --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -mlong-calls -mthumb -nodefaultlibs -imacros$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/zephyr/toolchain/zephyr_stdint.h -DLL_EXTENSION_BUILD
1010

1111
LLEXT_GENERATED_IMACROS_CFLAGS = -imacros$(LLEXT_EDK_INSTALL_DIR)/include/zephyr/include/generated/zephyr/autoconf.h

0 commit comments

Comments
 (0)