libunwind: update to 1.8.1
[openadk.git] / package / brcm-bluetooth / Makefile
blobae455818ce61d67131cfeb69810a8ac6dd808f9d
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
7 PKG_VERSION:= 1.0
8 PKG_RELEASE:= 3
9 PKG_DESCR:= firmware for broadcom bluetooth chips
10 PKG_SECTION:= sys/firmware
11 PKG_DEPENDS:= bluez
13 NO_DISTFILES:= 1
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}))
19 CONFIG_STYLE:= manual
20 BUILD_STYLE:= manual
21 INSTALL_STYLE:= manual
23 do-build:
24 ${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
25 -o ${WRKBUILD}/brcm_patchram ${WRKBUILD}/brcm_patchram.c
27 do-install:
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
33 else
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
38 endif
40 include ${ADK_TOPDIR}/mk/pkg-bottom.mk