Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= 20240129
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= linux test project
  8. PKG_HASH:= c302f6b2ca09cbb7835f549777bdb9233fe31f7086d7ad8e65472a0804e3e025
  9. PKG_DEPENDS:= bash mke2fs mkfs shadow libtirpc
  10. PKG_BUILDDEP+= libtirpc
  11. PKG_KDEPENDS:= coredump bsd-process-acct ikconfig-proc
  12. PKG_KDEPENDS+= user-ns net-ns time-ns bpf-syscall blk-dev-loop watch-queue
  13. PKG_NEEDS:= threads
  14. PKG_SECTION:= base/tests
  15. PKG_URL:= http://linux-test-project.github.io
  16. PKG_SITES:= https://github.com/linux-test-project/ltp/releases/download/$(PKG_VERSION)/
  17. PKG_NOPARALLEL:= 1
  18. DISTFILES:= $(PKG_NAME)-full-$(PKG_VERSION).tar.xz
  19. WRKDIST= $(WRKDIR)/$(PKG_NAME)-full-$(PKG_VERSION)
  20. include $(ADK_TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,LTP,ltp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  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. --disable-metadata
  29. pre-configure:
  30. PATH="$(HOST_PATH)" $(MAKE) -C $(WRKBUILD) autotools
  31. ltp-install:
  32. $(INSTALL_DIR) $(IDIR_LTP)/opt/ltp/tmp
  33. $(CP) $(WRKINST)/usr/* $(IDIR_LTP)/opt/ltp
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk