Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= ltp
  5. PKG_VERSION:= 20200515
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= linux test project
  8. PKG_HASH:= 7ee3f36e7852814947dfd54f81c8d8810858d10667f01ca40eeac3b2a0548940
  9. PKG_DEPENDS:= bash mke2fs mkfs
  10. PKG_NEEDS:= threads
  11. PKG_SECTION:= base/tests
  12. PKG_URL:= http://linux-test-project.github.io
  13. PKG_SITES:= https://github.com/linux-test-project/ltp/releases/download/$(PKG_VERSION)/
  14. PKG_NOPARALLEL:= 1
  15. DISTFILES:= $(PKG_NAME)-full-$(PKG_VERSION).tar.xz
  16. WRKDIST= $(WRKDIR)/$(PKG_NAME)-full-$(PKG_VERSION)
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,LTP,ltp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIGURE_ARGS+= --with-open-posix-testsuite \
  20. --with-realtime-testsuite \
  21. --without-power-management-testsuite \
  22. --without-python \
  23. --without-perl \
  24. --without-expect
  25. pre-configure:
  26. PATH="$(HOST_PATH)" $(MAKE) -C $(WRKBUILD) autotools
  27. # bessel float and mallopt not implemented in uClibc-ng
  28. pre-build:
  29. -rm ${WRKBUILD}/testcases/misc/math/float/float_bessel.c
  30. -rm -rf ${WRKBUILD}/testcases/misc/math/float/bessel
  31. -rm -rf ${WRKBUILD}/testcases/network/{rpc,nfs*}
  32. -rm -rf ${WRKBUILD}/testcases/kernel/syscalls/profil
  33. -rm -rf ${WRKBUILD}/testcases/kernel/syscalls/mallopt
  34. ltp-install:
  35. $(INSTALL_DIR) $(IDIR_LTP)/opt/ltp/tmp
  36. $(CP) $(WRKINST)/usr/* $(IDIR_LTP)/opt/ltp
  37. include ${ADK_TOPDIR}/mk/pkg-bottom.mk