1) So far I copied fsl-image-qt5 and I modified it as below
DESCRIPTION = "my image"
LICENSE = "MIT"
require claypaky-image-npe-gui.bb
inherit distro_features_check
export IMAGE_BASENAME = "myimage"
PACKAGECONFIG_append = "--disable-bluez"
DISTRO_FEATURES_remove = " 3g bluetooth irda x11 wayland bluez5"
QT5_IMAGE_INSTALL_append = "qtserialport"
QT5_IMAGE_INSTALL = ""
QT5_IMAGE_INSTALL_common = " \
packagegroup-qt5-core \
packagegroup-qt5-qtdeclarative \
packagegroup-qt5-qtdeclarative-qml \
"
QT5_IMAGE_INSTALL_mx6 = " \
${QT5_IMAGE_INSTALL_common} \
packagegroup-qt5-webkit \
"
IMAGE_INSTALL += " \
${QT5_IMAGE_INSTALL} \
"
2) I copied fsl-image-gui and I modified it as below.
DESCRIPTION = "My Image"
LICENSE = "MIT"
inherit core-image
# Add extra image features
EXTRA_IMAGE_FEATURES += " \
ssh-server-dropbear \
"
PACKAGE_ARCH = "${MACHINE_ARCH}"
# set mm image install specific to SOC
MM_IMAGE_INSTALL = ""
IMAGE_INSTALL += ""
export IMAGE_BASENAME = "myimage-gui"
3) I added MACHINE_FEATURES_remove = " alsa" to my machine .inc file
# Provides the i.MX6 my machine common settings
require conf/machine/include/imx-base.inc
require conf/machine/include/tune-cortexa9.inc
SERIAL_CONSOLE = "115200 ttymxc0"
MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k"
MACHINE_FEATURES_remove = " alsa"
4) Generating my .sdcard file the alsa dir under /usr/shar still installed..