#!/bin/sh

__BITBAKE_LAST_LINE=0

# Emit a useful diagnostic if something fails:
bb_sh_exit_handler() {
    ret=$?
    if [ "$ret" != 0 ]; then
        echo "WARNING: exit code $ret from a shell command."
    fi
    exit $ret
}

bb_bash_exit_handler() {
    ret=$?
    { set +x; } > /dev/null
    trap "" DEBUG
    if [ "$ret" != 0 ]; then
        echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'"

        echo "WARNING: Backtrace (BB generated script): "
        for i in $(seq 1 $((${#FUNCNAME[@]} - 1))); do
            if [ "$i" -eq 1 ]; then
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${__BITBAKE_LAST_LINE}"
            else
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${BASH_LINENO[$((i-1))]}"
            fi
        done
    fi
    exit $ret
}

bb_bash_debug_handler() {
    local line=${BASH_LINENO[0]}
    # For some reason the DEBUG trap trips with lineno=1 when scripts exit; ignore it
    if [ "$line" -eq 1 ]; then
        return
    fi

    # Track the line number of commands as they execute. This is so we can have access to the failing line number
    # in the EXIT trap. See http://gnu-bash.2382.n7.nabble.com/trap-echo-quot-trap-exit-on-LINENO-quot-EXIT-gt-wrong-linenumber-td3666.html
    if [ "${FUNCNAME[1]}" != "bb_bash_exit_handler" ]; then
        __BITBAKE_LAST_LINE=$line
    fi
}

case $BASH_VERSION in
"") trap 'bb_sh_exit_handler' 0
    set -e
    ;;
*)  trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0
    trap '{ bb_bash_debug_handler; } 2>/dev/null' DEBUG
    set -e
    shopt -s extdebug
    ;;
esac
export AR="aarch64-poky-linux-gcc-ar"
export AS="aarch64-poky-linux-as "
export BUILD_AR="ar"
export BUILD_AS="as "
export BUILD_CC="gcc "
export BUILD_CCLD="gcc "
export BUILD_CFLAGS="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_CPP="gcc  -E"
export BUILD_CPPFLAGS="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/include"
export BUILD_CXX="g++ "
export BUILD_CXXFLAGS="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_FC="gfortran "
export BUILD_LD="ld "
export BUILD_LDFLAGS="-L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/sim/yocto/scarthgap/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread"
export BUILD_NM="nm"
export BUILD_RANLIB="ranlib -D"
export BUILD_STRIP="strip"
export CC="aarch64-poky-linux-gcc  -mcpu=cortex-a72+crc -mbranch-protection=standard  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot -fuse-ld=bfd"
export CCLD="aarch64-poky-linux-gcc  -mcpu=cortex-a72+crc -mbranch-protection=standard  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot -fuse-ld=bfd"
export CC_FOR_BUILD="gcc "
export CFLAGS="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/include -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git=/usr/src/debug/glibc/2.39+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native= "
export CFLAGS_FOR_BUILD="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/include -O2 -pipe"
export CONFIG_SITE="/home/sim/yocto/scarthgap/poky/meta/site/endian-little /home/sim/yocto/scarthgap/poky/meta/site/arm-common /home/sim/yocto/scarthgap/poky/meta/site/arm-64 /home/sim/yocto/scarthgap/poky/meta/site/common-linux /home/sim/yocto/scarthgap/poky/meta/site/common-glibc /home/sim/yocto/scarthgap/poky/meta/site/common"
export CPP="aarch64-poky-linux-gcc -E --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot  -mcpu=cortex-a72+crc -mbranch-protection=standard "
export CPPFLAGS="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/include"
export CPPFLAGS_FOR_BUILD="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/include"
export CPP_FOR_BUILD="gcc  -E"
export CXX="aarch64-poky-linux-g++  -mcpu=cortex-a72+crc -mbranch-protection=standard  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot"
export CXXFLAGS="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/include -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git=/usr/src/debug/glibc/2.39+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native=  -fvisibility-inlines-hidden"
export CXXFLAGS_FOR_BUILD="-I/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/include -O2 -pipe"
export CXX_FOR_BUILD="g++ "
export FC="aarch64-poky-linux-gfortran  -mcpu=cortex-a72+crc -mbranch-protection=standard  --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot"
export GIT_CEILING_DIRECTORIES="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git:/home/sim/yocto/scarthgap/build/tmp"
export HOME="/home/sim"
export LC_ALL="en_US.UTF-8"
export LD="aarch64-poky-linux-ld --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot "
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git=/usr/src/debug/glibc/2.39+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux=/usr/src/debug/glibc/2.39+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native=  -Wl,-z,relro,-z,now -fuse-ld=bfd"
export LDFLAGS_FOR_BUILD="-L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/sim/yocto/scarthgap/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread"
export LD_FOR_BUILD="ld "
export LOGNAME="sim"
export MAKE="make"
export NM="aarch64-poky-linux-gcc-nm"
export OBJCOPY="aarch64-poky-linux-objcopy"
export OBJDUMP="aarch64-poky-linux-objdump"
export OMP_NUM_THREADS="8"
export PATH="/home/sim/yocto/scarthgap/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/sim/yocto/scarthgap/poky/scripts:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/bin/crossscripts:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/sbin:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/usr/bin:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/sbin:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot-native/bin:/home/sim/yocto/scarthgap/poky/bitbake/bin:/home/sim/yocto/scarthgap/build/tmp/hosttools"
export PERL_HASH_SEED="0"
export PKG_CONFIG_DIR="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export PKG_CONFIG_LIBDIR="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/lib/pkgconfig:/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot/usr/share/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot"
export PKG_CONFIG_SYSTEM_INCLUDE_PATH="/usr/include"
export PKG_CONFIG_SYSTEM_LIBRARY_PATH="/usr/lib:/usr/lib"
export PSEUDO_DISABLED="0"
export PSEUDO_IGNORE_PATHS="/usr/,/etc/,/usr/lib,/dev/,/run/,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/temp,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot,/home/sim/yocto/scarthgap/sstate-cache,/home/sim/yocto/scarthgap/build/tmp/stamps,/home/sim/yocto/scarthgap/build/tmp/sstate-control,/home/sim/yocto/scarthgap/build/tmp/buildstats,/home/sim/yocto/scarthgap/build/tmp/sysroots-components,/home/sim/yocto/scarthgap/build/tmp/pkgdata,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/deploy-,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/sstate-build-package_,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/sstate-install-package_,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/pkgdata-sysroot,/home/sim/yocto/scarthgap/build/tmp/deploy,/home/sim/yocto/scarthgap/build/cache,/home/sim/yocto/scarthgap/poky/scripts,/home/sim/yocto/scarthgap/poky/meta/files/common-licenses,/home/sim/yocto/scarthgap/poky/meta-openembedded/meta-multimedia/licenses,/home/sim/yocto/scarthgap/poky/meta-openembedded/meta-networking/licenses,/home/sim/yocto/scarthgap/poky/meta-openembedded/meta-oe/licenses,/home/sim/yocto/scarthgap/poky/meta-openembedded/meta-python/licenses,/home/sim/yocto/scarthgap/poky/meta-openembedded/meta-webserver/licenses,/home/sim/yocto/scarthgap/poky/meta-raspberrypi/files/custom-licenses,/home/sim/yocto/scarthgap/poky/meta-qt5/licenses,/home/sim/yocto/scarthgap/poky/meta/COPYING,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git,/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux"
export PSEUDO_LOCALSTATEDIR="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/pseudo/"
export PSEUDO_NOSYMLINKEXP="1"
export PSEUDO_PASSWD="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/recipe-sysroot:/home/sim/yocto/scarthgap/build/tmp/sysroots-components/x86_64/pseudo-native"
export PSEUDO_PREFIX="/home/sim/yocto/scarthgap/build/tmp/sysroots-components/x86_64/pseudo-native/usr"
export PYTHONHASHSEED="0"
export RANLIB="aarch64-poky-linux-gcc-ranlib"
export READELF="aarch64-poky-linux-readelf"
unset SHELL
export SOURCE_DATE_EPOCH="1777723072"
export STRINGS="aarch64-poky-linux-strings"
export STRIP="aarch64-poky-linux-strip"
export TZ="UTC"
export USER="sim"
export base_bindir="/usr/bin"
export base_libdir="/usr/lib"
export base_prefix=""
export base_sbindir="/usr/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 lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib"
export mandir="/usr/share/man"
export nonarch_base_libdir="/usr/lib"
export nonarch_libdir="/usr/lib"
export prefix="/usr"
export sbindir="/usr/sbin"
export servicedir="/srv"
export sharedstatedir="/com"
export sysconfdir="/etc"
export systemd_system_unitdir="/usr/lib/systemd/system"
export systemd_unitdir="/usr/lib/systemd"
export systemd_user_unitdir="/usr/lib/systemd/user"

# line: 70, file: /home/sim/yocto/scarthgap/poky/meta/recipes-core/glibc/glibc-package.inc
do_install() {
	oe_runmake install_root=/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image install
	install -Dm 0644 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/etc/ld.so.conf /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image//etc/ld.so.conf
	install -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/locale
	make -f /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/generate-supported.mk IN="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git/localedata/SUPPORTED" OUT="/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/SUPPORTED"
	# get rid of some broken files...
	for i in ; do
		sed -i "/$i/d" /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/SUPPORTED
	done
	rm -f /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/rpc
	rm -rf /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/share/zoneinfo
	rm -rf /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/libexec/getconf

	rm -f /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/localtime

	# remove empty glibc dir
	if [ -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/libexec ]; then
		rmdir --ignore-fail-on-non-empty /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/libexec
	fi

	oe_multilib_header bits/syscall.h bits/long-double.h bits/floatn.h bits/endianness.h bits/struct_rwlock.h bits/math-vector.h

	if [ -f /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/bin/mtrace ]; then
		sed -i -e '1s,#!.*perl,#! /usr/bin/env perl,' -e '2s,exec.*perl,exec /usr/bin/env perl,' /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/bin/mtrace
	fi
	# Info dir listing isn't interesting at this point so remove it if it exists.
	if [ -e "/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/share/info/dir" ]; then
		rm -f /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/share/info/dir
	fi

	install -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/init.d
	install -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/var/db/nscd
	install -m 0755 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git/nscd/nscd.init /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/init.d/nscd
	install -m 0755 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git/nscd/nscd.conf /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/nscd.conf
	install -m 0755 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/makedbs.sh /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/var/db
	sed -i "s%daemon%start-stop-daemon --start --exec%g" /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/init.d/nscd
	sed -i "s|\(enable-cache\t\+netgroup\t\+\)yes|\1no|" /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/nscd.conf

	install -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/systemd/system
	install -m 0644 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/git/nscd/nscd.service /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/systemd/system/

	# The dynamic loader will have been installed into
	# /usr/lib. However, if that isn't going to end up being
	# available in the ABI-mandated location, then a symlink must
	# be created.

	if [ -n "ld-linux-aarch64.so.1" -a ! -e "/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/ld-linux-aarch64.so.1" ]; then
		install -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib
		ln -s ./ld-linux-aarch64.so.1 \
				/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/ld-linux-aarch64.so.1
	fi
        ln -rs /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/libpthread.so.0 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/libpthread.so
        ln -rs /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/librt.so.1 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/librt.so
        if [ -n "" ]; then
                mv /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/bin/ld.so /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/bin/ld.so
        fi
	if true; then
		install -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/tmpfiles.d
		echo "d /run/nscd 755 root root -" \
			> /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/tmpfiles.d/nscd.conf
	fi

	if false; then
		install -d /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/default/volatiles
		echo "d root root 0755 /var/run/nscd none" \
			> /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/etc/default/volatiles/98_nscd
	fi

	do_install_armmultilib
}

# line: 159, file: /home/sim/yocto/scarthgap/poky/meta/recipes-core/glibc/glibc-package.inc
do_install_armmultilib() {
	oe_multilib_header bits/endian.h bits/fcntl.h bits/fenv.h bits/fp-fast.h bits/hwcap.h bits/ipc.h bits/link.h
	oe_multilib_header bits/local_lim.h bits/mman.h bits/msq.h bits/pthreadtypes.h bits/pthreadtypes-arch.h  bits/sem.h  bits/semaphore.h bits/setjmp.h
	oe_multilib_header bits/shm.h bits/sigstack.h bits/stat.h bits/statfs.h bits/typesizes.h
	oe_multilib_header bits/procfs-id.h bits/procfs.h bits/shmlba.h
	oe_multilib_header bits/struct_stat.h bits/pthread_stack_min.h
	oe_multilib_header bits/dl_find_object.h bits/rseq.h bits/timesize.h

	oe_multilib_header fpu_control.h gnu/lib-names.h gnu/stubs.h ieee754.h

	oe_multilib_header sys/elf.h sys/procfs.h sys/ptrace.h sys/ucontext.h sys/user.h
    gcc_version=$($CC -dumpversion)
    mkdir -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/gcc/aarch64-poky-linux/${gcc_version}/finclude
    mv /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/include/finclude/math-vector-fortran.h /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/lib/gcc/aarch64-poky-linux/${gcc_version}/finclude/
    rmdir --ignore-fail-on-non-empty /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image/usr/include/finclude
}

# line: 14, file: /home/sim/yocto/scarthgap/poky/meta/classes-recipe/multilib_header.bbclass
oe_multilib_header() {

	case linux in
	*-musl*)
		return
		;;
	*)
	esac
        # For MIPS: "n32" is a special case, which needs to be
        # distinct from both 64-bit and 32-bit.
        case aarch64 in
        mips*)  case "${MIPSPKGSFX_ABI}" in
                "-n32")
                       ident=n32
                       ;;
                *)
                       ident=64
                       ;;
                esac
                ;;
        *)      ident=64
        esac
	for each_header in "$@" ; do
	   if [ ! -f "/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image//usr/include/$each_header" ]; then
	      bberror "oe_multilib_header: Unable to find header $each_header."
	      continue
	   fi
	   stem=$(echo $each_header | sed 's#\.h$##')
	   # if mips64/n32 set ident to n32
	   mv /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image//usr/include/$each_header /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image//usr/include/${stem}-${ident}.h

	   sed -e "s#ENTER_HEADER_FILENAME_HERE#${stem}#g" /home/sim/yocto/scarthgap/poky/scripts/multilib_header_wrapper.h > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/image//usr/include/$each_header
	done
}

# line: 41, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/base.bbclass
oe_runmake() {
	oe_runmake_call "$@" || die "oe_runmake failed"
}

# line: 49, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/logging.bbclass
bberror() {
	if [ -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/temp/fifo.3124354 ] ; then
		printf "%b\0" "bberror $*" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/temp/fifo.3124354
	else
		echo "ERROR: $*"
	fi
}

# line: 32, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/base.bbclass
die() {
	bbfatal_log "$*"
}

# line: 36, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/base.bbclass
oe_runmake_call() {
	bbnote make   PARALLELMFLAGS="-j 8" SHELL=/bin/bash KSHELL=/bin/sh "$@"
	make   PARALLELMFLAGS="-j 8" SHELL=/bin/bash KSHELL=/bin/sh "$@"
}

# line: 72, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/logging.bbclass
bbfatal_log() {
	if [ -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/temp/fifo.3124354 ] ; then
		printf "%b\0" "bbfatal_log $*" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/temp/fifo.3124354
	else
		echo "ERROR: $*"
	fi
	exit 1
}

# line: 27, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/logging.bbclass
bbnote() {
	if [ -p /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/temp/fifo.3124354 ] ; then
		printf "%b\0" "bbnote $*" > /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/temp/fifo.3124354
	else
		echo "NOTE: $*"
	fi
}

cd '/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/glibc/2.39+git/build-aarch64-poky-linux'
do_install

# cleanup
ret=$?
trap '' 0
exit $ret
