Skip to content

Commit

Permalink
rootfs: spilt to make_rootfs_tarball
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Mar 23, 2024
1 parent ef18c7b commit 474f757
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions scripts/make_rootfs.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
#!/bin/bash

make_rootfs()
make_rootfs_tarball()
{
if [ "${BOARD}" == "${BOARD_LPI4A_MAINLINE}" ]; then
PACKAGE_LIST="$KEYRINGS $GPU_DRIVER $BASE_TOOLS $EXTRA_TOOLS"
else
PACKAGE_LIST="$KEYRINGS $GPU_DRIVER $BASE_TOOLS $GRAPHIC_TOOLS $XFCE_DESKTOP $BENCHMARK_TOOLS $FONTS $INCLUDE_APPS $EXTRA_TOOLS $LIBREOFFICE"
fi

# use $1
PACKAGE_LIST="$KEYRINGS $GPU_DRIVER $BASE_TOOLS $GRAPHIC_TOOLS $XFCE_DESKTOP $BENCHMARK_TOOLS $FONTS $INCLUDE_APPS $EXTRA_TOOLS $LIBREOFFICE"
mmdebstrap --architectures=riscv64 \
--include="$PACKAGE_LIST" \
sid "$CHROOT_TARGET" \
"deb https://mirror.iscas.ac.cn/revyos/revyos-gles-21/ revyos-gles-21 main" \
"deb https://mirror.iscas.ac.cn/revyos/revyos-base/ sid main contrib non-free non-free-firmware" \
"deb https://mirror.iscas.ac.cn/revyos/revyos-kernels/ revyos-kernels main" \
"deb https://mirror.iscas.ac.cn/revyos/revyos-addons/ revyos-addons main"
--include="$PACKAGE_LIST" \
sid $1 \
"deb https://mirror.iscas.ac.cn/revyos/revyos-gles-21/ revyos-gles-21 main" \
"deb https://mirror.iscas.ac.cn/revyos/revyos-base/ sid main contrib non-free non-free-firmware" \
"deb https://mirror.iscas.ac.cn/revyos/revyos-kernels/ revyos-kernels main" \
"deb https://mirror.iscas.ac.cn/revyos/revyos-addons/ revyos-addons main"
}

make_rootfs()
{
make_rootfs_tarball $CHROOT_TARGET

# move /boot contents to other place
if [ ! -z "$(ls -A "$CHROOT_TARGET"/boot/)" ]; then
Expand Down

0 comments on commit 474f757

Please sign in to comment.