Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= brcm-bluetooth
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= firmware for broadcom bluetooth chips
  8. PKG_SECTION:= sys/firmware
  9. NO_DISTFILES:= 1
  10. include ${ADK_TOPDIR}/mk/package.mk
  11. $(eval $(call PKG_template,BRCM_BLUETOOTH,brcm-bluetooth,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  12. CONFIG_STYLE:= manual
  13. BUILD_STYLE:= manual
  14. INSTALL_STYLE:= manual
  15. do-build:
  16. ${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
  17. -o ${WRKBUILD}/brcm_patchram ${WRKBUILD}/brcm_patchram.c
  18. do-install:
  19. ${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/lib/firmware/brcm
  20. ${CP} ${WRKBUILD}/*.hcd ${IDIR_BRCM_BLUETOOTH}/lib/firmware/brcm
  21. ${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/sbin
  22. ${INSTALL_BIN} ${WRKBUILD}/brcm_patchram \
  23. ${IDIR_BRCM_BLUETOOTH}/sbin/brcm_patchram
  24. include ${ADK_TOPDIR}/mk/pkg-bottom.mk