mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00

* BOARD: firstboot: use ext4 for p1 explicitly * BOARD: /etc/main : update fsck scripts * BOARD: inittab: - add /roms in p5 - mount RO /boot in async (default) * BOARD: genimage.sh: gen ROMS EXT4 image * BAORD: prebuild.sh: - create mount point for ROMS - increase MAIN & ROMS block size - the size of /mnt is "hardcoded" after image creation - we need real space for backup manipulation in ROMS * BOARD: mv roms upward * BOARD: firstboot: add p5 ROMS and resize * BOARD: genimage-sdcard.cfg: - use GPT - add p5 for roms * PACKAGE/BOARD: patch/genimage: down-size gpt table * PACKAGE/DEFCONFIG: add `gptfdisk` package to shared * BOARD: firstboot: allow for switching FS type in MAIN and ROMS * README: update firstboot_procedure.drawio.png - add FS change boxes and IPK installer * BOARD: firstboot: not mandatory to resize for IPK manager * DEFCONFIG: add default kernel patching * DEFCONFIG: uppercase rootfs label * BOARD: umtpr: uppercas partition LABELS * DEFCONFIG/PACKAGE: add RSYNC pkg * BOARD: mount FAT p5 in async (default) * BOARD: add ROMS icons for Win Co-Authored-By: TriForce <triforce@gznetwork.com>
32 lines
836 B
Bash
Executable File
32 lines
836 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ROOTFS_PATH="${TARGET_DIR}"
|
|
|
|
mkdir -p ${ROOTFS_PATH}/var/lib/opkg/info
|
|
VAR_OPKG="${ROOTFS_PATH}/var/lib/opkg"
|
|
|
|
# make -s printvars VARS=PACKAGES_TARGET
|
|
PKGS_ARRAY=(${5})
|
|
PKGS="${PKGS_ARRAY[*]}"
|
|
PKGS_VERSION_ARRAY=(${6})
|
|
PKGS_PKGDIR_ARRAY=(${7})
|
|
PKGS_LICENSE_ARRAY=(${8})
|
|
|
|
echo "Current configuration suggest to install following pkgs to TARGET:" && echo "${PKGS}"
|
|
|
|
for i in "${!PKGS_ARRAY[@]}"; do
|
|
echo -e \
|
|
"Package: "${PKGS_ARRAY[i]}"\n\
|
|
Version: "${PKGS_VERSION_ARRAY[i]}"\n\
|
|
Source: https://github.com/MiyooCFW/buildroot/"${PKGS_PKGDIR_ARRAY[i]}"\n\
|
|
License: "$(echo ${PKGS_LICENSE_ARRAY[i]} | tr '_' ' ')"\n\
|
|
Status: install ok installed\n\
|
|
Architecture: arm\n" >> ${VAR_OPKG}/status
|
|
touch ${VAR_OPKG}/info/${PKGS_ARRAY[i]}.list
|
|
done
|
|
|
|
sleep 2
|
|
|
|
# create mount point for ROMS p5 partition
|
|
mkdir -p ${ROOTFS_PATH}/roms
|