AM67A: How to add your own layer in yocto-build

Part Number: AM67A

Tool/software:

I want to add my own application to the "mnt" directory in yocto-build, but after the build process, nothing was generated. Why is that?

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

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

BBFILE_COLLECTIONS += "meta-6k15"
BBFILE_PATTERN_meta-6k15 = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-6k15 = "100"
IMAGE_INSTALL:append = " example"

LAYERDEPENDS_meta-6k15 = "core"
LAYERSERIES_COMPAT_meta-6k15 = "scarthgap"
SUMMARY = "Example application for 6k15 platform"
DESCRIPTION = "Contains various example applications..."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://application"  

S = "${WORKDIR}"

do_install() {
    bbnote "Contents of ${S}/application:"
    ls -la ${S}/application/ || bbfatal "Source directory ${S}/application/ missing!"

    install -d ${D}/opt/example
    cp -rv ${S}/application/* ${D}/opt/example/ || bbfatal "Copy failed!"
}

FILES:${PN} = "/opt/example"

in bblayers.conf
# This template file was created by taking the oe-core/meta/conf/bblayers.conf
# file and removing the BBLAYERS section at the end.

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

# Layers configured by oe-core-setup script
BBLAYERS += " \
/opt/yocto/yocto/yocto-build/sources/meta-arago/meta-arago-distro \
/opt/yocto/yocto/yocto-build/sources/meta-arago/meta-arago-extras \
/opt/yocto/yocto/yocto-build/sources/meta-arago/meta-arago-demos \
/opt/yocto/yocto/yocto-build/sources/meta-arago/meta-arago-test \
/opt/yocto/yocto/yocto-build/sources/meta-qt5 \
/opt/yocto/yocto/yocto-build/sources/meta-virtualization \
/opt/yocto/yocto/yocto-build/sources/meta-openembedded/meta-networking \
/opt/yocto/yocto/yocto-build/sources/meta-openembedded/meta-python \
/opt/yocto/yocto/yocto-build/sources/meta-openembedded/meta-oe \
/opt/yocto/yocto/yocto-build/sources/meta-openembedded/meta-gnome \
/opt/yocto/yocto/yocto-build/sources/meta-openembedded/meta-filesystems \
/opt/yocto/yocto/yocto-build/sources/meta-openembedded/meta-multimedia \
/opt/yocto/yocto/yocto-build/sources/meta-ti/meta-ti-extras \
/opt/yocto/yocto/yocto-build/sources/meta-ti/meta-ti-bsp \
/opt/yocto/yocto/yocto-build/sources/meta-arm/meta-arm \
/opt/yocto/yocto/yocto-build/sources/meta-arm/meta-arm-toolchain \
/opt/yocto/yocto/yocto-build/sources/meta-clang \
/opt/yocto/yocto/yocto-build/sources/oe-core/meta \
/opt/yocto/yocto/yocto-build/sources/meta-tisdk \
/opt/yocto/yocto/yocto-build/sources/meta-edgeai \
/opt/yocto/yocto/yocto-build/sources/meta-6k15 \
"