From 31e2260d8317079e0f369749f8ab475afe85bdb2 Mon Sep 17 00:00:00 2001 From: cronyx Date: Fri, 9 Feb 2024 14:35:37 +0300 Subject: [PATCH] [no ci] fix exclude lists work --- general/scripts/rootfs_script.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/general/scripts/rootfs_script.sh b/general/scripts/rootfs_script.sh index a46f2015..1f9b1b6a 100755 --- a/general/scripts/rootfs_script.sh +++ b/general/scripts/rootfs_script.sh @@ -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