1 SUMMARY = "4A - Generic HAL"
2 DESCRIPTION = "Generic HAL in 4A (AGL Advanced Audio Agent)"
3 HOMEPAGE = "https://github.com/iotbzh/4a-hal-generic/"
7 LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
9 SRC_URI = "gitsm://github.com/iotbzh/4a-hal-generic;protocol=https;branch=${AGL_BRANCH}"
10 SRCREV = "9663aa7eb3c17eab8a91172d055f919f8acb61bf"
14 PV = "0.1+git${SRCPV}"
17 inherit afb-system-cmake
20 #FILES_${PN}-dev += "${INSTALL_PREFIX}/4a-hal/htdocs"
21 #FILES_${PN} += "${INSTALL_PREFIX}/afb-aaaa"
22 #FILES_${PN} += "${INSTALL_PREFIX}/lib"
24 # The package is machine-specific due to variable config content
25 PACKAGE_ARCH = "${MACHINE_ARCH}"
27 # when no specific HAL is defined, use a generic usb one
28 4A_HAL_LIST ??= "2ch-generic-usb"
30 # for specific machines, activate only known HALs
31 4A_HAL_LIST_m3ulcb ?= "rcar-m3 rcar-m3kf"
32 4A_HAL_LIST_h3ulcb ?= "rcar-m3 rcar-m3kf"
33 4A_HAL_LIST_intel-corei7-64 ?= "intel-minnow"
34 4A_HAL_LIST_qemux86-64 ?= "intel-qemu"
36 # Due to bug SPEC-1610, default hal for RPI3 is not active yet
37 # 4A_HAL_LIST_raspberrypi3 ?= "raspberry-pi-3"
39 ### TODO: this list should be completed for more machines
41 do_install_append () {
42 # get pkgdir - note that '4a-hal' comes from project ${project_git_repo}/conf.d/cmake/config.cmake
43 PKGDIR=${D}/${INSTALL_PREFIX}/4a-hal
45 # move all config files to a 'available' dir
46 mv $PKGDIR/etc $PKGDIR/etc.available
48 # then install only required hals files in the etc folder
50 for x in ${4A_HAL_LIST}; do
52 mv -v $PKGDIR/etc.available/${hal} $PKGDIR/etc/