Skip to content

Commit

Permalink
rootfs: add custom rootfs for alpine
Browse files Browse the repository at this point in the history
Signed-off-by: xiaobo <[email protected]>
  • Loading branch information
peterwillcn committed May 18, 2024
1 parent 1e160de commit ac1148a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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

0 comments on commit ac1148a

Please sign in to comment.