Browse Source
Following how esp32 has been reworked, each variant now has a corresponding `mpconfigvariant_VARIANT.mk` file associated with it. The base variant also has a `mpconfigvariant.mk` file because it has options that none of the other variants use. Signed-off-by: Damien George <damien@micropython.org>pull/15336/head
Damien George
5 months ago
6 changed files with 53 additions and 52 deletions
@ -1,50 +1 @@ |
|||
ifeq ($(BOARD_VARIANT),) |
|||
LD_FILES = boards/esp8266_2MiB.ld |
|||
|
|||
MICROPY_PY_ESPNOW ?= 1 |
|||
MICROPY_PY_BTREE ?= 1 |
|||
MICROPY_VFS_FAT ?= 1 |
|||
MICROPY_VFS_LFS2 ?= 1 |
|||
|
|||
# Add asyncio and extra micropython-lib packages (in addition to the port manifest).
|
|||
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest_2MiB.py |
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_2M |
|||
endif |
|||
|
|||
ifeq ($(BOARD_VARIANT),FLASH_1M) |
|||
LD_FILES = boards/esp8266_1MiB.ld |
|||
|
|||
MICROPY_PY_ESPNOW ?= 1 |
|||
MICROPY_PY_BTREE ?= 1 |
|||
MICROPY_VFS_LFS2 ?= 1 |
|||
|
|||
# Note: Implicitly uses the port manifest.
|
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_1M |
|||
endif |
|||
|
|||
ifeq ($(BOARD_VARIANT),OTA) |
|||
LD_FILES = boards/esp8266_ota.ld |
|||
|
|||
MICROPY_PY_ESPNOW ?= 1 |
|||
MICROPY_PY_BTREE ?= 1 |
|||
MICROPY_VFS_LFS2 ?= 1 |
|||
|
|||
# Note: Implicitly uses the port manifest.
|
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_1M |
|||
endif |
|||
|
|||
ifeq ($(BOARD_VARIANT),FLASH_512K) |
|||
LD_FILES = boards/esp8266_512kiB.ld |
|||
|
|||
# Note: Use the minimal manifest.py.
|
|||
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest_512kiB.py |
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_512K |
|||
endif |
|||
# There are no common .mk settings among the variants, so this file is empty.
|
|||
|
@ -0,0 +1,12 @@ |
|||
LD_FILES = boards/esp8266_2MiB.ld |
|||
|
|||
MICROPY_PY_ESPNOW ?= 1 |
|||
MICROPY_PY_BTREE ?= 1 |
|||
MICROPY_VFS_FAT ?= 1 |
|||
MICROPY_VFS_LFS2 ?= 1 |
|||
|
|||
# Add asyncio and extra micropython-lib packages (in addition to the port manifest).
|
|||
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest_2MiB.py |
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_2M |
@ -0,0 +1,10 @@ |
|||
LD_FILES = boards/esp8266_1MiB.ld |
|||
|
|||
MICROPY_PY_ESPNOW ?= 1 |
|||
MICROPY_PY_BTREE ?= 1 |
|||
MICROPY_VFS_LFS2 ?= 1 |
|||
|
|||
# Note: Implicitly uses the port manifest.
|
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_1M |
@ -0,0 +1,7 @@ |
|||
LD_FILES = boards/esp8266_512kiB.ld |
|||
|
|||
# Note: Use the minimal manifest.py.
|
|||
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest_512kiB.py |
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_512K |
@ -0,0 +1,10 @@ |
|||
LD_FILES = boards/esp8266_ota.ld |
|||
|
|||
MICROPY_PY_ESPNOW ?= 1 |
|||
MICROPY_PY_BTREE ?= 1 |
|||
MICROPY_VFS_LFS2 ?= 1 |
|||
|
|||
# Note: Implicitly uses the port manifest.
|
|||
|
|||
# Configure mpconfigboard.h.
|
|||
CFLAGS += -DMICROPY_ESP8266_1M |
Loading…
Reference in new issue