ghw
apt source mesa
cd mesa***
#为编译目标架构添加loong64
sed -i 's/mips64el/mips64el loong64/g' debian/contral
sed -i 's/mips64el/mips64el loong64/g' debian/rules
#把编译需要的llvm16和clang16改成17
sed -i 's/-16/-17/g' debian/contral
sed -i 's/cpp16/cpp17/g' debian/contral
#安装依赖:
sudo apt build-dep mesa
#编译打包:
dpkg-buildpackage -uc -us