diff --git a/scripts/rockchip/boards/radxa-rock5b.conf b/scripts/rockchip/boards/radxa-rock-5b.conf similarity index 100% rename from scripts/rockchip/boards/radxa-rock5b.conf rename to scripts/rockchip/boards/radxa-rock-5b.conf diff --git a/scripts/rockchip/build.sh b/scripts/rockchip/build.sh index 60c7e81..41d7655 100755 --- a/scripts/rockchip/build.sh +++ b/scripts/rockchip/build.sh @@ -133,14 +133,14 @@ LOG(){ echo `date` - INFO, $* | tee -a ${log_dir}/${builddate}.log } -source ${cur_dir}/boards/${board}.conf +cur_dir=$(cd $(dirname $0);pwd) default_param 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 "U-Boot config: ${ubootconfig}." @@ -193,7 +193,7 @@ fi if [[ $(cat $workdir/.done | grep rootfs) != "rootfs" ]];then if [[ "${host_arch}" == "x86_64" && "${arch}" == "arm64" ]];then 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 LOG "You are running this script on a ${host_arch} mechine, start building rootfs...." bash ${cur_dir}/build_rootfs.sh diff --git a/scripts/rockchip/build_boot.sh b/scripts/rockchip/build_boot.sh index 8c648b6..598ed55 100755 --- a/scripts/rockchip/build_boot.sh +++ b/scripts/rockchip/build_boot.sh @@ -283,7 +283,7 @@ if [ ! -d $workdir ]; then mkdir $workdir fi -source $workdir/../boards/${board}.conf +source $cur_dir/boards/${board}.conf if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -f $workdir/.done ];then diff --git a/scripts/rockchip/build_rootfs.sh b/scripts/rockchip/build_rootfs.sh index 7878753..6df44ca 100755 --- a/scripts/rockchip/build_rootfs.sh +++ b/scripts/rockchip/build_rootfs.sh @@ -358,7 +358,7 @@ if [ ! -d $workdir ]; then mkdir $workdir fi -source $workdir/../boards/${board}.conf +source $cur_dir/boards/${board}.conf if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -f $workdir/.done ];then diff --git a/scripts/rockchip/build_u-boot.sh b/scripts/rockchip/build_u-boot.sh index 0426774..13af97f 100755 --- a/scripts/rockchip/build_u-boot.sh +++ b/scripts/rockchip/build_u-boot.sh @@ -158,7 +158,7 @@ if [ ! -d $workdir ]; then mkdir $workdir fi -source $workdir/../boards/${board}.conf +source $cur_dir/boards/${board}.conf if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -f $workdir/.done ];then diff --git a/scripts/rockchip/gen_image.sh b/scripts/rockchip/gen_image.sh index aaa0d35..b20ec59 100755 --- a/scripts/rockchip/gen_image.sh +++ b/scripts/rockchip/gen_image.sh @@ -295,7 +295,7 @@ if [ ! -d $workdir ]; then mkdir $workdir fi -source $workdir/../boards/${board}.conf +source $cur_dir/boards/${board}.conf if [ ! -d ${log_dir} ];then mkdir -p ${log_dir}; fi if [ ! -f $workdir/.done ];then