Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. include ${TOPDIR}/mk/package.mk
  12. include ${TOPDIR}/mk/kernel-vars.mk
  13. $(eval $(call PKG_template,KMOD_SANGAM_ATM,kmod-sangam-atm,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},kernel ${KERNEL_VERSION}-${KERNEL_RELEASE},${PKG_DESCR},${PKG_SECTION}))
  14. BUILD_STYLE:= manual
  15. INSTALL_STYLE:= manual
  16. do-build:
  17. $(MAKE) ${KERNEL_MAKE_OPTS} LDFLAGS="" SUBDIRS="${WRKBUILD}" modules
  18. do-install:
  19. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/etc/modules.d/
  20. echo "tiatm" > ${IDIR_KMOD_SANGAM_ATM}/etc/modules.d/70-sangam-atm
  21. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/lib/modules/${KERNEL_VERSION}/
  22. ${INSTALL_DATA} ${WRKBUILD}/tiatm.ko \
  23. ${IDIR_KMOD_SANGAM_ATM}/lib/modules/${KERNEL_VERSION}
  24. ${INSTALL_DIR} ${IDIR_KMOD_SANGAM_ATM}/lib/firmware
  25. ifeq (${ADK_PACKAGE_SANGAM_ATM_ANNEX_A},y)
  26. ${INSTALL_DATA} ${WRKBUILD}/ar0700mp.bin \
  27. ${IDIR_KMOD_SANGAM_ATM}/lib/firmware/ar0700xx.bin
  28. endif
  29. ifeq (${ADK_PACKAGE_SANGAM_ATM_ANNEX_B},y)
  30. ${INSTALL_DATA} ${WRKBUILD}/ar0700db.bin \
  31. ${IDIR_KMOD_SANGAM_ATM}/lib/firmware/ar0700xx.bin
  32. endif
  33. include ${TOPDIR}/mk/pkg-bottom.mk