diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-12-13 17:27:43 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-13 22:10:04 +0100 |
commit | a72a670489547a3ca645ff7c3a0d9c3fb66eab51 (patch) | |
tree | 8defaeef40eeb90a573c431fd065ec75f97727d4 /package/ltp-testsuite/ltp-testsuite.mk | |
parent | ab64b95e4d1957992bcad7e66d3e331a84b1daed (diff) |
ltp-testsuite: bump version and use autotargets
Reworking ltp-testsuite is needed in order to get rid of some
thread-specific options that will be cleaned-up in the next commit.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/ltp-testsuite/ltp-testsuite.mk')
-rw-r--r-- | package/ltp-testsuite/ltp-testsuite.mk | 68 |
1 files changed, 4 insertions, 64 deletions
diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk index 7be12fd33..1a55c4117 100644 --- a/package/ltp-testsuite/ltp-testsuite.mk +++ b/package/ltp-testsuite/ltp-testsuite.mk @@ -3,68 +3,8 @@ # ltp-testsuite # ############################################################# -LTP_TESTSUITE_VERSION:=20090630 -LTP_TESTSUITE_SOURCE:=ltp-full-$(LTP_TESTSUITE_VERSION).tgz -LTP_TESTSUITE_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ltp -LTP_TESTSUITE_CAT:=$(ZCAT) -LTP_TESTSUITE_ROOT:=$(TARGET_DIR)/root -LTP_TESTSUITE_DIR:=$(LTP_TESTSUITE_ROOT)/ltp-full-$(LTP_TESTSUITE_VERSION) +LTP_TESTSUITE_VERSION = 20101031 +LTP_TESTSUITE_SOURCE = ltp-full-$(LTP_TESTSUITE_VERSION).bz2 +LTP_TESTSUITE_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ltp -# -# Enable patches based upon different toolchain configuration options. -# -LTP_PATCHES:=ltp-testsuite-generate-needs-bash.patch \ - ltp-testsuite-sh-is-not-C-code.patch \ - ltp-testsuite-sched-getaffinity.patch \ - ltp-testsuite-uclibc-syscalls.patch - -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 -endif - -$(DL_DIR)/$(LTP_TESTSUITE_SOURCE): - $(call DOWNLOAD,$(LTP_TESTSUITE_SITE),$(LTP_TESTSUITE_SOURCE)) - -ltp-testsuite-source: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE) - -$(LTP_TESTSUITE_DIR)/Makefile: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE) - mkdir -p $(LTP_TESTSUITE_ROOT) - $(LTP_TESTSUITE_CAT) $(DL_DIR)/$(LTP_TESTSUITE_SOURCE) | tar -C $(LTP_TESTSUITE_ROOT) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(LTP_TESTSUITE_DIR) package/ltp-testsuite/ $(LTP_PATCHES) - touch -c $@ - -$(LTP_TESTSUITE_DIR)/.compiled: $(LTP_TESTSUITE_DIR)/Makefile - $(MAKE1) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) \ - -C $(LTP_TESTSUITE_DIR) all - touch $@ - -$(LTP_TESTSUITE_DIR)/.installed: $(LTP_TESTSUITE_DIR)/.compiled - # Use fakeroot to pretend to do 'make install' as root - echo '$(MAKE1) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) ' \ - '-C $(LTP_TESTSUITE_DIR) install' \ - > $(BUILD_DIR)/.fakeroot.ltp - touch $@ - -ltp-testsuite: host-fakeroot $(LTP_TESTSUITE_DIR)/.installed - -ltp-testsuite-clean: - -$(MAKE) -C $(LTP_TESTSUITE_DIR) clean - -ltp-testsuite-dirclean: - rm -rf $(LTP_TESTSUITE_DIR) - - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_LTP-TESTSUITE),y) -TARGETS+=ltp-testsuite -endif +$(eval $(call AUTOTARGETS,package,ltp-testsuite)) |