kumquat-buildroot/package/rt-tests/rt-tests.mk
Baruch Siach 7e6c5ff781 rt-tests: fix build of NPTL dependent tests
Commit 143fe5b443 (rt-tests: allow building subset of tests with non-NPTL
toolchains) disabled build of NPTL dependent tests unconditionally. Fix this.

[Thomas:
 - fix typo in commit title.
 - reverse condition, to use positive logic.]

Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Reported-by: "Williams Jr., Ernest L." <ernesto@slac.stanford.edu>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Tested-by: Alexey Brodkin <abrodkin@synpsys.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-15 09:39:56 +01:00

40 lines
973 B
Makefile

################################################################################
#
# rt-tests
#
################################################################################
RT_TESTS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git
RT_TESTS_VERSION = v0.89
RT_TESTS_LICENSE = GPLv2+
RT_TESTS_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_PYTHON),y)
RT_TESTS_DEPENDENCIES = python
endif
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y)
RT_TESTS_HAVE_NPTL=yes
else
RT_TESTS_HAVE_NPTL=no
endif
define RT_TESTS_BUILD_CMDS
$(MAKE) -C $(@D) \
CC="$(TARGET_CC)" \
HAVE_NPTL=$(RT_TESTS_HAVE_NPTL) \
CFLAGS="$(TARGET_CFLAGS)" \
prefix=/usr
endef
define RT_TESTS_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) \
HAVE_NPTL=$(RT_TESTS_HAVE_NPTL) \
DESTDIR="$(TARGET_DIR)" \
prefix=/usr \
$(if $(BR2_PACKAGE_PYTHON),HASPYTHON=1 PYLIB=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/) \
install
endef
$(eval $(generic-package))