1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME
:= brcm-bluetooth
9 PKG_DESCR
:= firmware for broadcom bluetooth chips
10 PKG_SECTION
:= sys
/firmware
15 include ${ADK_TOPDIR}/mk
/package.mk
17 $(eval
$(call PKG_template
,BRCM_BLUETOOTH
,brcm-bluetooth
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
21 INSTALL_STYLE
:= manual
24 ${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
25 -o
${WRKBUILD}/brcm_patchram
${WRKBUILD}/brcm_patchram.c
28 ${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/etc
/init.d
29 $(INSTALL_BIN
) .
/files
/hci
$(IDIR_BRCM_BLUETOOTH
)/etc
/init.d
/
30 ${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/lib
/firmware
/brcm
31 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3
)$(ADK_TARGET_SYSTEM_RASPBERRY_PI3P
),y
)
32 ${CP} ${WRKBUILD}/BCM43430A1.hcd
${IDIR_BRCM_BLUETOOTH}/lib
/firmware
34 ${CP} ${WRKBUILD}/*.hcd
${IDIR_BRCM_BLUETOOTH}/lib
/firmware
/brcm
35 ${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/sbin
36 ${INSTALL_BIN} ${WRKBUILD}/brcm_patchram \
37 ${IDIR_BRCM_BLUETOOTH}/sbin
/brcm_patchram
40 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk