summaryrefslogtreecommitdiff
path: root/package/ltp/Makefile
blob: d2d2358a0b017da95a4ab2eaeac22bca330b5a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		ltp
PKG_VERSION:=		20240930
PKG_RELEASE:=		1
PKG_DESCR:=		linux test project
PKG_HASH:=		3e9e806405aa602e2d21d221d885fd4914ff2da23eb8bba3d0f0f468bdf60238
PKG_DEPENDS:=		bash mke2fs mkfs shadow libtirpc libaio
PKG_DEPENDS+=		kmod dosfstools
PKG_BUILDDEP+=		libtirpc libaio
PKG_KDEPENDS:=		coredump bsd-process-acct ikconfig-proc cgroups
PKG_KDEPENDS+=		user-ns net-ns time-ns bpf-syscall blk-dev-loop watch-queue
PKG_NEEDS:=		threads
PKG_SECTION:=		base/tests
PKG_URL:=		http://linux-test-project.github.io
PKG_SITES:=		https://github.com/linux-test-project/ltp/releases/download/$(PKG_VERSION)/
PKG_NOPARALLEL:=	1

DISTFILES:=		$(PKG_NAME)-full-$(PKG_VERSION).tar.xz

WRKDIST=		$(WRKDIR)/$(PKG_NAME)-full-$(PKG_VERSION)

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,LTP,ltp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	--with-open-posix-testsuite \
			--with-realtime-testsuite \
			--without-power-management-testsuite \
			--without-python \
			--without-perl \
			--without-expect \
			--disable-metadata

pre-configure:
	PATH="$(HOST_PATH)" $(MAKE) -C $(WRKBUILD) autotools

ltp-install:
	$(INSTALL_DIR) $(IDIR_LTP)/opt/ltp/tmp
	$(CP) $(WRKINST)/usr/* $(IDIR_LTP)/opt/ltp

include ${ADK_TOPDIR}/mk/pkg-bottom.mk