From patchwork Mon Apr 24 21:32:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 754482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wBfnT5Tm7z9ryT for ; Tue, 25 Apr 2017 07:37:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1034B30CB1; Mon, 24 Apr 2017 21:37:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pwRYdDjo4+Qd; Mon, 24 Apr 2017 21:37:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6CA7330D03; Mon, 24 Apr 2017 21:34:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 6CB031BFE5F for ; Mon, 24 Apr 2017 21:32:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5FCD330C87 for ; Mon, 24 Apr 2017 21:32:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ehyykoy-aE6K for ; Mon, 24 Apr 2017 21:32:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) by silver.osuosl.org (Postfix) with ESMTPS id 5D04730CBE for ; Mon, 24 Apr 2017 21:32:34 +0000 (UTC) Received: from fwd37.aul.t-online.de (fwd37.aul.t-online.de [172.20.27.137]) by mailout06.t-online.de (Postfix) with SMTP id EB1DB41CC2D6 for ; Mon, 24 Apr 2017 23:32:32 +0200 (CEST) Received: from fli4l.lan.fli4l (VOcq5iZXrhrPDGLR4GnMJyG3V6P93-voj0WMrC9yOyltPpLzjpEUzVmRkCi9-fYwk-@[79.228.25.70]) by fwd37.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1d2lap-0l0XMu0; Mon, 24 Apr 2017 23:32:23 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:44768 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.89) (envelope-from ) id 1d2lao-0002qM-7r for buildroot@buildroot.org; Mon, 24 Apr 2017 23:32:22 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Mon, 24 Apr 2017 23:32:06 +0200 Message-Id: <20170424213206.26247-32-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170424213206.26247-1-bernd.kuhls@t-online.de> References: <20170424213206.26247-1-bernd.kuhls@t-online.de> X-ID: VOcq5iZXrhrPDGLR4GnMJyG3V6P93-voj0WMrC9yOyltPpLzjpEUzVmRkCi9-fYwk- X-TOI-MSGID: dee8af6c-dcb6-4b63-a206-5e8b09a4e4e3 Subject: [Buildroot] [PATCH v6 31/31] package/kodi: Add support for more archs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" For the autoconf-based build system it was necessary to allow each supported architecture separatly: https://github.com/xbmc/xbmc/blob/Krypton/m4/xbmc_arch.m4 The CMake build system supports more archs which are added by this commit. Signed-off-by: Bernd Kuhls --- package/kodi/Config.in | 9 ++++++++- package/kodi/kodi.mk | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/package/kodi/Config.in b/package/kodi/Config.in index a5fc940a2b..1f56874077 100644 --- a/package/kodi/Config.in +++ b/package/kodi/Config.in @@ -1,7 +1,14 @@ config BR2_PACKAGE_KODI_ARCH_SUPPORTS bool depends on BR2_USE_MMU # libcdio, and others - default y if (BR2_arm || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \ + default y if ( \ + BR2_aarch64 || BR2_aarch64_be || \ + BR2_arcle || BR2_arceb || \ + BR2_arm || BR2_armeb || \ + BR2_mips || BR2_mips64 || \ + BR2_mipsel || BR2_mips64el || \ + BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ + BR2_i386 || BR2_x86_64) \ && BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS \ && BR2_TOOLCHAIN_HAS_SYNC_8 diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk index 245b8bfbe6..455d38d97e 100644 --- a/package/kodi/kodi.mk +++ b/package/kodi/kodi.mk @@ -73,10 +73,16 @@ KODI_CONF_OPTS += \ -DDEPENDS_PATH=$(@D) \ -DWITH_TEXTUREPACKER=$(HOST_DIR)/usr/bin/TexturePacker -ifeq ($(BR2_arm),y) +ifeq ($(BR2_aarch64),y) +KODI_CONF_OPTS += -DWITH_ARCH=aarch64 -DWITH_CPU=aarch64 +else ifeq ($(BR2_arm)$(BR2_armeb),y) KODI_CONF_OPTS += -DWITH_ARCH=arm -DWITH_CPU=arm else ifeq ($(BR2_mips),y) KODI_CONF_OPTS += -DWITH_ARCH=mips -DWITH_CPU=mips +else ifeq ($(BR2_mips64el),y) +KODI_CONF_OPTS += -DWITH_ARCH=mips64 -DWITH_CPU=mips64 +else ifeq ($(BR2_powerpc64)$(BR2_powerpc64le),y) +KODI_CONF_OPTS += -DWITH_ARCH=powerpc64 -DWITH_CPU=powerpc64 else ifeq ($(BR2_i386),y) KODI_CONF_OPTS += -DWITH_ARCH=i486-linux -DWITH_CPU=$(BR2_GCC_TARGET_ARCH) else ifeq ($(BR2_x86_64),y)