Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= em28xx
  7. PKG_VERSION:= 20081206
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 8467a1b1d495fa712c8beb617ef5f5dd
  10. MASTER_SITES:= http://waldemar-brodkorb.de/openadk/distfiles/
  11. WRKDIST= ${WRKDIR}/${PKG_NAME}
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,KMOD_EM28XX,kmod-em28xx,${KERNEL_VERSION}+${PKG_VERSION}-${DEVICE}-${PKG_RELEASE},${ARCH},kernel (${KERNEL_VERSION}-${DEVICE}-${KERNEL_RELEASE})))
  14. CONFIGURE_STYLE:= manual
  15. BUILD_STYLE:= manual
  16. EM28XX_MAKEOPTS= -C ${WRKBUILD} \
  17. ARCH="${ARCH}" \
  18. CROSS_COMPILE="${TARGET_CROSS}" \
  19. TARGET="${HAL_TARGET}" \
  20. TOOLPREFIX="${KERNEL_CROSS}" \
  21. TOOLPATH="${KERNEL_CROSS}" \
  22. KERNELPATH="${LINUX_DIR}" \
  23. V=1
  24. do-build:
  25. ${MAKE} ${EM28XX_MAKEOPTS} all
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_KMOD_EM28XX}/etc/modules.d/
  28. ${INSTALL_DIR} ${IDIR_KMOD_EM28XX}/lib/modules/${KERNEL_VERSION}/
  29. ${CP} ${WRKBUILD}/*.ko \
  30. ${IDIR_KMOD_EM28XX}/lib/modules/${KERNEL_VERSION}/
  31. include ${TOPDIR}/mk/pkg-bottom.mk