rockchip: fix file path

This commit is contained in:
Hsun Lai 2025-05-16 11:23:42 +08:00
parent 0beb4477f1
commit 4f8bb7f954
6 changed files with 8 additions and 8 deletions

View File

@ -133,14 +133,14 @@ LOG(){
echo `date` - INFO, $* | tee -a ${log_dir}/${builddate}.log echo `date` - INFO, $* | tee -a ${log_dir}/${builddate}.log
} }
source ${cur_dir}/boards/${board}.conf cur_dir=$(cd $(dirname $0);pwd)
default_param default_param
parseargs "$@" || help $? parseargs "$@" || help $?
LOG "Selected board: ${board}." source ${cur_dir}/boards/${board}.conf
cur_dir=$(cd $(dirname $0);pwd) LOG "Selected board: ${board}."
LOG "Board config: ${board}." LOG "Board config: ${board}."
LOG "U-Boot config: ${ubootconfig}." LOG "U-Boot config: ${ubootconfig}."
@ -193,7 +193,7 @@ fi
if [[ $(cat $workdir/.done | grep rootfs) != "rootfs" ]];then if [[ $(cat $workdir/.done | grep rootfs) != "rootfs" ]];then
if [[ "${host_arch}" == "x86_64" && "${arch}" == "arm64" ]];then if [[ "${host_arch}" == "x86_64" && "${arch}" == "arm64" ]];then
LOG "You are running this script on a ${host_arch} mechine, installing qemu-user-static...." LOG "You are running this script on a ${host_arch} mechine, installing qemu-user-static...."
sudo rpm -ivh bin/qemu-user-static-aarch64-x86_64.rpm sudo rpm -ivh ${cur_dir}/bin/qemu-user-static-aarch64-x86_64.rpm
fi fi
LOG "You are running this script on a ${host_arch} mechine, start building rootfs...." LOG "You are running this script on a ${host_arch} mechine, start building rootfs...."
bash ${cur_dir}/build_rootfs.sh bash ${cur_dir}/build_rootfs.sh

View File

@ -283,7 +283,7 @@ if [ ! -d $workdir ]; then
mkdir $workdir mkdir $workdir
fi fi
source $workdir/../boards/${board}.conf source $cur_dir/boards/${board}.conf
if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi
if [ ! -f $workdir/.done ];then if [ ! -f $workdir/.done ];then

View File

@ -358,7 +358,7 @@ if [ ! -d $workdir ]; then
mkdir $workdir mkdir $workdir
fi fi
source $workdir/../boards/${board}.conf source $cur_dir/boards/${board}.conf
if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi
if [ ! -f $workdir/.done ];then if [ ! -f $workdir/.done ];then

View File

@ -158,7 +158,7 @@ if [ ! -d $workdir ]; then
mkdir $workdir mkdir $workdir
fi fi
source $workdir/../boards/${board}.conf source $cur_dir/boards/${board}.conf
if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi
if [ ! -f $workdir/.done ];then if [ ! -f $workdir/.done ];then

View File

@ -295,7 +295,7 @@ if [ ! -d $workdir ]; then
mkdir $workdir mkdir $workdir
fi fi
source $workdir/../boards/${board}.conf source $cur_dir/boards/${board}.conf
if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi
if [ ! -f $workdir/.done ];then if [ ! -f $workdir/.done ];then