SUMMARY = "FCB1010 Looper System Image"
DESCRIPTION = "Minimal embedded Linux system with GUI for audio looper"

require recipes-core/images/core-image-minimal.bb

# Distro features now configured in fcb-looper distribution

# gui-app

IMAGE_INSTALL += "\
    packagegroup-core-boot \
    weston \
    weston-init \
    liberation-fonts \
    systemd \
    openssh \
    ssh-keys \
    wifi-config \
    wpa-supplicant \
    iw \
    linux-firmware \
    packagegroup-base-wifi \
    pciutils \
    usbutils \
    linux-firmware-iwlwifi-6000g2b-6 \
    kbd \
    file \
    util-linux \
    keyboard-config \
    ${CORE_IMAGE_EXTRA_INSTALL} \
"

# WiFi kernel features - ensure iwlwifi is built
KERNEL_FEATURES:append = " cfg/80211.scc features/iwlwifi/iwlwifi.scc"

# Image features for development and access - removed read-only for debugging
IMAGE_FEATURES += "ssh-server-openssh empty-root-password allow-empty-password debug-tweaks"

# Size optimization
IMAGE_ROOTFS_SIZE ?= "1048576"
IMAGE_OVERHEAD_FACTOR = "1.1"

# Image formats
IMAGE_FSTYPES += "ext4 tar.bz2 wic"

# Custom WIC file without swap
WKS_FILE = "fcb-looper-noswap.wks"