This commit is contained in:
13038267101 2023-02-07 08:59:33 +08:00
commit 1783a8c183
2 changed files with 9 additions and 2 deletions

View File

@ -49,6 +49,13 @@ elif [ "$oem" == "cts" ] || [ "$oem" == "ctsweb" ]; then
sed -i "s/DOEM_HUAGAO/DOEM_CANGTIAN/g" hgdriver/hgdev/CMakeLists.txt
sed -i "s/DOEM_HUAGAO/DOEM_CANGTIAN/g" hgdriver/wrapper/CMakeLists.txt
sed -i "s/1%m%d1/1%m%d8/g" hgdriver/wrapper/CMakeLists.txt
elif [ "$oem" == "zj" ] || [ "$oem" == "zjweb" ]; then
ver3=20
sed -i "s/DOEM_HUAGAO/DOEM_ZHONGJING/g" hgdriver/hgdev/CMakeLists.txt
sed -i "s/DOEM_HUAGAO/DOEM_ZHONGJING/g" hgdriver/wrapper/CMakeLists.txt
sed -i "s/1%m%d1/1%m%d9/g" hgdriver/wrapper/CMakeLists.txt
fi
if [ "$oem" != "" ]; then
@ -142,4 +149,4 @@ if [ -f ../code_device/hgdriver/wrapper/CMakeLists.txtbkp ]; then
pwd
fi
exit $err
exit $err

View File

@ -297,7 +297,7 @@ extern "C"
char path[256] = { 0 };
int len = readlink(lnk, path, sizeof(path) - 1);
return path;
return len > 0 ? path : lnk;
}
static int enum_files(const char* dir, bool recursive, bool(*found_file)(const char* path_file, void* param), void* param)
{