# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have a recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
	${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "riscv-layer"
BBFILE_PATTERN_riscv-layer = "^${LAYERDIR}/"
BBFILE_PRIORITY_riscv-layer = "6"

BBFILES_DYNAMIC += " \
    virtualization-layer:${LAYERDIR}/dynamic-layers/virt-layer/*/*/*.bb \
    virtualization-layer:${LAYERDIR}/dynamic-layers/virt-layer/*/*/*.bbappend \
    openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/*/*/*.bb \
    openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/*/*/*.bbappend \
    \
"

LAYERSERIES_COMPAT_riscv-layer = "gatesgarth hardknott"

INSANE_SKIP_append_pn-cmocka_riscv64 = " textrel"
INSANE_SKIP_append_pn-eudev_riscv64 = " textrel"
INSANE_SKIP_append_pn-gdb_riscv64 = " textrel"
INSANE_SKIP_append_pn-perf_riscv64 = " textrel"
INSANE_SKIP_append_pn-qtbase_riscv64 = " textrel"
INSANE_SKIP_append_pn-qtbase-tools_riscv64 = " textrel"
INSANE_SKIP_append_pn-dracut_riscv64 = " textrel"
INSANE_SKIP_append_pn-qemu_riscv64 = " textrel"
INSANE_SKIP_append_pn-qemu-ptest_riscv64 = " textrel"
INSANE_SKIP_append_pn-rt-tests_riscv64 = " textrel"
INSANE_SKIP_append_pn-tvheadend_riscv64 = " textrel"
INSANE_SKIP_append_pn-tipcutils_riscv64 = " textrel"
INSANE_SKIP_append_pn-zabbix_riscv64 = " textrel"
INSANE_SKIP_append_pn-xfsdump_riscv64 = " textrel"
INSANE_SKIP_append_pn-capnproto_riscv64 = " textrel"
INSANE_SKIP_append_pn-monkey_riscv64 = " textrel"
INSANE_SKIP_append_pn-netdata_riscv64 = " textrel"
INSANE_SKIP_append_pn-ltp_riscv64 = " textrel"
INSANE_SKIP_append_pn-opensaf_riscv64 = " textrel"
INSANE_SKIP_append_pn-rdma-core_riscv64 = " textrel"
INSANE_SKIP_append_pn-util-linux_riscv64 = " textrel"
INSANE_SKIP_append_pn-doxygen_riscv64 = " textrel"
INSANE_SKIP_append_pn-poppler_riscv64 = " textrel"

INSANE_SKIP_append_pn-cmocka_riscv32 = " textrel"
INSANE_SKIP_append_pn-xfsdump_riscv32 = " textrel"
INSANE_SKIP_append_pn-zabbix_riscv32 = " textrel"
INSANE_SKIP_append_pn-netdata_riscv32 = " textrel"
INSANE_SKIP_append_pn-tipcutils_riscv32 = " textrel"
INSANE_SKIP_append_pn-tvheadend_riscv32 = " textrel"
INSANE_SKIP_append_pn-monkey_riscv32 = " textrel"
INSANE_SKIP_append_pn-eudev_riscv32 = " textrel"
INSANE_SKIP_append_pn-dracut_riscv32 = " textrel"
INSANE_SKIP_append_pn-rt-tests_riscv32 = " textrel"
INSANE_SKIP_append_pn-gdb_riscv32 = " textrel"
INSANE_SKIP_append_pn-capnproto_riscv32 = " textrel"
INSANE_SKIP_append_pn-rdma-core_riscv32 = " textrel"
INSANE_SKIP_append_pn-util-linux_riscv32 = " textrel"
INSANE_SKIP_append_pn-ltp_riscv32 = " textrel"
INSANE_SKIP_append_pn-poppler_riscv32 = " textrel"
INSANE_SKIP_append_pn-qtbase_riscv32 = " textrel"

# These recipe dont _yet_ build for rv32
COMPATIBLE_HOST_pn-openh264_riscv32 = "null"
COMPATIBLE_HOST_pn-liburing_riscv32 = "null"
COMPATIBLE_HOST_pn-libkcapi_riscv32 = "null"
COMPATIBLE_HOST_pn-tcf-agent_riscv32 = "null"
COMPATIBLE_HOST_pn-poco_riscv32 = "null"
COMPATIBLE_HOST_pn-doxygen_riscv32 = "null"
COMPATIBLE_HOST_pn-capnproto_riscv32 = "null"
COMPATIBLE_HOST_pn-qpdf_riscv32 = "null"
COMPATIBLE_HOST_pn-python3-numpy_riscv32 = "null"
COMPATIBLE_HOST_pn-python3-h5py_riscv32 = "null"
COMPATIBLE_HOST_pn-fluentbit_riscv32 = "null"
COMPATIBLE_HOST_pn-rocksdb_riscv32 = "null"
COMPATIBLE_HOST_pn-lttng-tools_riscv32 = "null"
COMPATIBLE_HOST_pn-diag_riscv32 = "null"
COMPATIBLE_HOST_pn-python3-matplotlib_riscv32 = "null"
COMPATIBLE_HOST_pn-opengl-es-cts_riscv32 = "null"
COMPATIBLE_HOST_pn-opensaf_riscv32 = "null"
COMPATIBLE_HOST_pn-python3-pandas_riscv32 = "null"
COMPATIBLE_HOST_pn-libgusb_riscv32 = "null"
COMPATIBLE_HOST_pn-gerbera_riscv32 = "null"
COMPATIBLE_HOST_pn-jack_riscv32 = "null"
COMPATIBLE_HOST_pn-directfb_riscv32 = "null"
COMPATIBLE_HOST_pn-telepathy-glib_riscv32 = "null"
# Enable LTP only for musl for now
COMPATIBLE_HOST_pn-ltp_libc-glibc_riscv32 = "null"
COMPATIBLE_HOST_pn-gnome-desktop3_riscv32 = "null"
COMPATIBLE_HOST_pn-libgweather_riscv32 = "null"
COMPATIBLE_HOST_pn-android-tools_riscv32 = "null"
COMPATIBLE_HOST_pn-perf_riscv32 = "null"
COMPATIBLE_HOST_pn-ibus_riscv32 = "null"
COMPATIBLE_HOST_pn-strace_riscv32 = "null"
COMPATIBLE_HOST_pn-grilo_riscv32 = "null"
COMPATIBLE_HOST_pn-klibc_riscv32 = "null"
COMPATIBLE_HOST_pn-tracker_riscv32 = "null"
COMPATIBLE_HOST_pn-rtorrent_riscv32 = "null"
COMPATIBLE_HOST_pn-botan_riscv32 = "null"
COMPATIBLE_HOST_pn-gnome-calculator_riscv32 = "null"
COMPATIBLE_HOST_pn-lttng-modules_riscv32 = "null"
COMPATIBLE_HOST_pn-projucer_riscv32 = "null"
COMPATIBLE_HOST_pn-gjs_riscv32 = "null"
COMPATIBLE_HOST_pn-qemu_riscv32 = "null"
COMPATIBLE_HOST_pn-samba_riscv32 = "null"
COMPATIBLE_HOST_pn-klibc-static-utils_riscv32 = "null"
COMPATIBLE_HOST_pn-pidgin-sipe_riscv32 = "null"
COMPATIBLE_HOST_pn-mariadb_riscv32 = "null"
COMPATIBLE_HOST_pn-vlc_riscv32 = "null"

