Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/rt-tests: remove sched_setattr/sched_getattr API for SuperH arch
Date: Mon, 8 Aug 2016 07:42:45 +0300	[thread overview]
Message-ID: <20160808044245.GM3873@tarshish> (raw)
In-Reply-To: <1470607398-8644-1-git-send-email-romain.naour@gmail.com>

Hi Romain,

On Mon, Aug 08, 2016 at 12:03:17AM +0200, Romain Naour wrote:
> 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).

But these syscalls were added for 4.8-rc1 (commit 74bdaa611fa69). This 
solution prevents sched_{set,get}attr use even for future v4.8+ kernels.

baruch

> 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)" 		\

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

  parent reply	other threads:[~2016-08-08  4:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Baruch Siach [this message]
2016-08-09 10:34   ` [Buildroot] [PATCH 1/2] package/rt-tests: remove sched_setattr/sched_getattr API for SuperH arch Romain Naour
2016-08-09 18:30     ` Baruch Siach
2016-08-15 15:59       ` Romain Naour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160808044245.GM3873@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox