feat: add ubuntu 12.04 docker build env

This commit is contained in:
zhangsz
2025-03-10 10:16:38 +08:00
parent 5963dc3704
commit 1c1eb29422
3 changed files with 119 additions and 4 deletions

View File

@@ -142,13 +142,25 @@ esac
make_ocs_bin()
{
cd $src_ocs_dir
echo -n "make clean ... "
make clean 1>/dev/null 2>&1
echo "done"
if [ -z $bin_tag ]; then
bin_tag="pncc"
fi
cd $src_ocs_dir
if [ $bin_tag = "cook" ]; then
if [ $rel_os = "ub22" ]; then
echo "Ubuntu 22.04 is not supported"
exit 1
fi
git checkout cook
git pull
else
git checkout main
git pull
fi
echo -n "make clean ... "
make clean 1>/dev/null 2>&1
echo "done"
echo -n "make $bin_tag $pkg_type ... "
make ${bin_tag} 1>make.log 2>&1
if [ $? -ne 0 ]; then