@@ -11,10 +11,12 @@ SERIALCON="ttyAML0"
1111BOOT_LOGO=" desktop"
1212BOOT_FDT_FILE=" amlogic/meson-g12b-a311d-cainiao-cniot-core.dtb"
1313PACKAGE_LIST_BOARD=" alsa-ucm-conf" # Contain ALSA UCM top-level configuration file
14-
1514BOOTBRANCH_BOARD=" tag:v2025.04"
1615BOOTPATCHDIR=" v2025.04"
1716
17+ enable_extension " gxlimg"
18+ enable_extension " amlogic-fip-blobs"
19+
1820function post_family_config__use_repacked_fip() {
1921 declare -g UBOOT_TARGET_MAP=" u-boot.bin"
2022 unset write_uboot_platform
@@ -25,20 +27,22 @@ function post_family_config__use_repacked_fip() {
2527}
2628
2729function post_uboot_custom_postprocess__repack_vendor_fip_with_mainline_uboot() {
28- gxlimg_repack_fip_with_new_uboot " ${SRC}/cache/sources/amlogic-fip-blobs/cainiao-cniot-core/DDR.USB" g12b
30+ gxlimg_repack_fip_with_new_uboot \
31+ " ${SRC}/cache/sources/amlogic-fip-blobs/cainiao-cniot-core/DDR.USB" \
32+ g12b
2933}
3034
3135function post_family_tweaks_bsp__cainiao-cniot-core() {
3236 display_alert " ${BOARD}" " Installing ALSA UCM configuration files" " info"
3337
34- # Use ALSA UCM via GUI: Install a desktop environment such as GNOME, PipeWire, and WirePlumber.
35-
3638 # Use ALSA UCM via CLI: alsactl init && alsaucm set _verb " HiFi" set _enadev " HDMI" set _enadev " Speaker"
3739 # playback via HDMI: aplay -D plughw:cainiaocniotcor,0 /usr/share/sounds/alsa/Front_Center.wav
3840 # playback via internal speaker: aplay -D plughw:cainiaocniotcor,1 /usr/share/sounds/alsa/Front_Center.wav
3941
40- install -Dm644 " ${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core-HiFi.conf" " ${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core-HiFi.conf"
41- install -Dm644 " ${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core.conf" " ${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core.conf"
42+ install -Dm644 " ${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core-HiFi.conf" \
43+ " ${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core-HiFi.conf"
44+ install -Dm644 " ${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core.conf" \
45+ " ${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core.conf"
4246
4347 if [ ! -d " ${destination}/usr/share/alsa/ucm2/conf.d/axg-sound-card" ]; then
4448 mkdir -p " ${destination}/usr/share/alsa/ucm2/conf.d/axg-sound-card"
0 commit comments