#!/bin/sh # Emit a useful diagnostic if something fails: bb_exit_handler() { ret=$? case $ret in 0) ;; *) case $BASH_VERSION in "") echo "WARNING: exit code $ret from a shell command.";; *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit $ret from '$BASH_COMMAND'";; esac exit $ret esac } trap 'bb_exit_handler' 0 set -e export AR="aarch64-none-linux-gnu-gcc-ar" export AS="aarch64-none-linux-gnu-as " export BUILD_AR="ar" export BUILD_AS="as " export BUILD_CC="gcc " export BUILD_CCLD="gcc " export BUILD_CFLAGS="-isystem/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/include -O2 -pipe" export BUILD_CPP="gcc -E" export BUILD_CPPFLAGS="-isystem/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/include" export BUILD_CXX="g++ " export BUILD_CXXFLAGS="-isystem/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/include -O2 -pipe" export BUILD_FC="gfortran " export BUILD_LD="ld " export BUILD_LDFLAGS="-L/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/lib -L/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/lib -Wl,-O1" export BUILD_NM="nm" export BUILD_RANLIB="ranlib" export BUILD_STRIP="strip" export CC="aarch64-none-linux-gnu-gcc --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot" export CCLD="aarch64-none-linux-gnu-gcc --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot" export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0=/usr/src/debug/open62541/1.0.1+gitAUTOINC+e4309754fc-r0 -fdebug-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0=/usr/src/debug/open62541/1.0.1+gitAUTOINC+e4309754fc-r0 -fdebug-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot= -fdebug-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native= --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot" export CPP="aarch64-none-linux-gnu-gcc -E --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot " export CPPFLAGS="" export CXX="aarch64-none-linux-gnu-g++ --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot" export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0=/usr/src/debug/open62541/1.0.1+gitAUTOINC+e4309754fc-r0 -fdebug-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0=/usr/src/debug/open62541/1.0.1+gitAUTOINC+e4309754fc-r0 -fdebug-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot= -fdebug-prefix-map=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native= -fvisibility-inlines-hidden --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot" unset DISTRO export FC="aarch64-none-linux-gnu-gfortran --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot" export GIT_CEILING_DIRECTORIES="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0" export HOME="/home/ranjithkv" export LC_ALL="en_US.UTF-8" export LD="aarch64-none-linux-gnu-ld --sysroot=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot " export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" export LOGNAME="ranjithkv" unset MACHINE export MAKE="make" export NM="aarch64-none-linux-gnu-nm" export OBJCOPY="aarch64-none-linux-gnu-objcopy" export OBJDUMP="aarch64-none-linux-gnu-objdump" export PATH="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/bin/python3-native:/home/ranjithkv/tisdk/sources/oe-core/scripts:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/bin/aarch64-linux:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/bin/crossscripts:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/sbin:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/bin:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/sbin:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/bin:/home/ranjithkv/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin:/home/ranjithkv/tisdk/sources/bitbake/bin:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/hosttools" export PKG_CONFIG_DIR="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/lib/pkgconfig" export PKG_CONFIG_DISABLE_UNINSTALLED="yes" export PKG_CONFIG_LIBDIR="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/lib/pkgconfig" export PKG_CONFIG_PATH="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/lib/pkgconfig:/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/share/pkgconfig" export PKG_CONFIG_SYSROOT_DIR="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot" export PKG_CONFIG_SYSTEM_INCLUDE_PATH="/usr/include" export PKG_CONFIG_SYSTEM_LIBRARY_PATH="/lib:/usr/lib" export PSEUDO_DISABLED="1" export PSEUDO_UNLOAD="1" export PYTHON="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/bin/python3-native/python3" export PYTHONNOUSERSITE="1" export PYTHON_INCLUDE_DIR="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/include/python3.8" export PYTHON_LIBRARY="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/lib/libpython3.8.so" export RANLIB="aarch64-none-linux-gnu-gcc-ranlib" export READELF="aarch64-none-linux-gnu-readelf" unset SHELL export STAGING_INCDIR="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/include" export STAGING_LIBDIR="/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/lib" export STRINGS="aarch64-none-linux-gnu-strings" export STRIP="aarch64-none-linux-gnu-strip" unset TARGET_ARCH export TERM="screen.xterm-256color" export TZ="UTC" export USER="ranjithkv" export base_bindir="/bin" export base_libdir="/lib" export base_prefix="" export base_sbindir="/sbin" export bindir="/usr/bin" export datadir="/usr/share" export docdir="/usr/share/doc" export exec_prefix="/usr" export includedir="/usr/include" export infodir="/usr/share/info" export libdir="/usr/lib" export libexecdir="/usr/libexec" export localstatedir="/var" export mandir="/usr/share/man" export nonarch_base_libdir="/lib" export nonarch_libdir="/usr/lib" export oldincludedir="/usr/include" export prefix="/usr" export sbindir="/usr/sbin" export servicedir="/srv" export sharedstatedir="/com" export sysconfdir="/etc" export systemd_system_unitdir="/lib/systemd/system" export systemd_unitdir="/lib/systemd" export systemd_user_unitdir="/usr/lib/systemd/user" do_configure() { cmake_do_configure } cmake_do_configure() { if [ "${OECMAKE_BUILDPATH}" ]; then bbnote "cmake.bbclass no longer uses OECMAKE_BUILDPATH. The default behaviour is now out-of-tree builds with B=WORKDIR/build." fi if [ "/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/git" != "/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/build" ]; then rm -rf /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/build mkdir -p /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/build cd /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/build else find /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/build -name CMakeFiles -or -name Makefile -or -name cmake_install.cmake -or -name CMakeCache.txt -delete fi # Just like autotools cmake can use a site file to cache result that need generated binaries to run if [ -e /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/site-file.cmake ] ; then oecmake_sitefile="-C /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/site-file.cmake" else oecmake_sitefile= fi cmake \ -G 'Ninja' -DCMAKE_MAKE_PROGRAM=ninja \ $oecmake_sitefile \ /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/git \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_BINDIR:PATH=bin \ -DCMAKE_INSTALL_SBINDIR:PATH=sbin \ -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec \ -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \ -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=../com \ -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var \ -DCMAKE_INSTALL_LIBDIR:PATH=lib \ -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \ -DCMAKE_INSTALL_DATAROOTDIR:PATH=share \ -DPYTHON_EXECUTABLE:PATH=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/bin/python3-native/python3 \ -DPython_EXECUTABLE:PATH=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/bin/python3-native/python3 \ -DPython3_EXECUTABLE:PATH=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot-native/usr/bin/python3-native/python3 \ -DLIB_SUFFIX= \ -DCMAKE_INSTALL_SO_NO_EXE=0 \ -DCMAKE_TOOLCHAIN_FILE=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/toolchain.cmake \ -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_BUILD_EXAMPLES=1 -DUA_BUILD_SELFSIGNED_CERTIFICATE=1 -DUA_ENABLE_ENCRYPTION=1 -DMBEDTLS_FOLDER_LIBRARY=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/lib -DMBEDTLS_FOLDER_INCLUDE=/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/recipe-sysroot/usr/include -DUA_ENABLE_PUBSUB=1 -DUA_ENABLE_PUBSUB_DELTAFRAMES=1 -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=1 -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=1 -DUA_ENABLE_PUBSUB_ETH_UADP=1 -DBUILD_SHARED_LIBS=0 -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=0 -DUA_BUILD_UNIT_TESTS=0 \ -Wno-dev } bbnote() { if [ -p /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/temp/fifo.3610 ] ; then printf "%b\0" "bbnote $*" > /home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/temp/fifo.3610 else echo "NOTE: $*" fi } cd '/home/ranjithkv/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/open62541/1.0.1+gitAUTOINC+e4309754fc-r0/build' do_configure # cleanup ret=$? trap '' 0 exit $ret