2013-06-21 00:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# rt-tests
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-10 10:59:07 +01:00
|
|
|
RT_TESTS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git
|
2014-11-10 10:59:08 +01:00
|
|
|
RT_TESTS_VERSION = v0.89
|
2014-06-26 21:21:13 +02:00
|
|
|
RT_TESTS_LICENSE = GPLv2+
|
|
|
|
RT_TESTS_LICENSE_FILES = COPYING
|
2011-12-22 13:13:38 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
RT_TESTS_DEPENDENCIES = python
|
|
|
|
endif
|
|
|
|
|
2015-01-15 08:19:36 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y)
|
|
|
|
RT_TESTS_HAVE_NPTL=yes
|
|
|
|
else
|
2014-11-11 14:56:48 +01:00
|
|
|
RT_TESTS_HAVE_NPTL=no
|
|
|
|
endif
|
|
|
|
|
2011-12-22 13:13:38 +01:00
|
|
|
define RT_TESTS_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D) \
|
|
|
|
CC="$(TARGET_CC)" \
|
2014-11-11 14:56:48 +01:00
|
|
|
HAVE_NPTL=$(RT_TESTS_HAVE_NPTL) \
|
2011-12-22 13:13:38 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
prefix=/usr
|
|
|
|
endef
|
|
|
|
|
|
|
|
define RT_TESTS_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) -C $(@D) \
|
2014-11-11 14:56:48 +01:00
|
|
|
HAVE_NPTL=$(RT_TESTS_HAVE_NPTL) \
|
2011-12-22 13:13:38 +01:00
|
|
|
DESTDIR="$(TARGET_DIR)" \
|
|
|
|
prefix=/usr \
|
|
|
|
$(if $(BR2_PACKAGE_PYTHON),HASPYTHON=1 PYLIB=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/) \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|