Makefile 1.4 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:= sangam-atm DSL modem driver for TI AR7 boards
  9. PKG_SECTION:= kernel
  10. PKG_SITES:= http://openadk.org/distfiles/
  11. PKG_TARGET_DEPENDS:= ag241
  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_DESCR},${PKG_SECTION}))
  15. BUILD_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. do-build:
  18. $(MAKE) ${KERNEL_MAKE_OPTS} LDFLAGS="" SUBDIRS="${WRKBUILD}" modules
  19. do-install:
  20. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/etc/modules.d/
  21. echo "tiatm" > ${IDIR_KMOD_SANGAM_ATM}/etc/modules.d/70-sangam-atm
  22. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/lib/modules/${KERNEL_VERSION}/
  23. ${INSTALL_DATA} ${WRKBUILD}/tiatm.ko \
  24. ${IDIR_KMOD_SANGAM_ATM}/lib/modules/${KERNEL_VERSION}
  25. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/lib/firmware
  26. ifeq (${ADK_PACKAGE_SANGAM_ATM_ANNEX_A},y)
  27. ${INSTALL_DATA} ${WRKBUILD}/ar0700mp.bin \
  28. ${IDIR_KMOD_SANGAM_ATM}/lib/firmware/ar0700xx.bin
  29. endif
  30. ifeq (${ADK_PACKAGE_SANGAM_ATM_ANNEX_B},y)
  31. ${INSTALL_DATA} ${WRKBUILD}/ar0700db.bin \
  32. ${IDIR_KMOD_SANGAM_ATM}/lib/firmware/ar0700xx.bin
  33. endif
  34. include ${TOPDIR}/mk/pkg-bottom.mk