1 Star 0 Fork 2

sxc/libmali

forked from RockChipMirror/libmali 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
normalize.sh 718 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jeffy Chen 提交于 2021-03-27 05:06 . Run update_debian.sh in normalize.sh
#!/bin/sh
# Remove fbdev libs
rm -f $(find . -name "*fbdev*.so")
# Link x11 libs
X11_LIBS=$(find . -name "*.so"|grep -vE "gbm.so|wayland.so|x11.so|only-cl.so|dummy.so")
for lib in $X11_LIBS;do
mv $lib ${lib%.so}-x11.so 2>/dev/null
done
for lib in $(find . -name "*.so"|grep x11.so);do
ln -sf ${lib##*/} ${lib%-x11.so}.so
done
# Hack out-dated deps
for file in $(find . -type f);do
patchelf $file --replace-needed libffi.so.6 libffi.so
patchelf $file --replace-needed libcrypto.so.1.0.0 libcrypto.so
done 2>/dev/null
# TODO: Remove this hack when we have real soname.
for lib in $(find . -name "*.so");do
patchelf --set-soname libmali.so.1 $lib
done
# Update debian control and rules
./update_debian.sh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shixiaocheng12138/libmali.git
git@gitee.com:shixiaocheng12138/libmali.git
shixiaocheng12138
libmali
libmali
master

搜索帮助