[no ci] fix exclude lists work ()

pull/1309/head
cronyx 2024-02-09 14:36:58 +03:00 committed by GitHub
parent 05b33af21d
commit 889fa233c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions
general/scripts

View File

@ -13,9 +13,11 @@ if ! grep -q "USES_GLIBC" ${BR2_CONFIG} && ! grep -qP ${CONF} ${BR2_CONFIG}; the
fi
if grep -q "USES_MUSL" ${BR2_CONFIG}; then
LIST=${BR2_EXTERNAL}/scripts/excludes/${OPENIPC_SOC_MODEL}_${OPENIPC_VARIANT}.list
test -e ${LIST} && xargs -a ${LIST} -I % rm -f ${TARGET_DIR}%
ln -sf libc.so ${TARGET_DIR}/lib/ld-uClibc.so.0
ln -sf ../../lib/libc.so ${TARGET_DIR}/usr/bin/ldd
fi
LIST="${BR2_EXTERNAL_GENERAL_PATH}/scripts/excludes/${OPENIPC_SOC_MODEL}_${OPENIPC_VARIANT}.list"
if [ -f ${LIST} ]; then
xargs -a ${LIST} -I % rm -f ${TARGET_DIR}%
fi