4a-hal-reference: Tweak platform HAL packaging 03/12003/1
authorScott Murray <scott.murray@konsulko.com>
Thu, 16 Nov 2017 05:52:52 +0000 (00:52 -0500)
committerScott Murray <scott.murray@konsulko.com>
Thu, 16 Nov 2017 05:52:52 +0000 (00:52 -0500)
Tweak HAL build and packaging to build and ship the Intel HDA HAL for all the
x86-64 platforms, and always build and ship the USB audio HAL.

Change-Id: I22ff805eadc087495d17654c8eebff3be028f6cd
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
meta-audio-4a-framework/recipes-multimedia/4a-hal-reference/4a-hal-reference_git.bb

index 4abcc94..d29343c 100644 (file)
@@ -15,10 +15,13 @@ S  = "${WORKDIR}/git"
 
 inherit afb-system-cmake
 
-EXTRA_OECMAKE += " -DHAL_USB_DEVICE=1"
+EXTRA_OECMAKE += "-DHAL_USB_DEVICE=1"
 
-#Select Here your HAL
-EXTRA_OECMAKE_m3ulcb += " -DHAL_RCAR-M3=1"
+# Select platform specific additional HAL(s)
+EXTRA_OECMAKE_append_x86-64 = " -DHAL_INTEL_HDA=1"
+# Mark as specific to M3
+PACKAGE_ARCH_m3ulcb = "${MACHINE_ARCH}"
+EXTRA_OECMAKE_append_m3ulcb = " -DHAL_RCAR-M3=1"
 
 FILES_${PN}-dev += "${INSTALL_PREFIX}/afb-aaaa/htdocs"
 FILES_${PN} += "${INSTALL_PREFIX}/afb-aaaa"