BTRFS file system for MAIN and rootfs partition (#65)

* BTRFS file system for MAIN and rootfs partition
This commit is contained in:
tiopex
2023-12-13 07:14:00 +01:00
committed by GitHub
parent 2f89873479
commit 130d2be1f3
33 changed files with 165 additions and 162 deletions

View File

@@ -17,7 +17,7 @@ cp -r board/miyoo/main "${BINARIES_DIR}"
test -d "${BINARIES_DIR}/gmenu2x" && cp -r "${BINARIES_DIR}/gmenu2x/" "${BINARIES_DIR}/main/"
test -d "${BINARIES_DIR}/emus" && cp -r "${BINARIES_DIR}/emus/" "${BINARIES_DIR}/main/"
if test -d "${BINARIES_DIR}/retroarch";then
cp -r "${BINARIES_DIR}/retroarch/" "${BINARIES_DIR}/main/"
rsync -avzh "${BINARIES_DIR}/retroarch/" "${BINARIES_DIR}/main/.retroarch/"
## Generate list of cores to be used
CORES_DIR="${BINARIES_DIR}/retroarch/cores"
for file in $CORES_DIR/*; do
@@ -47,4 +47,9 @@ fi
# Write CFW version to splash image
convert board/miyoo/miyoo-boot.png -pointsize 12 -fill white -annotate +10+230 "v${CFW_RELEASE} ${CFW_VERSION} (${LIBC}) ${STATUS}" -alpha off -type truecolor -strip -define bmp:format=bmp4 -define bmp:subtype=RGB565 "${BINARIES_DIR}"/boot/miyoo-boot.bmp
# Generate MAIN BTRFS partition
image="${BINARIES_DIR}/main.img"
label="MAIN"
sudo mkfs.btrfs -r "${BINARIES_DIR}/main/" --shrink -v -f -L ${label} ${image}
support/scripts/genimage.sh ${1} -c board/miyoo/genimage-sdcard.cfg