# 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 += " \
    qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bb \
    qt5-layer:${LAYERDIR}/dynamic-layers/qt5-layer/*/*/*.bbappend \
    \
"

LAYERSERIES_COMPAT_riscv-layer = "warrior"

# risc-v does not get along with pie for reasons in so far not looked into
SECURITY_CFLAGS_riscv64 = ""
SECURITY_CFLAGS_pn-libgcc_riscv64 = ""
GCCPIE_riscv64 = ""
GLIBCPIE_riscv64 = ""
SECURITY_CFLAGS_riscv32 = ""
SECURITY_CFLAGS_pn-libgcc_riscv32 = ""
GCCPIE_riscv32 = ""
GLIBCPIE_riscv32 = ""
