mirror of
https://gitee.com/openharmony/drivers_adapter_khdf_linux
synced 2024-11-27 06:40:24 +00:00
fix shell code check issue
Signed-off-by: yuanbo <yuanbo@huawei.com>
This commit is contained in:
parent
aa9e46b2e6
commit
294d6dfc4b
10
patch_hdf.sh
10
patch_hdf.sh
@ -31,25 +31,25 @@ cp_list=(
|
||||
$OHOS_SOURCE_ROOT/third_party/FreeBSD/sys/dev/evdev drivers/hdf/
|
||||
)
|
||||
|
||||
function copy_external_compents
|
||||
function copy_external_compents()
|
||||
{
|
||||
for ((i=0; i<${#cp_list[*]}; i+=2))
|
||||
do
|
||||
dst_dir=${cp_list[`expr $i + 1`]}/${cp_list[$i]##*/}
|
||||
dst_dir=${cp_list[$(expr $i + 1)]}/${cp_list[$i]##*/}
|
||||
mkdir -p $dst_dir
|
||||
cp -arfL ${cp_list[$i]}/* $dst_dir/
|
||||
done
|
||||
}
|
||||
|
||||
function ln_hdf_repos
|
||||
function ln_hdf_repos()
|
||||
{
|
||||
for ((i=0; i<${#ln_list[*]}; i+=2))
|
||||
do
|
||||
ln -sf ${ln_list[$i]} ${ln_list[`expr $i + 1`]}
|
||||
ln -sf ${ln_list[$i]} ${ln_list[$(expr $i + 1)]}
|
||||
done
|
||||
}
|
||||
|
||||
function main
|
||||
function main()
|
||||
{
|
||||
cd $KERNEL_BUILD_ROOT
|
||||
patch -p1 < $HDF_PATCH_FILE
|
||||
|
Loading…
Reference in New Issue
Block a user