Skip to content

Commit

Permalink
ports/psoc6: WIP Script.
Browse files Browse the repository at this point in the history
Signed-off-by: IFX-Anusha <[email protected]>
  • Loading branch information
IFX-Anusha committed Aug 21, 2024
1 parent 3afbc15 commit 132c1c3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ports/psoc6/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,15 @@ HEADER_BUILD := $(BUILD)/genhdr
GEN_PINS_HDR := $(BUILD)/genhdr/pins.h
GEN_PINS_QSTR := $(BUILD)/pins_qstr.h
BOARD_PINS := pins.csv
BOARD_AF_PINS := pins_af.csv

GENERATED_PINS = $(GEN_PINS_SRC) $(GEN_PINS_HDR) $(GEN_PINS_QSTR)

$(GENERATED_PINS):
@echo "Generating $@"
$(PYTHON) boards/make-pins-csv.py --gen-pin-for $(PIN_PACKAGE_FILE) --save-pins-csv-at $(BOARD_PINS) --save-pins-af-csv-at $(BOARD_AF_PINS)
$(MKDIR) -p $(BUILD)/genhdr
$(PYTHON) boards/make-pins.py --hdr $(GEN_PINS_HDR) --qstr $(GEN_PINS_QSTR) > $(GEN_PINS_SRC)
$(PYTHON) boards/make-pins.py --gen-pin-for $(PIN_PACKAGE_FILE) --save-pins-csv-at $(BOARD_PINS) --hdr $(GEN_PINS_HDR) --qstr $(GEN_PINS_QSTR) > $(GEN_PINS_SRC)
rm -rf $(BOARD_PINS) $(BOARD_AF_PINS)


# Flags for optional C++ source code
CXXFLAGS += $(filter-out -std=c99,$(CFLAGS))
CXXFLAGS += $(CXXFLAGS_MOD)
Expand Down Expand Up @@ -226,7 +223,7 @@ build: mtb_get_build_flags $(GENERATED_PINS) $(BUILD)/firmware.hex

all: build

clean: mtb_clean
#clean: mtb_clean

rebuild: clean mtb_clean all

Expand Down

0 comments on commit 132c1c3

Please sign in to comment.