Skip to content

Commit c6336e4

Browse files
committed
mimxrt: Clean up Makefile, MIMXRT1015.ld and board files.
- Makefile, main.c: Remove duplicated code and settings, which were added through combining several branches. - Install the proto-c compiler in ci.sh. - Move _dcd_data to the start of the .bss segment. This data item has to be 2k aligned. Moving it to the start of the segment avoids wasting memory. - Remove the board's manifest.py, now that many boards support networking. - Remove obsolete settings from mpconfigboard.mk files. Signed-off-by: robert-hh <robert@hammelrath.com>
1 parent 8fdc667 commit c6336e4

File tree

23 files changed

+7
-109
lines changed

23 files changed

+7
-109
lines changed

ports/mimxrt/Makefile

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ INC += -I$(TOP)/lib/tinyusb/src
8989
INC += -I.
9090
INC += -Ihal
9191

92-
ifeq ($(MICROPY_PY_BLUETOOTH),1)
93-
INC += \
94-
-I$(TOP)/extmod/nimble \
95-
-I$(TOP)/lib/mynewt-nimble/nimble/host/include \
96-
-I$(TOP)/lib/mynewt-nimble/nimble/include \
97-
-I$(TOP)/lib/mynewt-nimble/porting/nimble/include
98-
endif
99-
10092
# All settings for Ethernet support are controller by the value of MICROPY_PY_LWIP
10193
ifeq ($(MICROPY_PY_LWIP),1)
10294
INC += -Ilwip_inc
@@ -246,13 +238,6 @@ SRC_C += \
246238
ticks.c \
247239
tusb_port.c \
248240

249-
ifeq ($(MICROPY_PY_BLUETOOTH),1)
250-
SRC_C += \
251-
drivers/ninaw10/nina_bt_hci.c \
252-
mpbthciport.c \
253-
mpnimbleport.c
254-
endif
255-
256241
SHARED_SRC_C += \
257242
shared/libc/printf.c \
258243
shared/libc/string0.c \
@@ -304,14 +289,6 @@ else
304289
SRC_HAL_C += hal/$(FLEXSPI_FLASH_TYPE)_config.c
305290
endif
306291

307-
ifeq ($(MICROPY_PY_BLUETOOTH),1)
308-
SRC_C += mpbthciport.c
309-
endif # MICROPY_PY_BLUETOOTH
310-
311-
ifeq ($(MICROPY_BLUETOOTH_NIMBLE),1)
312-
SRC_C += mpnimbleport.c
313-
endif
314-
315292
# Math library source files
316293
ifeq ($(MICROPY_FLOAT_IMPL),double)
317294
LIBM_SRC_C += $(addprefix lib/libm_dbl/,\

ports/mimxrt/boards/MIMXRT1015.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ dtcm_size = 0x00008000;
2727
ocrm_start = 0x20200000;
2828
ocrm_size = 0x00010000;
2929

30-
/* 10kiB stack. */
31-
__stack_size__ = 0x2800;
30+
/* 8kiB stack. */
31+
__stack_size__ = 0x2000;
3232
_estack = __StackTop;
3333
_sstack = __StackLimit;
3434

ports/mimxrt/boards/MIMXRT1015_EVK/mpconfigboard.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ MICROPY_HW_FLASH_SIZE = 0x1000000 # 16MB
88
MICROPY_PY_BLUETOOTH ?= 1
99
MICROPY_BLUETOOTH_NIMBLE ?= 1
1010

11-
MICROPY_BOOT_BUFFER_SIZE = (32 * 1024)
12-
1311
MICROPY_PY_NETWORK_NINAW10 ?= 1
1412
MICROPY_PY_SSL ?= 1
1513
MICROPY_SSL_MBEDTLS ?= 1

ports/mimxrt/boards/MIMXRT1020_EVK/manifest.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

ports/mimxrt/boards/MIMXRT1020_EVK/mbedtls_config_board.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

ports/mimxrt/boards/MIMXRT1020_EVK/mpconfigboard.mk

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@ MICROPY_PY_LWIP = 1
1212
MICROPY_PY_SSL = 1
1313
MICROPY_SSL_MBEDTLS = 1
1414

15-
MICROPY_PY_NETWORK = 1
1615
MICROPY_PY_NETWORK_ESP_HOSTED = 1
17-
CFLAGS += -DMICROPY_PY_NETWORK=$(MICROPY_PY_NETWORK)
1816

1917
MICROPY_PY_BLUETOOTH = 1
20-
CFLAGS += -DMICROPY_PY_BLUETOOTH=$(MICROPY_PY_BLUETOOTH)
2118
MICROPY_BLUETOOTH_NIMBLE = 1
22-
MICROPY_BLUETOOTH_BTSTACK = 0
23-
24-
MBEDTLS_CONFIG_FILE = '"$(BOARD_DIR)/mbedtls_config_board.h"'
25-
26-
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
2719

2820
JLINK_PATH ?= /media/RT1020-EVK/
2921
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink

ports/mimxrt/boards/MIMXRT1050_EVK/manifest.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

ports/mimxrt/boards/MIMXRT1050_EVK/mpconfigboard.mk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ MICROPY_PY_LWIP = 1
1212
MICROPY_PY_SSL = 1
1313
MICROPY_SSL_MBEDTLS = 1
1414

15-
MICROPY_PY_NETWORK = 1
1615
MICROPY_PY_NETWORK_ESP_HOSTED = 1
17-
CFLAGS += -DMICROPY_PY_NETWORK=$(MICROPY_PY_NETWORK)
1816

1917
MICROPY_PY_BLUETOOTH = 1
20-
CFLAGS += -DMICROPY_PY_BLUETOOTH=$(MICROPY_PY_BLUETOOTH)
2118
MICROPY_BLUETOOTH_NIMBLE = 1
22-
MICROPY_BLUETOOTH_BTSTACK = 0
23-
24-
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

ports/mimxrt/boards/MIMXRT1060_EVK/manifest.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

ports/mimxrt/boards/MIMXRT1060_EVK/mpconfigboard.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ MICROPY_PY_LWIP = 1
1212
MICROPY_PY_SSL = 1
1313
MICROPY_SSL_MBEDTLS = 1
1414

15-
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
16-
1715
JLINK_PATH ?= /media/RT1060-EVK/
1816
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink
1917

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy