4 Star 7 Fork 5

owlvisiontech/rk3588_linux_sdk_patch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vendor-patch.sh 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
Jon 提交于 2022-02-21 14:23 . first commit
# Copyright (C)
# 2020 - www.owlvision-tech.com
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#!/bin/bash
SDK_TOP_DIR=".."
BOARD_CONFIG_FILE="../device/rockchip/.BoardConfig.mk"
FG_BOARD_CONFIG="$SDK_TOP_DIR/device/rockchip/rv1126_rv1109/BoardConfig-facial_gate.mk"
function show_notice()
{
echo ""
echo -e "\033[32m===============Attention Please======================\033[0m"
echo "1) From http://www.owlvision-tech.com instead of rockchip."
echo "2) You should backup your own change."
echo "2) We will copy some files or overrid some files."
echo "3) All the source files are in this directory"
tree
echo -e "\033[32m=====================================================\033[0m"
echo ""
}
function check_dir()
{
if [ ! -d "$1" ]; then
echo -e "\033[31m Can't find $1 directory!\033[0m"
echo -e "\033[31m You should copy these under you SDK!\033[0m"
exit
fi
}
function apply_change()
{
echo -e "\033[32m=========>>>apply change\033[0m"
rsync -avzt ./* --exclude="vendor-patch.sh" --exclude="LICENSE" --exclude="*.md" ../
echo -e "\033[32m=========>>>apply change finished\033[0m"
}
function hot_fix()
{
echo "hotfix"
}
function confirm_change()
{
read -r -p "Are You Sure do that? [Y/n] " input
case $input in
[yY][eE][sS]|[yY])
apply_change
hot_fix
;;
[nN][oO]|[nN])
echo "No"
;;
*)
echo "Invalid input..."
exit 1
;;
esac
}
function reconfig_after_apply_patch()
{
if [ -f "$BOARD_CONFIG_FILE" ]; then
rm $BOARD_CONFIG_FILE
fi
}
show_notice
check_dir "$SDK_TOP_DIR/kernel"
check_dir "$SDK_TOP_DIR/u-boot"
check_dir "$SDK_TOP_DIR/device"
confirm_change
reconfig_after_apply_patch
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/owlvisiontech/rk3588_linux_sdk_patch.git
[email protected]:owlvisiontech/rk3588_linux_sdk_patch.git
owlvisiontech
rk3588_linux_sdk_patch
rk3588_linux_sdk_patch
master

搜索帮助