From 80be95f006b4dbe0cd1c8df4338352ef21bc1d8d Mon Sep 17 00:00:00 2001 From: NikhitaR-IFX Date: Tue, 26 Sep 2023 10:43:03 +0530 Subject: [PATCH] ports/psoc6: Moving pin package var to board specifice makefile. Signed-off-by: NikhitaR-IFX --- ports/psoc6/Makefile | 9 +-------- ports/psoc6/boards/CY8CPROTO-062-4343W/mpconfigboard.mk | 3 +++ ports/psoc6/boards/CY8CPROTO-063-BLE/mpconfigboard.mk | 3 +++ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ports/psoc6/Makefile b/ports/psoc6/Makefile index dc886df49fe8..c9f93c4a7683 100644 --- a/ports/psoc6/Makefile +++ b/ports/psoc6/Makefile @@ -17,13 +17,6 @@ endif MAKE_PINS_CSV = ./boards/make-pins-csv.py MAKE_PINS = ./boards/make-pins.py -ifeq ($(BOARD), CY8CPROTO-062-4343W) -PIN_PACKAGE_FILE = cyhal_psoc6_02_124_bga.h -endif -ifeq ($(BOARD), CY8CPROTO-063-BLE) -PIN_PACKAGE_FILE = cyhal_psoc6_01_116_bga_ble.h #ToDo: Check the right file and replace -endif - #ToDo: Post adding af functionality, refactor to minimize dependent variables in py script if possible GEN_PINS_SRC := ./build/pins_$(BOARD).c HEADER_BUILD := ./build/genhdr @@ -243,7 +236,7 @@ build: mtb_get_build_flags make_pins_csv $(MPY_PATH_TO_MAIN_MAKEFILE) $(MPY_MAIN all: build -clean: mtb_clean +#clean: mtb_clean rebuild: clean mtb_clean all diff --git a/ports/psoc6/boards/CY8CPROTO-062-4343W/mpconfigboard.mk b/ports/psoc6/boards/CY8CPROTO-062-4343W/mpconfigboard.mk index 6fcdfa5aae6b..90b328da6657 100644 --- a/ports/psoc6/boards/CY8CPROTO-062-4343W/mpconfigboard.mk +++ b/ports/psoc6/boards/CY8CPROTO-062-4343W/mpconfigboard.mk @@ -6,3 +6,6 @@ MICROPY_PY_SSL = 1 MICROPY_PSOC6_SSL_MBEDTLS = 1 MICROPY_PY_EXT_FLASH = 1 BOARD_VERSION=release-v4.0.0 + +# Variables to support make-pins +PIN_PACKAGE_FILE = cyhal_psoc6_02_124_bga.h diff --git a/ports/psoc6/boards/CY8CPROTO-063-BLE/mpconfigboard.mk b/ports/psoc6/boards/CY8CPROTO-063-BLE/mpconfigboard.mk index ffcbd6b72ba0..41af88ae0d05 100644 --- a/ports/psoc6/boards/CY8CPROTO-063-BLE/mpconfigboard.mk +++ b/ports/psoc6/boards/CY8CPROTO-063-BLE/mpconfigboard.mk @@ -2,3 +2,6 @@ FROZEN_MANIFEST ?= boards/manifest.py MICROPY_PY_SSL = 1 MICROPY_PSOC6_SSL_MBEDTLS = 1 BOARD_VERSION=release-v4.2.0 + +# Variables to support make-pins +PIN_PACKAGE_FILE = cyhal_psoc6_01_116_bga_ble.h \ No newline at end of file