# Check for LD_LIBRARY_PATH being set, which can break SDK and generally is a bad practice # http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80 # http://xahlee.info/UnixResource_dir/_/ldpath.html # Only disable this check if you are absolutely know what you are doing! if [ ! -z "${LD_LIBRARY_PATH:-}" ]; then echo "Your environment is misconfigured, you probably need to 'unset LD_LIBRARY_PATH'" echo "but please check why this was set in the first place and that it's safe to unset." echo "The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is set." echo "For more references see:" echo " http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80" echo " http://xahlee.info/UnixResource_dir/_/ldpath.html" return 1 fi export SDKTARGETSYSROOT=/media/pascal/data/potara/1.1.0/sysroots/cortexa72-cortexa53-crypto-ttcontrol-linux export PATH=/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/usr/bin:/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/usr/sbin:/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/bin:/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/sbin:/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/usr/bin/../x86_64-ttcontrol-linux/bin:/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/usr/bin/aarch64-ttcontrol-linux:/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/usr/bin/aarch64-ttcontrol-linux-musl:"$PATH" export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT export PKG_CONFIG_PATH=$SDKTARGETSYSROOT/usr/lib/pkgconfig:$SDKTARGETSYSROOT/usr/share/pkgconfig export CONFIG_SITE=/media/pascal/data/potara/1.1.0/site-config-cortexa72-cortexa53-crypto-ttcontrol-linux export OECORE_NATIVE_SYSROOT="/media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux" export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT" export OECORE_ACLOCAL_OPTS="-I /media/pascal/data/potara/1.1.0/sysroots/x86_64-ttcontrol-linux/usr/share/aclocal" export OECORE_BASELIB="lib" export OECORE_TARGET_ARCH="aarch64" export OECORE_TARGET_OS="linux" unset command_not_found_handle export CC="aarch64-ttcontrol-linux-gcc -mcpu=cortex-a72.cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=$SDKTARGETSYSROOT" export CXX="aarch64-ttcontrol-linux-g++ -mcpu=cortex-a72.cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=$SDKTARGETSYSROOT" export CPP="aarch64-ttcontrol-linux-gcc -E -mcpu=cortex-a72.cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=$SDKTARGETSYSROOT" export AS="aarch64-ttcontrol-linux-as " export LD="aarch64-ttcontrol-linux-ld --sysroot=$SDKTARGETSYSROOT" export GDB=aarch64-ttcontrol-linux-gdb export STRIP=aarch64-ttcontrol-linux-strip export RANLIB=aarch64-ttcontrol-linux-ranlib export OBJCOPY=aarch64-ttcontrol-linux-objcopy export OBJDUMP=aarch64-ttcontrol-linux-objdump export READELF=aarch64-ttcontrol-linux-readelf export AR=aarch64-ttcontrol-linux-ar export NM=aarch64-ttcontrol-linux-nm export M4=m4 export TARGET_PREFIX=aarch64-ttcontrol-linux- export CONFIGURE_FLAGS="--target=aarch64-ttcontrol-linux --host=aarch64-ttcontrol-linux --build=x86_64-linux --with-libtool-sysroot=$SDKTARGETSYSROOT" export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types " export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types " export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now" export CPPFLAGS="" export KCFLAGS="--sysroot=$SDKTARGETSYSROOT" export OECORE_DISTRO_VERSION="1.1.0" export OECORE_SDK_VERSION="1.1.0" export ARCH=arm64 export CROSS_COMPILE=aarch64-ttcontrol-linux- export OECORE_TUNE_CCARGS=" -mcpu=cortex-a72.cortex-a53+crc+crypto -mbranch-protection=standard" # Append environment subscripts if [ -d "$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then for envfile in $OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do . $envfile done fi if [ -d "$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then for envfile in $OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do . $envfile done fi