Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= 20170929
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= linux test project
  8. PKG_HASH:= 8cc9d5a2ba206f47e757b2203a5fa7a1ef95f8bf841bec1dd7878699dc27b258
  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. # disable lto
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. CONFIGURE_ARGS+= --with-open-posix-testsuite \
  22. --with-realtime-testsuite \
  23. --without-power-management-testsuite \
  24. --without-python \
  25. --without-perl \
  26. --without-expect
  27. pre-configure:
  28. PATH="$(HOST_PATH)" $(MAKE) -C $(WRKBUILD) autotools
  29. # bessel float and mallopt not implemented in uClibc-ng
  30. pre-build:
  31. -rm ${WRKBUILD}/testcases/misc/math/float/float_bessel.c
  32. -rm -rf ${WRKBUILD}/testcases/misc/math/float/bessel
  33. -rm -rf ${WRKBUILD}/testcases/network/{rpc,nfs*}
  34. -rm -rf ${WRKBUILD}/testcases/kernel/syscalls/profil
  35. -rm -rf ${WRKBUILD}/testcases/kernel/syscalls/mallopt
  36. ltp-install:
  37. $(INSTALL_DIR) $(IDIR_LTP)/opt/ltp/tmp
  38. $(CP) $(WRKINST)/usr/* $(IDIR_LTP)/opt/ltp
  39. include ${ADK_TOPDIR}/mk/pkg-bottom.mk