tibluetooth: Cleanup and use MACHINE_FEATURES

This commit is contained in:
Alexandre Bard 2019-07-23 11:29:40 +02:00
parent bacd0b86b1
commit 667fbe16d9
8 changed files with 8 additions and 36 deletions

View File

@ -14,5 +14,5 @@ KERNEL_IMAGETYPE = "fitImage"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-am335x-nmhw21"
MACHINE_FEATURES += "toby-l2"
MACHINE_FEATURES += "toby-l2 bluetooth tibluetooth"

View File

@ -16,3 +16,5 @@ KERNEL_DEVICETREE = "am335x-nrhw16.dtb \
KERNEL_IMAGETYPE = "fitImage"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-am335x-nrhw16-v2"
MACHINE_FEATURES += "bluetooth tibluetooth"

View File

@ -13,4 +13,4 @@ KERNEL_IMAGETYPE = "fitImage"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-am335x-nrhw20-v1"
MACHINE_FEATURES += "toby-l2"
MACHINE_FEATURES += "toby-l2 bluetooth tibluetooth"

View File

@ -36,7 +36,7 @@ UBOOT_SUFFIX = "bin"
UBOOT_CONFIG ??= "flash"
UBOOT_CONFIG[flash] = "imx8_nmhw23_defconfig"
MACHINE_FEATURES += "toby-l2"
MACHINE_FEATURES += "toby-l2 bluetooth"
ACCEPT_FSL_EULA = "1"

View File

@ -10,9 +10,7 @@ PR = "r2"
inherit systemd
SRC_URI = " \
file://tibluetooth-nbhw16.service \
file://tibluetooth-nrhw20.service \
file://tibluetooth-nmhw21.service \
file://tibluetooth.service \
file://TIInit_11.8.32.bts \
"
@ -27,39 +25,11 @@ FILES_${PN}_append = " \
${nonarch_base_libdir} \
"
install_nrhw16 () {
do_install () {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 tibluetooth-nbhw16.service ${D}${systemd_unitdir}/system/tibluetooth.service
install -m 0644 tibluetooth.service ${D}${systemd_unitdir}/system/tibluetooth.service
install -d ${D}${nonarch_base_libdir}/firmware/ti-connectivity
install -m 0644 TIInit_11.8.32.bts ${D}${nonarch_base_libdir}/firmware/ti-connectivity/
}
do_install_am335x-nrhw16 () {
install_nrhw16
}
install_nrhw20 () {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 tibluetooth-nrhw20.service ${D}${systemd_unitdir}/system/tibluetooth.service
install -d ${D}${nonarch_base_libdir}/firmware/ti-connectivity
install -m 0644 TIInit_11.8.32.bts ${D}${nonarch_base_libdir}/firmware/ti-connectivity/
}
do_install_am335x-nrhw20 () {
install_nrhw20
}
install_nmhw21 () {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 tibluetooth-nmhw21.service ${D}${systemd_unitdir}/system/tibluetooth.service
install -d ${D}${nonarch_base_libdir}/firmware/ti-connectivity
install -m 0644 TIInit_11.8.32.bts ${D}${nonarch_base_libdir}/firmware/ti-connectivity/
}
do_install_am335x-nmhw21 () {
install_nmhw21
}