Makefile 1.5 KB

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