Update rootfs_script.sh

pull/1679/head
viktorxda 2025-01-23 12:34:13 +01:00
parent f8dec2289a
commit 85f7892abe
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ if ! grep -qP ${CONF} ${BR2_CONFIG}; then
rm -f ${TARGET_DIR}/usr/lib/libstdc++*
fi
if grep -q "USES_MUSL=y" ${BR2_CONFIG}; then
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}%