1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= sangam-atm
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3843f3e670967fe81561770ac960c1cd
  8. PKG_DESCR:= DSL modem driver for TI AR7 boards
  9. PKG_SECTION:= kernel
  10. PKG_DEPENDS:= kmod-fw-loader kmod-atm
  11. PKG_SITES:= http://openadk.org/distfiles/
  12. include ${TOPDIR}/mk/package.mk
  13. include ${TOPDIR}/mk/kernel-vars.mk
  14. $(eval $(call PKG_template,KMOD_SANGAM_ATM,kmod-sangam-atm,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. do-build:
  19. ${KERNEL_MAKE_ENV} $(MAKE) ${KERNEL_MAKE_OPTS} LDFLAGS="" SUBDIRS="${WRKBUILD}" modules
  20. do-install:
  21. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/etc/modules.d/
  22. echo "tiatm" > ${IDIR_KMOD_SANGAM_ATM}/etc/modules.d/70-sangam-atm
  23. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/lib/modules/${KERNEL_VERSION}/
  24. ${INSTALL_DATA} ${WRKBUILD}/tiatm.ko \
  25. ${IDIR_KMOD_SANGAM_ATM}/lib/modules/${KERNEL_VERSION}
  26. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/lib/firmware
  27. ifeq (${ADK_PACKAGE_SANGAM_ATM_ANNEX_A},y)
  28. ${INSTALL_DATA} ${WRKBUILD}/ar0700mp.bin \
  29. ${IDIR_KMOD_SANGAM_ATM}/lib/firmware/ar0700xx.bin
  30. endif
  31. ifeq (${ADK_PACKAGE_SANGAM_ATM_ANNEX_B},y)
  32. ${INSTALL_DATA} ${WRKBUILD}/ar0700db.bin \
  33. ${IDIR_KMOD_SANGAM_ATM}/lib/firmware/ar0700xx.bin
  34. endif
  35. include ${TOPDIR}/mk/pkg-bottom.mk