#!/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 ARCH="arm64"
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="-isystem/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_CPP="gcc  -E"
export BUILD_CPPFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/include"
export BUILD_CXX="g++ "
export BUILD_CXXFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot"
export CCLD="aarch64-poky-linux-gcc  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot"
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native= "
export CMDLINE_CONSOLE="console=ttyS0"
export CPP="aarch64-poky-linux-gcc -E --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security"
export CPPFLAGS=""
export CROSS_COMPILE="aarch64-poky-linux-"
export CXX="aarch64-poky-linux-g++  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot"
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native=  -fvisibility-inlines-hidden"
export FC="aarch64-poky-linux-gfortran  -mcpu=cortex-a72+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot"
export GIT_CEILING_DIRECTORIES="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git:/home/sim/yocto/scarthgap/build/tmp"
export HOME="/home/sim"
export KBUILD_BUILD_HOST="oe-host"
export KBUILD_BUILD_USER="oe-user"
export KBUILD_BUILD_VERSION="1"
export LC_ALL="en_US.UTF-8"
export LD="aarch64-poky-linux-ld --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native=  -Wl,-z,relro,-z,now"
export LOCALVERSION=""
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 OS="linux"
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/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot/usr/bin/crossscripts:/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/sbin:/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/bin:/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/sbin:/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export PKG_CONFIG_LIBDIR="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot/usr/lib/pkgconfig:/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot/usr/share/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/temp,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/deploy-,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/sstate-build-package_,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/sstate-install-package_,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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-shared/raspberrypi4-64/kernel-source,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build"
export PSEUDO_LOCALSTATEDIR="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/pseudo/"
export PSEUDO_NOSYMLINKEXP="1"
export PSEUDO_PASSWD="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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="1733479805"
export STRINGS="aarch64-poky-linux-strings"
export STRIP="aarch64-poky-linux-strip"
export TZ="UTC"
export UBOOT_ARCH="arm64"
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 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: 1, file: autogenerated
do_install() {
    # Export function set
    kernel_do_install
	install -d /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot
	for dtbf in           broadcom/bcm2711-rpi-4-b.dtb     broadcom/bcm2711-rpi-400.dtb     broadcom/bcm2711-rpi-cm4.dtb     broadcom/bcm2711-rpi-cm4s.dtb           overlays/overlay_map.dtb     overlays/at86rf233.dtbo     overlays/disable-bt.dtbo     overlays/disable-wifi.dtbo     overlays/dwc2.dtbo     overlays/gpio-ir.dtbo     overlays/gpio-ir-tx.dtbo     overlays/gpio-key.dtbo     overlays/gpio-poweroff.dtbo     overlays/gpio-shutdown.dtbo     overlays/hifiberry-amp.dtbo     overlays/hifiberry-amp100.dtbo     overlays/hifiberry-amp3.dtbo     overlays/hifiberry-amp4pro.dtbo     overlays/hifiberry-dac.dtbo     overlays/hifiberry-dacplus.dtbo     overlays/hifiberry-dacplusadc.dtbo     overlays/hifiberry-dacplusadcpro.dtbo     overlays/hifiberry-dacplusdsp.dtbo     overlays/hifiberry-dacplushd.dtbo     overlays/hifiberry-digi-pro.dtbo     overlays/hifiberry-digi.dtbo     overlays/justboom-both.dtbo     overlays/justboom-dac.dtbo     overlays/justboom-digi.dtbo     overlays/i2c-gpio.dtbo     overlays/i2c-rtc.dtbo     overlays/imx219.dtbo     overlays/imx477.dtbo     overlays/imx708.dtbo     overlays/iqaudio-dac.dtbo     overlays/iqaudio-dacplus.dtbo     overlays/mcp2515-can0.dtbo     overlays/mcp2515-can1.dtbo     overlays/mcp3008.dtbo     overlays/miniuart-bt.dtbo     overlays/pitft22.dtbo     overlays/pitft28-capacitive.dtbo     overlays/pitft28-resistive.dtbo     overlays/pitft35-resistive.dtbo     overlays/pps-gpio.dtbo     overlays/rpi-ft5406.dtbo     overlays/rpi-poe.dtbo     overlays/uart0.dtbo     overlays/uart0-pi5.dtbo     overlays/uart1.dtbo     overlays/uart1-pi5.dtbo     overlays/uart2.dtbo     overlays/uart2-pi5.dtbo     overlays/uart3.dtbo     overlays/uart3-pi5.dtbo     overlays/uart4.dtbo     overlays/uart4-pi5.dtbo     overlays/uart5.dtbo     overlays/vc4-fkms-v3d.dtbo     overlays/vc4-fkms-v3d-pi4.dtbo     overlays/vc4-kms-v3d.dtbo     overlays/vc4-kms-v3d-pi4.dtbo     overlays/vc4-kms-v3d-pi5.dtbo     overlays/vc4-kms-dsi-7inch.dtbo     overlays/vc4-kms-dsi-ili9881-7inch.dtbo     overlays/vc4-kms-dsi-ili9881-5inch.dtbo     overlays/rpi-backlight.dtbo     overlays/w1-gpio.dtbo     overlays/w1-gpio-pullup.dtbo     overlays/w1-gpio-pi5.dtbo     overlays/wm8960-soundcard.dtbo     overlays/bcm2712d0.dtbo          ; do
		dtb=`normalize_dtb "$dtbf"`
		dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
		if "true"; then
			dtb_ext=${dtb##*.}
			dtb_base_name=`basename $dtb .$dtb_ext`
			dtb=$dtb_base_name.$dtb_ext
		fi
		install -Dm 0644 $dtb_path /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot/$dtb
	done
	if [ -n "kernel-meta" ]; then
		rm -rf /home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source/kernel-meta
	fi
}

# line: 38, file: /home/sim/yocto/scarthgap/poky/meta/classes-recipe/kernel-devicetree.bbclass
get_real_dtb_path_in_kernel() {
	dtb="$1"
	dtb_path="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build/arch/arm64/boot/dts/$dtb"
	if [ ! -e "$dtb_path" ]; then
		dtb_path="/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build/arch/arm64/boot/$dtb"
	fi
	echo "$dtb_path"
}

# line: 458, file: /home/sim/yocto/scarthgap/poky/meta/classes-recipe/kernel.bbclass
kernel_do_install() {
	#
	# First install the modules
	#
	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
	if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
		oe_runmake DEPMOD=echo MODLIB=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/usr/lib/modules/6.6.63-v8 INSTALL_FW_PATH=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/usr/lib/firmware modules_install
		rm -f "/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/usr/lib/modules/6.6.63-v8/build"
		rm -f "/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/usr/lib/modules/6.6.63-v8/source"
		# Remove empty module directories to prevent QA issues
		[ -d "/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/usr/lib/modules/6.6.63-v8/kernel" ] && find "/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/usr/lib/modules/6.6.63-v8/kernel" -type d -empty -delete
	else
		bbnote "no modules to install"
	fi

	#
	# Install various kernel output (zImage, map file, config, module support files)
	#
	install -d /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot

	#
	# When including an initramfs bundle inside a FIT image, the fitImage is created after the install task
	# by do_assemble_fitimage_initramfs.
	# This happens after the generation of the initramfs bundle (done by do_bundle_initramfs).
	# So, at the level of the install task we should not try to install the fitImage. fitImage is still not
	# generated yet.
	# After the generation of the fitImage, the deploy task copies the fitImage from the build directory to
	# the deploy folder.
	#

	for imageType in Image ; do
		if [ $imageType != "fitImage" ] || [ "" != "1" ] ; then
			install -m 0644 arch/arm64/boot/$imageType /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot/$imageType-6.6.63-v8
		fi
	done

	install -m 0644 System.map /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot/System.map-6.6.63-v8
	install -m 0644 .config /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot/config-6.6.63-v8
	install -m 0644 vmlinux /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot/vmlinux-6.6.63-v8
	! [ -e Module.symvers ] || install -m 0644 Module.symvers /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/image/boot/Module.symvers-6.6.63-v8
}

# line: 29, file: /home/sim/yocto/scarthgap/poky/meta/classes-recipe/kernel-devicetree.bbclass
normalize_dtb() {
	dtb="$1"
	if echo $dtb | grep -q '/dts/'; then
		bbwarn "$dtb contains the full path to the the dts file, but only the dtb name should be used."
		dtb=`basename $dtb | sed 's,\.dts$,.dtb,g'`
	fi
	echo "$dtb"
}

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

# line: 38, file: /home/sim/yocto/scarthgap/poky/meta/classes-global/logging.bbclass
bbwarn() {
	if [ -p /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/temp/fifo.2777879 ] ; then
		printf "%b\0" "bbwarn $*" > /home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/temp/fifo.2777879
	else
		echo "WARNING: $*"
	fi
}

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

# 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 -j 8   CC="aarch64-poky-linux-gcc    -fuse-ld=bfd -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native=   -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/kernel  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/kernel  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-build-artifacts=/usr/src/kernel  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-build-artifacts=/usr/src/kernel   --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot" LD="aarch64-poky-linux-ld.bfd    --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot" OBJCOPY="aarch64-poky-linux-objcopy " STRIP="aarch64-poky-linux-strip"  HOSTCC="gcc " HOSTCFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/include -O2 -pipe" HOSTLDFLAGS="-L/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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" HOSTCPP="gcc  -E"  HOSTCXX="g++ " HOSTCXXFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/include -O2 -pipe"  HOSTPKG_CONFIG="pkg-config-native" PAHOLE=false "$@"
	make -j 8   CC="aarch64-poky-linux-gcc    -fuse-ld=bfd -fcanon-prefix-map  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build=/usr/src/debug/linux-raspberrypi/6.6.63+git  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot=  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native=   -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/kernel  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-source=/usr/src/kernel  -fdebug-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-build-artifacts=/usr/src/kernel  -fmacro-prefix-map=/home/sim/yocto/scarthgap/build/tmp/work-shared/raspberrypi4-64/kernel-build-artifacts=/usr/src/kernel   --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot" LD="aarch64-poky-linux-ld.bfd    --sysroot=/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot" OBJCOPY="aarch64-poky-linux-objcopy " STRIP="aarch64-poky-linux-strip"  HOSTCC="gcc " HOSTCFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/include -O2 -pipe" HOSTLDFLAGS="-L/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -L/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+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" HOSTCPP="gcc  -E"  HOSTCXX="g++ " HOSTCXXFLAGS="-isystem/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/recipe-sysroot-native/usr/include -O2 -pipe"  HOSTPKG_CONFIG="pkg-config-native" PAHOLE=false "$@"
}

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

cd '/home/sim/yocto/scarthgap/build/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/6.6.63+git/linux-raspberrypi4_64-standard-build'
do_install

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