Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rootfs: add custom rootfs for alpine #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions project/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,17 @@ EOF
function __PACKAGE_ROOTFS()
{
local rootfs_tarball _target_dir _install_dir
rootfs_tarball="$RK_PROJECT_PATH_SYSDRV/rootfs_${RK_LIBC_TPYE}_${RK_CHIP}.tar"
if [ -f $rootfs_tarball ]; then
tar xf $rootfs_tarball -C $RK_PROJECT_OUTPUT
if [ -z $RK_CUSTOM_ROOTFS ]; then
rootfs_tarball="$RK_PROJECT_PATH_SYSDRV/rootfs_${RK_LIBC_TPYE}_${RK_CHIP}.tar"
tar xf $rootfs_tarball -C $RK_PROJECT_OUTPUT
else
rootfs_tarball="$RK_CUSTOM_ROOTFS"
if [ ! -d $RK_PROJECT_PACKAGE_ROOTFS_DIR ]; then
mkdir $RK_PROJECT_PACKAGE_ROOTFS_DIR
fi
tar xf $rootfs_tarball -C $RK_PROJECT_PACKAGE_ROOTFS_DIR
fi
else
msg_error "Not found rootfs tarball: $rootfs_tarball"
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ export RK_BUILD_APP_TO_OEM_PARTITION=y

# enable rockchip test
export RK_ENABLE_ROCKCHIP_TEST=y

export RK_CUSTOM_ROOTFS=../sysdrv/custom_rootfs/alpine.tar.gz