From 4b64bfb5a7d79f88c758495b2f6daa05ffd6ddcb Mon Sep 17 00:00:00 2001 From: Viktor <35473052+viktorxda@users.noreply.github.com> Date: Fri, 11 Aug 2023 21:28:41 +0200 Subject: [PATCH] [no ci] Overlay: export soc environment variable --- general/overlay/etc/profile | 1 + general/scripts/rootfs_script.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/general/overlay/etc/profile b/general/overlay/etc/profile index 997fbe3d..bb6a7511 100644 --- a/general/overlay/etc/profile +++ b/general/overlay/etc/profile @@ -3,6 +3,7 @@ export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) export HOME=${HOME:-/root} export TZ=$(cat /etc/TZ) export SENSOR=$(fw_printenv -n sensor) +export SOC=$(fw_printenv -n soc) echo_c() { echo -ne "\e[1;$1m$2\e[0m"; } diff --git a/general/scripts/rootfs_script.sh b/general/scripts/rootfs_script.sh index a9608e69..adaf7922 100755 --- a/general/scripts/rootfs_script.sh +++ b/general/scripts/rootfs_script.sh @@ -17,6 +17,6 @@ if grep -q "USES_MUSL" ${BR2_CONFIG}; then LIST=${BR2_EXTERNAL}/scripts/excludes/${OPENIPC_SOC_MODEL}_${OPENIPC_FLAVOR}.list test -e ${LIST} && xargs -a ${LIST} -I % rm -rf ${TARGET_DIR}/% - ln -sf /lib/libc.so ${TARGET_DIR}/lib/ld-uClibc.so.0 + ln -sf libc.so ${TARGET_DIR}/lib/ld-uClibc.so.0 ln -sf ../../lib/libc.so ${TARGET_DIR}/usr/bin/ldd fi