Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/rt-tests: remove sched_setattr/sched_getattr API for SuperH arch
@ 2016-08-07 22:03 Romain Naour
  2016-08-07 22:03 ` [Buildroot] [PATCH 2/2] package/rt-tests: remove dependency on headers >= 3.14 Romain Naour
  2016-08-08  4:42 ` [Buildroot] [PATCH 1/2] package/rt-tests: remove sched_setattr/sched_getattr API for SuperH arch Baruch Siach
  0 siblings, 2 replies; 6+ messages in thread
From: Romain Naour @ 2016-08-07 22:03 UTC (permalink / raw)
  To: buildroot

This commit remove rt-sched.o from librttest and pi_stress test program
only for SuperH arch which doesn't have __NR_sched_setattr and
__NR_sched_getattr syscalls defined.

Patch [1] adding these syscalls has not been merged in upstream kernel
(4.7).

Fixes:
http://autobuild.buildroot.net/results/67fc16366717f34df492683a14ecd23376e23110

[1] http://www.spinics.net/lists/linux-sh/msg41990.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/rt-tests/rt-tests.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/package/rt-tests/rt-tests.mk b/package/rt-tests/rt-tests.mk
index 19f1021..1433106 100644
--- a/package/rt-tests/rt-tests.mk
+++ b/package/rt-tests/rt-tests.mk
@@ -14,6 +14,16 @@ ifeq ($(BR2_PACKAGE_PYTHON),y)
 RT_TESTS_DEPENDENCIES = python
 endif
 
+# Deadline scheduler syscalls are not defined on SuperH.
+# Remove pi_stress which depends on deadline scheduler syscalls.
+ifeq ($(BR2_sh),y)
+define RT_TESTS_REMOVE_RT_SCHED_API
+	$(SED) "s/rt-sched.o//" $(@D)/Makefile
+	$(SED) "s/pi_stress.c//" $(@D)/Makefile
+endef
+endif
+RT_TESTS_POST_PATCH_HOOKS += RT_TESTS_REMOVE_RT_SCHED_API
+
 define RT_TESTS_BUILD_CMDS
 	$(MAKE) -C $(@D) 			\
 		CC="$(TARGET_CC)" 		\
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-15 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-07 22:03 [Buildroot] [PATCH 1/2] package/rt-tests: remove sched_setattr/sched_getattr API for SuperH arch Romain Naour
2016-08-07 22:03 ` [Buildroot] [PATCH 2/2] package/rt-tests: remove dependency on headers >= 3.14 Romain Naour
2016-08-08  4:42 ` [Buildroot] [PATCH 1/2] package/rt-tests: remove sched_setattr/sched_getattr API for SuperH arch Baruch Siach
2016-08-09 10:34   ` Romain Naour
2016-08-09 18:30     ` Baruch Siach
2016-08-15 15:59       ` Romain Naour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox