[no ci] Overlay: export soc environment variable

pull/949/head
Viktor 2023-08-11 21:28:41 +02:00 committed by viktorxda
parent 73dd5a6182
commit 4b64bfb5a7
2 changed files with 2 additions and 1 deletions

View File

@ -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"; }

View File

@ -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