mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 21:30:14 +02:00
c895770d4a
This commit adds a new test to make sure ROMFS files are mounted and read correctly, to be run as part of the CI process. The changes also include the source binary files that have been used to create the pre-baked ROMFS partition image used in the test, along with a Makefile to allow recreating said file. The CI test ROMFS image is mounted only if no other ROMFS partition is mounted in slot 0. The specific test is executed only if there actually is a ROMFS partition mounted and if the partition is identified as the one used to run tests on. This allows for user images to be mounted and for a successful test run if that is the case. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
30 lines
723 B
Makefile
30 lines
723 B
Makefile
MPY_DIR = ../..
|
|
|
|
PYTHON := $(command -v python3 2> /dev/null)
|
|
ifndef PYTHON
|
|
PYTHON = python
|
|
endif
|
|
|
|
# Files created with dd if=/dev/urandom ... - the file name is the CRC32
|
|
# of the data contained in the file itself.
|
|
|
|
ROMFS_FILES = romfs_source/0x30d83fe5.bin \
|
|
romfs_source/0x37bef0eb.bin \
|
|
romfs_source/0x442f3b5f.bin \
|
|
romfs_source/0x648793fb.bin \
|
|
romfs_source/0x913837b6.bin \
|
|
romfs_source/0xdb14aac7.bin \
|
|
romfs_source/romfs_sentinel.txt
|
|
|
|
.PHONY: romfs
|
|
romfs: all
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f random_romfs.bin
|
|
|
|
all: random_romfs.bin
|
|
|
|
random_romfs.bin: $(ROMFS_FILES)
|
|
$(PYTHON) $(MPY_DIR)/tools/mpremote/mpremote.py romfs --partition 0 --no-mpy --output $@ build romfs_source
|