Makefile 1.6 KB

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