mirror of https://github.com/OpenIPC/firmware.git
18 lines
514 B
Bash
Executable File
18 lines
514 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Please check BR2_ROOTFS_POST_BUILD_SCRIPT option in config
|
|
#
|
|
|
|
GITHUB_VERSION="${BRANCH_NAME}+${GIT_HASH}"
|
|
RELEASE_DATE=$(date "+%y.%m.%d")
|
|
echo "OPENIPC_VERSION=${GITHUB_VERSION}, 2.${RELEASE_DATE:1}" >>${TARGET_DIR}/usr/lib/os-release
|
|
#
|
|
echo 'Note: BR2_TOOLCHAIN_BUILDROOT_LIBC="musl"'
|
|
#
|
|
ln -sfv /lib/libc.so ${TARGET_DIR}/lib/ld-uClibc.so.0
|
|
ln -sfv ../../lib/libc.so ${TARGET_DIR}/usr/bin/ldd
|
|
#
|
|
# Comment out this line if you want to save the libraries
|
|
rm -f ${TARGET_DIR}/usr/lib/libstdc++*
|
|
#
|