Skip to content

Commit

Permalink
stm32/boards/PYB: Fix handling of BOARD_VARIANT selection.
Browse files Browse the repository at this point in the history
The matches should not have been quoted.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
  • Loading branch information
jimmo authored and dpgeorge committed Sep 8, 2022
1 parent 9070a24 commit 6e75d17
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions ports/stm32/boards/PYBLITEV10/mpconfigboard.mk
Expand Up @@ -8,20 +8,20 @@ TEXT1_ADDR = 0x08020000
# Provide different variants for the downloads page.
BOARD_VARIANTS += "dp thread dp-thread network"

ifeq ($(BOARD_VARIANT),"dp")
ifeq ($(BOARD_VARIANT),dp)
MICROPY_FLOAT_IMPL=double
endif

ifeq ($(BOARD_VARIANT),"thread")
ifeq ($(BOARD_VARIANT),thread)
CFLAGS += -DMICROPY_PY_THREAD=1
endif

ifeq ($(BOARD_VARIANT),"dp-thread")
ifeq ($(BOARD_VARIANT),dp-thread)
MICROPY_FLOAT_IMPL=double
CFLAGS += -DMICROPY_PY_THREAD=1
endif

ifeq ($(BOARD_VARIANT),"network")
ifeq ($(BOARD_VARIANT),network)
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

Expand Down
8 changes: 4 additions & 4 deletions ports/stm32/boards/PYBV10/mpconfigboard.mk
Expand Up @@ -18,20 +18,20 @@ MICROPY_VFS_LFS2 = 1
# Provide different variants for the downloads page.
BOARD_VARIANTS += "dp thread dp-thread network"

ifeq ($(BOARD_VARIANT),"dp")
ifeq ($(BOARD_VARIANT),dp)
MICROPY_FLOAT_IMPL=double
endif

ifeq ($(BOARD_VARIANT),"thread")
ifeq ($(BOARD_VARIANT),thread)
CFLAGS += -DMICROPY_PY_THREAD=1
endif

ifeq ($(BOARD_VARIANT),"dp-thread")
ifeq ($(BOARD_VARIANT),dp-thread)
MICROPY_FLOAT_IMPL=double
CFLAGS += -DMICROPY_PY_THREAD=1
endif

ifeq ($(BOARD_VARIANT),"network")
ifeq ($(BOARD_VARIANT),network)
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

Expand Down
8 changes: 4 additions & 4 deletions ports/stm32/boards/PYBV11/mpconfigboard.mk
Expand Up @@ -18,20 +18,20 @@ MICROPY_VFS_LFS2 = 1
# Provide different variants for the downloads page.
BOARD_VARIANTS += "dp thread dp-thread network"

ifeq ($(BOARD_VARIANT),"dp")
ifeq ($(BOARD_VARIANT),dp)
MICROPY_FLOAT_IMPL=double
endif

ifeq ($(BOARD_VARIANT),"thread")
ifeq ($(BOARD_VARIANT),thread)
CFLAGS += -DMICROPY_PY_THREAD=1
endif

ifeq ($(BOARD_VARIANT),"dp-thread")
ifeq ($(BOARD_VARIANT),dp-thread)
MICROPY_FLOAT_IMPL=double
CFLAGS += -DMICROPY_PY_THREAD=1
endif

ifeq ($(BOARD_VARIANT),"network")
ifeq ($(BOARD_VARIANT),network)
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

Expand Down

0 comments on commit 6e75d17

Please sign in to comment.