Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 31/31] package/kodi: Add support for more archs
Date: Sat, 29 Apr 2017 13:44:04 +0200	[thread overview]
Message-ID: <20170429134404.0f6c1442@free-electrons.com> (raw)
In-Reply-To: <20170429083751.19625-32-bernd.kuhls@t-online.de>

Hello,

On Sat, 29 Apr 2017 10:37:51 +0200, Bernd Kuhls wrote:

>  package/kodi/0003-Add-support-for-sh4.patch     | 108 ++++++++++++++++++++++++
>  package/kodi/0004-Add-support-for-sparc.patch   |  91 ++++++++++++++++++++
>  package/kodi/0005-Add-support-for-arc.patch     |  91 ++++++++++++++++++++
>  package/kodi/0006-Add-support-for-xtensa.patch  |  91 ++++++++++++++++++++

Have these patches any chance of being merged upstream? Indeed, it's
very unlikely that Kodi will ever be used on any of those
architectures, so having to carry forever those patches doesn't seem
like a great thing. I would prefer to exclude those architectures in
Config.in.

>  	depends on BR2_USE_MMU # libcdio, and others
> -	default y if (BR2_arm || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \
> -		&& BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS \
> -		&& BR2_TOOLCHAIN_HAS_SYNC_8
> +# i386: needs sse (see upstream PR 10351)
> +	default y if BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS \
> +		&& !(BR2_i386 && !BR2_X86_CPU_HAS_SSE)

Kodi doesn't really support all architectures, since it contains
architecture-specific definitions in several files...


> +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
> +KODI_CONF_OPTS += -DCORE_SYSTEM_NAME=rbpi
> +KODI_DEPENDENCIES += rpi-userland
> +ifeq ($(BR2_arm1176jzf_s)$(BR2_cortex_a7)$(BR2_cortex_a53),y)
> +KODI_CONF_OPTS += -DWITH_CPU=$(BR2_GCC_TARGET_CPU)

Why only for Raspberry Pi ?

> +endif
> +else  # BR2_PACKAGE_RPI_USERLAND
> +ifeq ($(BR2_arceb)$(BR2_arcle),y)
> +KODI_CONF_OPTS += -DWITH_ARCH=arc -DWITH_CPU=arc
> +else ifeq ($(BR2_armeb),y)
>  KODI_CONF_OPTS += -DWITH_ARCH=arm -DWITH_CPU=arm
> -else ifeq ($(BR2_mips),y)

MIPS is handled here...

> -KODI_CONF_OPTS += -DWITH_ARCH=mips -DWITH_CPU=mips
> -else ifeq ($(BR2_i386),y)
> -KODI_CONF_OPTS += -DWITH_ARCH=i486-linux -DWITH_CPU=$(BR2_GCC_TARGET_ARCH)
> -else ifeq ($(BR2_x86_64),y)
> -KODI_CONF_OPTS += -DWITH_ARCH=x86_64-linux -DWITH_CPU=x86_64
> +else ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y)

... and here.

> +KODI_CONF_OPTS += \
> +	-DWITH_ARCH=mips$(if $(BR2_ARCH_IS_64),64) \
> +	-DWITH_CPU=mips$(if $(BR2_ARCH_IS_64),64)
> +else ifeq ($(BR2_powerpc)$(BR2_powerpc64le),y)
> +KODI_CONF_OPTS += \
> +	-DWITH_ARCH=powerpc$(if $(BR2_ARCH_IS_64),64) \
> +	-DWITH_CPU=powerpc$(if $(BR2_ARCH_IS_64),64)
> +else ifeq ($(BR2_powerpc64)$(BR2_sparc64),y)
> +KODI_CONF_OPTS += -DWITH_ARCH=$(BR2_ARCH) -DWITH_CPU=$(BR2_ARCH)
> +else ifeq ($(BR2_sh4),y)
> +KODI_CONF_OPTS += -DWITH_ARCH=$(BR2_ARCH) -DWITH_CPU=$(BR2_ARCH)
> +else ifeq ($(BR2_xtensa),y)
> +KODI_CONF_OPTS += -DWITH_ARCH=$(BR2_ARCH) -DWITH_CPU=$(BR2_ARCH)

You can refactor those in one single assignment.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2017-04-29 11:44 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-29  8:37 [Buildroot] [PATCH v7 00/31] odi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 01/31] package/kodi-visualisation-fountain: remove package Bernd Kuhls
2017-04-29  9:25   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 02/31] package/libplatform: bump version Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 03/31] package/kodi-platform: " Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 04/31] package/libcec: bump version to 4.0.2 Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 05/31] package/xmlstarlet: add host variant Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 06/31] package/kodi-jsonschemabuilder: new host package Bernd Kuhls
2017-04-29  9:32   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 07/31] package/kodi-texturepacker: " Bernd Kuhls
2017-04-29  9:37   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 08/31] package/kodi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-29  9:56   ` Thomas Petazzoni
2017-04-29 12:29     ` Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 09/31] package/kodi-pvr-*: mass version bump Bernd Kuhls
2017-04-29  9:57   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 10/31] package/kodi-pvr-mythtv: bump version to 4.15.0 Bernd Kuhls
2017-04-29  9:57   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 11/31] package/kodi-pvr-nextpvr: bump version to 2.4.11 Bernd Kuhls
2017-04-29  9:57   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 12/31] package/kodi-adsp-basic: bump version Bernd Kuhls
2017-04-29  9:58   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 13/31] package/kodi-adsp-freesurround: " Bernd Kuhls
2017-04-29  9:58   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 14/31] package/kodi-audioencoder-*: mass version bump Bernd Kuhls
2017-04-29 10:00   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 15/31] package/kodi-audiodecoder-*: " Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 16/31] package/kodi-audiodecoder-timidity: bump version Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 17/31] package/kodi-screensaver-*: mass version bump Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 18/31] package/kodi-screensaver-rsxs: bump version Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 19/31] package/kodi-visualisation-*: mass version bump Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 20/31] package/kodi-visualisation-waveforhue: bump version Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 21/31] package/kodi-visualisation-shadertoy: " Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 22/31] package/kodi: add optional support for bluez5 Bernd Kuhls
2017-04-29 10:03   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 23/31] package/kodi: libxslt is an optional package Bernd Kuhls
2017-04-29 10:04   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 24/31] package/kodi: add optional support for pulseaudio Bernd Kuhls
2017-04-29 10:05   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 25/31] package/kodi: add optional support for event clients Bernd Kuhls
2017-04-29 10:06   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 26/31] package/kodi: add optional support for lcms2 Bernd Kuhls
2017-04-29 10:06   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 27/31] package/kodi-inputstream-rtmp: new package Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 28/31] package/kodi-inputstream-adaptive: " Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 29/31] package/libsquish: Remove Kodi-specific patch Bernd Kuhls
2017-04-29 10:14   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 30/31] package/libsquish: bump version to 1.15 Bernd Kuhls
2017-04-29 10:14   ` Thomas Petazzoni
2017-04-29 13:44   ` Thomas Petazzoni
2017-04-29 13:46     ` Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 31/31] package/kodi: Add support for more archs Bernd Kuhls
2017-04-29 11:44   ` Thomas Petazzoni [this message]
2017-04-29 13:24     ` Bernd Kuhls
     [not found] ` <fe62a0d1-d466-2d4d-22c4-d5165882dc7b@t-online.de>
2017-04-29 12:42   ` [Buildroot] [PATCH v7 08/31] package/kodi: bump to version 17.1-Krypton Thomas Petazzoni
2017-04-29 13:06     ` Bernd Kuhls
     [not found] ` <5bfda10f-6383-2bf6-afa7-4fffcd2fc5cb@t-online.de>
2017-04-29 13:13   ` Thomas Petazzoni
     [not found] ` <8b5332b4-ff7b-7afc-a545-a5cef63612b4@t-online.de>
2017-04-29 13:41   ` [Buildroot] [PATCH v7 31/31] package/kodi: Add support for more archs Thomas Petazzoni

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=20170429134404.0f6c1442@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --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