2003-10-06 10:06:02 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ltp-testsuite
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-05-10 00:58:59 +02:00
|
|
|
LTP_TESTSUITE_VERSION:=20070228
|
2005-08-10 14:50:47 +02:00
|
|
|
LTP_TESTSUITE_SOURCE:=ltp-full-$(LTP_TESTSUITE_VERSION).tgz
|
2005-06-09 14:15:00 +02:00
|
|
|
LTP_TESTSUITE_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ltp
|
2006-10-01 17:17:52 +02:00
|
|
|
LTP_TESTSUITE_CAT:=$(ZCAT)
|
2005-08-04 07:14:23 +02:00
|
|
|
LTP_TESTSUITE_ROOT:=$(TARGET_DIR)/root
|
2005-08-10 14:50:47 +02:00
|
|
|
LTP_TESTSUITE_DIR:=$(LTP_TESTSUITE_ROOT)/ltp-full-$(LTP_TESTSUITE_VERSION)
|
2003-10-06 10:06:02 +02:00
|
|
|
|
2006-07-05 07:14:24 +02:00
|
|
|
#
|
2007-07-06 06:21:22 +02:00
|
|
|
# Enable patches based upon different toolchain configuration options.
|
2006-07-05 07:14:24 +02:00
|
|
|
#
|
2007-08-22 14:35:41 +02:00
|
|
|
LTP_PATCHES:=ltp-testsuite-generate-needs-bash.patch \
|
|
|
|
ltp-testsuite-sh-is-not-C-code.patch \
|
2007-07-06 06:21:22 +02:00
|
|
|
ltp-testsuite.patch
|
2007-06-16 20:27:38 +02:00
|
|
|
|
2007-07-06 06:21:22 +02:00
|
|
|
ifeq ($(BR2_PTHREADS_NATIVE),y)
|
|
|
|
LTP_PATCHES+=ltp-testsuite-enable-openposix-for-nptl.patch
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_EXT_PTHREADS_NATIVE),y)
|
|
|
|
LTP_PATCHES+=ltp-testsuite-enable-openposix-for-nptl.patch
|
|
|
|
endif
|
|
|
|
ifneq ($(BR2_INET_IPV6),y)
|
|
|
|
LTP_PATCHES+=ltp-testsuite-disable-ipv6-tests.patch
|
2006-07-05 07:14:24 +02:00
|
|
|
endif
|
2003-10-06 10:06:02 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LTP_TESTSUITE_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LTP_TESTSUITE_SITE)/$(LTP_TESTSUITE_SOURCE)
|
|
|
|
|
|
|
|
ltp-testsuite-source: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE)
|
|
|
|
|
2005-08-08 09:53:10 +02:00
|
|
|
$(LTP_TESTSUITE_DIR)/Makefile: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE)
|
2007-08-21 13:25:30 +02:00
|
|
|
mkdir -p $(LTP_TESTSUITE_ROOT)
|
2005-08-04 07:14:23 +02:00
|
|
|
$(LTP_TESTSUITE_CAT) $(DL_DIR)/$(LTP_TESTSUITE_SOURCE) | tar -C $(LTP_TESTSUITE_ROOT) $(TAR_OPTIONS) -
|
2006-07-05 07:14:24 +02:00
|
|
|
toolchain/patch-kernel.sh $(LTP_TESTSUITE_DIR) package/ltp-testsuite/ $(LTP_PATCHES)
|
2007-06-06 20:10:48 +02:00
|
|
|
touch -c $@
|
2003-10-06 10:06:02 +02:00
|
|
|
|
2005-08-08 09:53:10 +02:00
|
|
|
$(LTP_TESTSUITE_DIR)/.compiled: $(LTP_TESTSUITE_DIR)/Makefile
|
|
|
|
$(MAKE1) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) \
|
2005-08-04 07:14:23 +02:00
|
|
|
-C $(LTP_TESTSUITE_DIR) all
|
2007-06-06 20:10:48 +02:00
|
|
|
touch $@
|
2003-10-06 10:06:02 +02:00
|
|
|
|
2005-08-08 09:53:10 +02:00
|
|
|
$(LTP_TESTSUITE_DIR)/.installed: $(LTP_TESTSUITE_DIR)/.compiled
|
2005-08-04 07:14:23 +02:00
|
|
|
# Use fakeroot to pretend to do 'make install' as root
|
2007-06-25 12:29:47 +02:00
|
|
|
echo '$(MAKE1) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) ' \
|
|
|
|
'-C $(LTP_TESTSUITE_DIR) install' \
|
2007-08-16 20:19:42 +02:00
|
|
|
> $(PROJECT_BUILD_DIR)/.fakeroot.ltp
|
2007-06-06 20:10:48 +02:00
|
|
|
touch $@
|
2003-10-06 10:06:02 +02:00
|
|
|
|
2005-08-08 09:53:10 +02:00
|
|
|
ltp-testsuite: uclibc host-fakeroot $(LTP_TESTSUITE_DIR)/.installed
|
2003-10-06 10:06:02 +02:00
|
|
|
|
2003-12-30 00:19:46 +01:00
|
|
|
ltp-testsuite-clean:
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(LTP_TESTSUITE_DIR) clean
|
2003-10-06 10:06:02 +02:00
|
|
|
|
2003-12-30 00:19:46 +01:00
|
|
|
ltp-testsuite-dirclean:
|
|
|
|
rm -rf $(LTP_TESTSUITE_DIR)
|
2003-10-06 10:06:02 +02:00
|
|
|
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LTP-TESTSUITE)),y)
|
|
|
|
TARGETS+=ltp-testsuite
|
|
|
|
endif
|