Skip to content

Commit

Permalink
[RULES] READFS_FILES now works with new gapy
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain Haugou authored and haugoug committed Nov 8, 2022
1 parent aac804e commit 482c950
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tools/rules/pmsis_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,24 @@ endif
endif

# FS config
READFS_FLASH ?= flash

ifdef PULPOS_PLATFORM
platform=$(PULPOS_PLATFORM)
endif

ifndef platform
platform=gvsoc
endif

ifeq '$(platform)' 'gvsoc'
READFS_FLASH ?= hyperflash
override runner_args += $(foreach file, $(READFS_FILES), --flash-property=$(file)@$(READFS_FLASH):readfs:files)
override runner_args += $(foreach file, $(HOSTFS_FILES), --flash-property=$(file)@$(READFS_FLASH):hostfs:files)
else
READFS_FLASH ?= flash
override config_args += $(foreach file, $(READFS_FILES), --config-opt=**/$(READFS_FLASH)/content/partitions/readfs/files=$(file))
override config_args += $(foreach file, $(HOSTFS_FILES), --config-opt=**/flash/content/partitions/hostfs/files=$(file))
endif

GAPY_TARGET_OPT = --py-target=$(GAPY_PY_TARGET)

Expand Down

0 comments on commit 482c950

Please sign in to comment.