Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= exmap
  5. PKG_VERSION:= 0.4.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 55aec784e214037e61400287a55b5426
  8. PKG_DESCR:= memory analysing tool
  9. PKG_SECTION:= utils
  10. PKG_SITES:= http://labs.o-hand.com/sources/exmap-console/
  11. DISTFILES:= ${PKG_NAME}-console-${PKG_VERSION}.tgz
  12. WRKDIST= ${WRKDIR}/${PKG_NAME}-console-${PKG_VERSION}
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,EXMAP,exmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,EXMAPD,exmapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,EXMAPSERVER,exmapserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,KMOD_EXMAP,kmod-exmap,${KERNEL_VERSION}+${PKG_VERSION}-${DEVICE}-${PKG_RELEASE},kernel ${KERNEL_VERSION}-${DEVICE}-${KERNEL_RELEASE},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_STYLE:= gnu
  19. CONFIGURE_ARGS+= --disable-doc
  20. CONFIGURE_ENV+= LIBS="-lncurses"
  21. BUILD_STYLE:= auto
  22. pre-build:
  23. KERNEL_PATH=${LINUX_DIR} \
  24. CROSS_COMPILE="${TARGET_CROSS}" \
  25. V=1 ARCH="${ARCH}" KERNELVERSION="2.6" \
  26. LDFLAGS="" \
  27. $(MAKE) -C ${WRKBUILD}/kernel
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_KMOD_EXMAP}/etc/modules.d/
  30. echo "exmap" > ${IDIR_KMOD_EXMAP}/etc/modules.d/90-exmap
  31. ${INSTALL_DIR} ${IDIR_KMOD_EXMAP}/lib/modules/${KERNEL_VERSION}/
  32. ${INSTALL_DATA} ${WRKBUILD}/kernel/exmap.ko \
  33. ${IDIR_KMOD_EXMAP}/lib/modules/${KERNEL_VERSION}
  34. ${INSTALL_DIR} ${IDIR_EXMAP}/usr/sbin
  35. ${INSTALL_BIN} ${WRKBUILD}/src/exmap ${IDIR_EXMAP}/usr/sbin
  36. ${INSTALL_DIR} ${IDIR_EXMAPD}/usr/sbin
  37. ${INSTALL_BIN} ${WRKBUILD}/src/exmapd ${IDIR_EXMAPD}/usr/sbin
  38. ${INSTALL_DIR} ${IDIR_EXMAPSERVER}/usr/sbin
  39. ${INSTALL_BIN} ${WRKBUILD}/src/exmapserver ${IDIR_EXMAPSERVER}/usr/sbin
  40. include ${TOPDIR}/mk/pkg-bottom.mk