distribution/packages/kernel/linux-firmware/brcmfmac_sdio-firmware-rpi/package.mk

28 lines
967 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="brcmfmac_sdio-firmware-rpi"
PKG_VERSION="688531da4bcf802a814d9cb0c8b6d62e3b8a3327"
PKG_SHA256="51a33d23127300dffd6ac088f372b83ab862053f5e4dc7130676ebaaa824e626"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/LibreELEC/LibreELEC.tv"
2023-02-24 13:53:43 +00:00
PKG_URL="https://github.com/LibreELEC/${PKG_NAME}/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain kernel-firmware"
2022-02-05 14:23:32 +00:00
PKG_LONGDESC="Firmware for brcm bluetooth chips used on RaspberryPi devices."
PKG_TOOLCHAIN="manual"
makeinstall_target() {
2023-02-24 13:53:43 +00:00
DESTDIR=${INSTALL}/$(get_kernel_overlay_dir) ./install
2022-02-05 14:23:32 +00:00
}
post_makeinstall_target() {
# Install rpi btuart script to bring up Bluetooth
2023-02-24 13:53:43 +00:00
mkdir -p ${INSTALL}/usr/bin
cp -P ${PKG_DIR}/scripts/rpi-btuart ${INSTALL}/usr/bin
2022-02-05 14:23:32 +00:00
}
post_install() {
enable_service brcmfmac_sdio-firmware.service
}