1 #############################################################
5 #############################################################
6 LTP_TESTSUITE_VERSION
:=20080930
7 LTP_TESTSUITE_SOURCE
:=ltp-full-
$(LTP_TESTSUITE_VERSION
).tgz
8 LTP_TESTSUITE_SITE
:=http
://$(BR2_SOURCEFORGE_MIRROR
).dl.sourceforge.net
/sourceforge
/ltp
9 LTP_TESTSUITE_CAT
:=$(ZCAT
)
10 LTP_TESTSUITE_ROOT
:=$(TARGET_DIR
)/root
11 LTP_TESTSUITE_DIR
:=$(LTP_TESTSUITE_ROOT
)/ltp-full-
$(LTP_TESTSUITE_VERSION
)
14 # Enable patches based upon different toolchain configuration options.
17 ltp-testsuite-generate-needs-bash.patch \
19 ltp-testsuite.obsolete-bsd-signal.patch \
20 ltp-testsuite.susv3-legacy.patch \
21 ltp-testsuite.conflicting-lseek-decl.patch \
22 ltp-testsuite.ignore-missing-proc.patch \
25 ifeq ($(BR2_PTHREADS_NATIVE
),y
)
26 LTP_PATCHES
+=ltp-testsuite-enable-openposix-for-nptl.patch
28 ifeq ($(BR2_EXT_PTHREADS_NATIVE
),y
)
29 LTP_PATCHES
+=ltp-testsuite-enable-openposix-for-nptl.patch
31 ifeq ($(BR2_INET_IPV6
),)
32 LTP_PATCHES
+=ltp-testsuite-disable-ipv6-tests.patch
35 LTP_TESTSUITE_ENV
= IS_UCLIBC
=y \
36 UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
=$(BR2__UCLIBC_UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
) \
37 UCLIBC_SUSV3_LEGACY
=$(BR2__UCLIBC_UCLIBC_SUSV3_LEGACY
) \
38 UCLIBC_SV4_DEPRECATED
=$(BR2__UCLIBC_UCLIBC_SV4_DEPRECATED
)
40 $(DL_DIR
)/$(LTP_TESTSUITE_SOURCE
):
41 $(WGET
) -P
$(DL_DIR
) $(LTP_TESTSUITE_SITE
)/$(LTP_TESTSUITE_SOURCE
)
43 $(LTP_TESTSUITE_DIR
)/.configured
: $(DL_DIR
)/$(LTP_TESTSUITE_SOURCE
)
44 mkdir
-p
$(LTP_TESTSUITE_ROOT
)
45 $(LTP_TESTSUITE_CAT
) $(DL_DIR
)/$(LTP_TESTSUITE_SOURCE
) |
tar -C
$(LTP_TESTSUITE_ROOT
) $(TAR_OPTIONS
) -
46 toolchain
/patch-kernel.sh
$(LTP_TESTSUITE_DIR
) package
/ltp-testsuite
/ $(LTP_PATCHES
)
49 $(LTP_TESTSUITE_DIR
)/.compiled
: $(LTP_TESTSUITE_DIR
)/.configured
50 $(MAKE1
) $(TARGET_CONFIGURE_OPTS
) CROSS_COMPILER
=$(TARGET_CROSS
) \
51 $(LTP_TESTSUITE_ENV
) \
52 -C
$(LTP_TESTSUITE_DIR
) all
55 $(LTP_TESTSUITE_DIR
)/.installed
: $(LTP_TESTSUITE_DIR
)/.compiled
56 # Use fakeroot to pretend to do 'make install' as root
57 echo
'$(MAKE1) $(TARGET_CONFIGURE_OPTS) \
58 CROSS_COMPILER=$(TARGET_CROSS) \
59 $(LTP_TESTSUITE_ENV) \
60 -C $(LTP_TESTSUITE_DIR) install' \
61 > $(PROJECT_BUILD_DIR
)/.fakeroot.ltp
64 ltp-testsuite
: uclibc host-fakeroot
$(LTP_TESTSUITE_DIR
)/.installed
66 ltp-testsuite-source
: $(DL_DIR
)/$(LTP_TESTSUITE_SOURCE
)
69 -$(MAKE
) -C
$(LTP_TESTSUITE_DIR
) clean
70 rm -f
$(LTP_TESTSUITE_DIR
)/.compiled
72 ltp-testsuite-dirclean
:
73 rm -rf
$(LTP_TESTSUITE_DIR
)
76 #############################################################
78 # Toplevel Makefile options
80 #############################################################
81 ifeq ($(BR2_PACKAGE_LTP-TESTSUITE
),y
)
82 TARGETS
+=ltp-testsuite