From patchwork Fri Jun 22 00:33:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Kogut X-Patchwork-Id: 933008 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oF/CIsZL"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BfhF4K0vz9s3C for ; Fri, 22 Jun 2018 10:34:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 27A2488F2C; Fri, 22 Jun 2018 00:34:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BveMzTztcDtB; Fri, 22 Jun 2018 00:33:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BB7EA88F38; Fri, 22 Jun 2018 00:33:59 +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 6DAEC1C292E for ; Fri, 22 Jun 2018 00:33:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 68E52228A0 for ; Fri, 22 Jun 2018 00:33:58 +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 q8xZP2hb3asw for ; Fri, 22 Jun 2018 00:33:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by silver.osuosl.org (Postfix) with ESMTPS id B27772289F for ; Fri, 22 Jun 2018 00:33:57 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id w8-v6so2156520pgp.7 for ; Thu, 21 Jun 2018 17:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gMEybonmWq1k++Q3VfHseN7WD6SYcyEQ0OfXeKDTdqE=; b=oF/CIsZLbY5G4eSnJVNhiaPHSU/mNNDr8fRNBxuqrnKpftXcN48jzJrnVhbCyS/YwV 2Xt0THf1BoXWToWnyir2qYTwbtqBcIVwhJ2C9hQ8YxlYqR0Eca1b5T/+EMAGJMdSpJtO 0yTG/e2v+tc/RuKDivBK4JxQQwKO/yCAf1yu9UnhIESsH4HuOT5l0B3fBRKvnOgm7kfU pSU/FBWWyM0zwdbLWZ3Z9qa9/8E3irXH4yEIVZRy6cUWucJYjcj+0gz4Dcfceo2vvzB/ KgxWSc9oUeeMBpKwxs+twqifSIygluPgV4zrmtFuy3DZOeZRkMIP5UzqmudmSHnSQXmx p1Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gMEybonmWq1k++Q3VfHseN7WD6SYcyEQ0OfXeKDTdqE=; b=SaEehjkWq6PhRRrlvhF/7/Iqjk+xA3DMvNmTvga03MKl+i++OD9b5IY5mnKO1FwJN8 si0RBxHEgznEybHLYsnnQJprkQhI90bGvEHELUsJD4ulHKg5GbatzJAM0TKzHona4z0G jMe9ogFBlxILOgdo8krCR3Nih8k4/tBebk00J1erWb4Guz76WwiNKY/b05izqWS99wWK DvLO0noKsyzxY8bcT/tcZqPDzQ+ncUal7L4fkj1t7uq1f7Uy/zgNsmJTMSBLrUkZ3/Nh Hga8xK85pjOWpv2GrRPOBIN+yKgf/3fvnSUHrQCpQnHMkocalj0I1LAv9LUY29JQC8lh xh0A== X-Gm-Message-State: APt69E0KxqQ+ZzERO+hEnklMw5NIa741021DqQhyUC9pHMc1wK1JOUmi q9/k41Fuvq0hRJxuHUtPMqI+lJ+DrfA= X-Google-Smtp-Source: ADUXVKKgGbhj2UsmDxIPNrfl59WqZijF0wkxpC3VLEiTy1OudJzbzJNlx6t/NW5xzpLRNBKfpClAMA== X-Received: by 2002:a62:418b:: with SMTP id g11-v6mr29635131pfd.51.1529627637041; Thu, 21 Jun 2018 17:33:57 -0700 (PDT) Received: from JAKWS.YakimaSteel.local ([162.251.69.147]) by smtp.gmail.com with ESMTPSA id n76-v6sm14590974pfg.98.2018.06.21.17.33.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:33:56 -0700 (PDT) From: Joseph Kogut To: buildroot@buildroot.org Date: Thu, 21 Jun 2018 17:33:35 -0700 Message-Id: <20180622003340.10859-2-joseph.kogut@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622003340.10859-1-joseph.kogut@gmail.com> References: <20180622003340.10859-1-joseph.kogut@gmail.com> Subject: [Buildroot] [RFC PATCH v5 1/6] at-spi2-core: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Valentin Korenblit , Joseph Kogut , Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Joseph Kogut --- DEVELOPERS | 1 + package/Config.in | 1 + package/at-spi2-core/Config.in | 24 ++++++++++++++++++++++++ package/at-spi2-core/at-spi2-core.hash | 3 +++ package/at-spi2-core/at-spi2-core.mk | 16 ++++++++++++++++ 5 files changed, 45 insertions(+) create mode 100644 package/at-spi2-core/Config.in create mode 100644 package/at-spi2-core/at-spi2-core.hash create mode 100644 package/at-spi2-core/at-spi2-core.mk diff --git a/DEVELOPERS b/DEVELOPERS index d22ac527fa..b721b3592a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -974,6 +974,7 @@ F: board/qemu/ppc64le-pseries/ F: configs/qemu_ppc64le_pseries_defconfig N: Joseph Kogut +F: package/at-spi2-core/ F: package/gconf/ F: package/libnss/ F: package/python-cython/ diff --git a/package/Config.in b/package/Config.in index a5ecfecbf9..56e6b2f2bd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1130,6 +1130,7 @@ endmenu menu "Graphics" source "package/assimp/Config.in" + source "package/at-spi2-core/Config.in" source "package/atk/Config.in" source "package/atkmm/Config.in" source "package/bullet/Config.in" diff --git a/package/at-spi2-core/Config.in b/package/at-spi2-core/Config.in new file mode 100644 index 0000000000..43110e0bf4 --- /dev/null +++ b/package/at-spi2-core/Config.in @@ -0,0 +1,24 @@ +config BR2_PACKAGE_AT_SPI2_CORE + bool "at-spi2-core" + depends on BR2_PACKAGE_XORG7 # xlib-libxtst + depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_XLIB_LIBXTST + help + The At-Spi2 Core package is a part of the GNOME + Accessibility Project. It provides a Service Provider + Interface for the Assistive Technologies available on the + GNOME platform and a library against which applications + can be linked. + + https://wiki.gnome.org/Accessibility + +comment "at-spi2-core needs a toolchain w/ wchar, threads" + depends on BR2_USE_MMU + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + +comment "at-spi2-core depends on X.org" + depends on !BR2_PACKAGE_XORG7 diff --git a/package/at-spi2-core/at-spi2-core.hash b/package/at-spi2-core/at-spi2-core.hash new file mode 100644 index 0000000000..9c96da312b --- /dev/null +++ b/package/at-spi2-core/at-spi2-core.hash @@ -0,0 +1,3 @@ +# locally calculated +sha256 42a2487ab11ce43c288e73b2668ef8b1ab40a0e2b4f94e80fca04ad27b6f1c87 at-spi2-core-2.28.0.tar.xz +sha256 c6105b34ab6829ff5c70eba234f40053215fa9f8383ced271b0e370a1923624b COPYING diff --git a/package/at-spi2-core/at-spi2-core.mk b/package/at-spi2-core/at-spi2-core.mk new file mode 100644 index 0000000000..243c9192be --- /dev/null +++ b/package/at-spi2-core/at-spi2-core.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# at-spi2-core +# +################################################################################ + +AT_SPI2_CORE_VERSION_MAJOR = 2.28 +AT_SPI2_CORE_VERSION = $(AT_SPI2_CORE_VERSION_MAJOR).0 +AT_SPI2_CORE_SOURCE = at-spi2-core-$(AT_SPI2_CORE_VERSION).tar.xz +AT_SPI2_CORE_SITE = http://ftp.gnome.org/pub/gnome/sources/at-spi2-core/$(AT_SPI2_CORE_VERSION_MAJOR) +AT_SPI2_CORE_LICENSE = LGPL-2.0+ +AT_SPI2_CORE_LICENSE_FILES = COPYING +AT_SPI2_CORE_INSTALL_STAGING = YES +AT_SPI2_CORE_DEPENDENCIES = host-meson host-pkgconf dbus libglib2 xlib_libXtst + +$(eval $(meson-package)) From patchwork Fri Jun 22 00:33:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Kogut X-Patchwork-Id: 933013 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Dmo0nz5c"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BfhP5vPzz9s4v for ; Fri, 22 Jun 2018 10:34:13 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DEC8A888A5; Fri, 22 Jun 2018 00:34:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hq0vcDg4iSPX; Fri, 22 Jun 2018 00:34:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 37E08888AD; Fri, 22 Jun 2018 00:34:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 373961C292E for ; Fri, 22 Jun 2018 00:34:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 273F888F46 for ; Fri, 22 Jun 2018 00:34:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pDaklSeDPilT for ; Fri, 22 Jun 2018 00:33:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f44.google.com (mail-pl0-f44.google.com [209.85.160.44]) by whitealder.osuosl.org (Postfix) with ESMTPS id C6A1D85D72 for ; Fri, 22 Jun 2018 00:33:58 +0000 (UTC) Received: by mail-pl0-f44.google.com with SMTP id 6-v6so2556054plb.0 for ; Thu, 21 Jun 2018 17:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aAPhCN8xUtGlYY4CM2A3IM4HtSXQ02g/N/2vEovmgEE=; b=Dmo0nz5cJI+dSWMZwuP+A8fAlFQ362qQJ8s6ScGNsksDlQQ2PUVFA0zfBbYsRPll9a Pmo2sEIP2gy7s9sn54WgwEhdIa3afJ1HKt3x5au4iDCCBNxkp7/eJggu2BNlmOUUz36H G6j9qRxdc2OymQBwnYPu+u/6fKAtS5ZIT7uupgdwLRb9qsHjc++Aae26n/GfLokNu466 OS4N678vg6c5DBV7THU7zr0OexnN1aZWuvtepI17+ZzREMLy4KBHYZ8C1gypppoolnaa gk8a1DQ/GbYak5TNnM9bu7pg8mIMPX0n6IR8G58eeWrcnoD4fwGlekj51XFXMuKTXnrb BMQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aAPhCN8xUtGlYY4CM2A3IM4HtSXQ02g/N/2vEovmgEE=; b=CiZn2MdljfqEmeXbBC1DAwJ2FRzV9mDuax++luYyRza3VsIT40x5AGEXLvWcjJH4EU +5gNtQHa0zP9W4144we9y440ELPfBjv1jDSAOSOj7r6m8yA4Gso6VVS1TCdxuQMUMD86 MXVW/v2A4BLybXCu+HnoBgCqmxqt0pvc0zImZlh9RYqVo3yriOMsuGURXP2qJ0wjErDM 3M+3kE9YXfM/bUZ3Ec4931oVCLpEC1tW2IpATBNY4PUh1fMB3He5Lb3TMwzpWj+uxq1k CAO5VdgGUqgoEOgwKPixATKR/3F/YDsNiGWB+wUpelcw//3bHh3bbih7xMBPWqdIkpnq H3Ew== X-Gm-Message-State: APt69E3x/Ky5hmzs5lLQvSk57qpxi77BIZfoD+ueInmhHO0Ggt01ZI/1 omfuKoRvW/OLDbcp41BeaBI3NuS5ojQ= X-Google-Smtp-Source: ADUXVKK7S3A0Df7+jOpPmwPEI+b01Yt5bL29Lv6+AW7dc5qUZ8IceYM5Mwv7Qt3/T0QB7BibC98ZFQ== X-Received: by 2002:a17:902:8d98:: with SMTP id v24-v6mr30794800plo.250.1529627638148; Thu, 21 Jun 2018 17:33:58 -0700 (PDT) Received: from JAKWS.YakimaSteel.local ([162.251.69.147]) by smtp.gmail.com with ESMTPSA id n76-v6sm14590974pfg.98.2018.06.21.17.33.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:33:57 -0700 (PDT) From: Joseph Kogut To: buildroot@buildroot.org Date: Thu, 21 Jun 2018 17:33:36 -0700 Message-Id: <20180622003340.10859-3-joseph.kogut@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622003340.10859-1-joseph.kogut@gmail.com> References: <20180622003340.10859-1-joseph.kogut@gmail.com> Subject: [Buildroot] [RFC PATCH v5 2/6] at-spi2-atk: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Valentin Korenblit , Joseph Kogut , Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Joseph Kogut --- DEVELOPERS | 1 + package/Config.in | 1 + package/at-spi2-atk/Config.in | 21 +++++++++++++++++++++ package/at-spi2-atk/at-spi2-atk.hash | 3 +++ package/at-spi2-atk/at-spi2-atk.mk | 17 +++++++++++++++++ 5 files changed, 43 insertions(+) create mode 100644 package/at-spi2-atk/Config.in create mode 100644 package/at-spi2-atk/at-spi2-atk.hash create mode 100644 package/at-spi2-atk/at-spi2-atk.mk diff --git a/DEVELOPERS b/DEVELOPERS index b721b3592a..9116db39cb 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -974,6 +974,7 @@ F: board/qemu/ppc64le-pseries/ F: configs/qemu_ppc64le_pseries_defconfig N: Joseph Kogut +F: package/at-spi2-atk/ F: package/at-spi2-core/ F: package/gconf/ F: package/libnss/ diff --git a/package/Config.in b/package/Config.in index 56e6b2f2bd..d18b542cc5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1130,6 +1130,7 @@ endmenu menu "Graphics" source "package/assimp/Config.in" + source "package/at-spi2-atk/Config.in" source "package/at-spi2-core/Config.in" source "package/atk/Config.in" source "package/atkmm/Config.in" diff --git a/package/at-spi2-atk/Config.in b/package/at-spi2-atk/Config.in new file mode 100644 index 0000000000..599913c7df --- /dev/null +++ b/package/at-spi2-atk/Config.in @@ -0,0 +1,21 @@ +config BR2_PACKAGE_AT_SPI2_ATK + bool "at-spi2-atk" + depends on BR2_PACKAGE_XORG7 # at-spi2-core + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_ATK + select BR2_PACKAGE_AT_SPI2_CORE + select BR2_PACKAGE_LIBGLIB2 + help + The At-Spi2 Atk package contains a library that bridges + ATK to At-Spi2 D-Bus service. + + https://www.freedesktop.org/wiki/Accessibility/AT-SPI2/ + +comment "at-spi2-atk needs a toolchain w/ wchar, threads" + depends on BR2_USE_MMU + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + +comment "at-spi2-atk depends on X.org" + depends on !BR2_PACKAGE_XORG7 diff --git a/package/at-spi2-atk/at-spi2-atk.hash b/package/at-spi2-atk/at-spi2-atk.hash new file mode 100644 index 0000000000..77c8f68e47 --- /dev/null +++ b/package/at-spi2-atk/at-spi2-atk.hash @@ -0,0 +1,3 @@ +# locally calculated +sha256 61891f0abae1689f6617a963105a3f1dcdab5970c4a36ded9c79a7a544b16a6e at-spi2-atk-2.26.2.tar.xz +sha256 c6105b34ab6829ff5c70eba234f40053215fa9f8383ced271b0e370a1923624b COPYING diff --git a/package/at-spi2-atk/at-spi2-atk.mk b/package/at-spi2-atk/at-spi2-atk.mk new file mode 100644 index 0000000000..0e9b39e8b8 --- /dev/null +++ b/package/at-spi2-atk/at-spi2-atk.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# at-spi2-atk +# +################################################################################ + +AT_SPI2_ATK_VERSION_MAJOR = 2.26 +AT_SPI2_ATK_VERSION = $(AT_SPI2_ATK_VERSION_MAJOR).2 +AT_SPI2_ATK_SOURCE = at-spi2-atk-$(AT_SPI2_ATK_VERSION).tar.xz +AT_SPI2_ATK_SITE = http://ftp.gnome.org/pub/gnome/sources/at-spi2-atk/$(AT_SPI2_ATK_VERSION_MAJOR) +AT_SPI2_ATK_LICENSE = LGPL-2.0+ +AT_SPI2_ATK_LICENSE_FILES = COPYING +AT_SPI2_ATK_INSTALL_STAGING = YES +AT_SPI2_ATK_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install +AT_SPI2_ATK_DEPENDENCIES = atk at-spi2-core libglib2 host-pkgconf + +$(eval $(autotools-package)) From patchwork Fri Jun 22 00:33:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Kogut X-Patchwork-Id: 933014 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QTsfjolD"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BfhV2wQjz9s3C for ; Fri, 22 Jun 2018 10:34:18 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id DC2E18971C; Fri, 22 Jun 2018 00:34:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cF8-0o+XGLM3; Fri, 22 Jun 2018 00:34:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 95C728972C; Fri, 22 Jun 2018 00:34:09 +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 E31E21C292E for ; Fri, 22 Jun 2018 00:34:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 79C61228A0 for ; Fri, 22 Jun 2018 00:34:02 +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 n8NVQYFIQzta for ; Fri, 22 Jun 2018 00:33:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f45.google.com (mail-pl0-f45.google.com [209.85.160.45]) by silver.osuosl.org (Postfix) with ESMTPS id D9CFB2289F for ; Fri, 22 Jun 2018 00:33:59 +0000 (UTC) Received: by mail-pl0-f45.google.com with SMTP id t12-v6so2547058plo.7 for ; Thu, 21 Jun 2018 17:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3akK86QWS9s8EygrWOZ8xviPslV9J18hi0XbJ+iX1O4=; b=QTsfjolDMEWpKnJsm3v2D53YRNph7wQDKgJgnlI0dsn6HMVH3Q68JZmezK9yF3bhFg mA9xN8zmCOp3tfHiDPWuPnCPTnKL3/Z+PxaocG2rkgRESI+OSjWv+FJfEtPNmMzgrBhI hMCW9ILKFaF1daQcdlyV2UQrR5vqQC7kFjjHE8kEymB2BcM1DR2GnOeMTpLezLREiLbs LCFapNPCHvShwvvagbcMm3rK8LYod/81+ultF+SKPhdqR6mAkwh+ZDmfNNchbxSsdNzB NeBHCbib0k0TTcX6XN16xl7B5QaRfpHFttRr8XwWNZwdKFhjpeZVM5wfbB+VxKMDQe4z o6mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3akK86QWS9s8EygrWOZ8xviPslV9J18hi0XbJ+iX1O4=; b=no7qZOJUZspB07oPr4Z72ThaPMlDcJA5ODZ6Aaq8RY2DJX1b0UYukK/oM+fwPFh1dP QJ49jKut7iy+nuCErnVNKfPw2GHPX5TbSnzdih2MTZpfxLuFm16kAHYAEho/y1aCiO/f MdraNOGYgy6kB9FxTicC4rvLRLrwtnTjvw/4fzQo2UC2XRsvhqWw9YdqPntJ9sXY0uI0 TiD0ja/aZxKaevPwasiM0uAz9qHAR0EhVfIUf+SGx08Ym6CthncMENXsJw2SCwREy6M3 q7UoL9NSymqZgq2nDflsQdm+PDa0WBrVzvInL4J3VbpcfQZDYyZFB0rvUrnDde/JJClS rbtg== X-Gm-Message-State: APt69E0iSVHvPN7Zspq+EO2w4DB0gcu+id5CWEEQBSc5j7/te0QFhJqp Ni7JyT9QaRRuxhQIbxalbWTxDDejkxY= X-Google-Smtp-Source: ADUXVKJ2nKikGK/SR0khBgznZn4fe9qqZUJ7d22bClzO6AFE6BQsNJuo4gnht/W7J6tDg7m9UvHZfA== X-Received: by 2002:a17:902:b110:: with SMTP id q16-v6mr30804034plr.286.1529627639229; Thu, 21 Jun 2018 17:33:59 -0700 (PDT) Received: from JAKWS.YakimaSteel.local ([162.251.69.147]) by smtp.gmail.com with ESMTPSA id n76-v6sm14590974pfg.98.2018.06.21.17.33.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:33:58 -0700 (PDT) From: Joseph Kogut To: buildroot@buildroot.org Date: Thu, 21 Jun 2018 17:33:37 -0700 Message-Id: <20180622003340.10859-4-joseph.kogut@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622003340.10859-1-joseph.kogut@gmail.com> References: <20180622003340.10859-1-joseph.kogut@gmail.com> Subject: [Buildroot] [RFC PATCH v5 3/6] libgtk3: convert atk-bridge to optional dependency X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Valentin Korenblit , Joseph Kogut , Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Joseph Kogut --- ...3-convert-atk-bridge-to-optional-dep.patch | 76 +++++++++++++++++++ package/libgtk3/0003-disable-atk-bridge.patch | 45 ----------- package/libgtk3/libgtk3.mk | 4 + 3 files changed, 80 insertions(+), 45 deletions(-) create mode 100644 package/libgtk3/0003-convert-atk-bridge-to-optional-dep.patch delete mode 100644 package/libgtk3/0003-disable-atk-bridge.patch diff --git a/package/libgtk3/0003-convert-atk-bridge-to-optional-dep.patch b/package/libgtk3/0003-convert-atk-bridge-to-optional-dep.patch new file mode 100644 index 0000000000..d92bc96d5e --- /dev/null +++ b/package/libgtk3/0003-convert-atk-bridge-to-optional-dep.patch @@ -0,0 +1,76 @@ +From 83aaf47828d40dbafc315c5184ff62fe9914e80a Mon Sep 17 00:00:00 2001 +From: Joseph Kogut +Date: Thu, 21 Jun 2018 10:55:04 -0700 +Subject: [PATCH] convert atk-bridge to optional dep + +Signed-off-by: Joseph Kogut +--- + configure | 2 +- + configure.ac | 9 ++++++--- + gtk/a11y/gtkaccessibility.c | 4 ++-- + 3 files changed, 9 insertions(+), 6 deletions(-) + +diff --git a/configure b/configure +index 9a68486..6504451 100755 +--- a/configure ++++ b/configure +@@ -27037,7 +27037,7 @@ $as_echo "yes" >&6; } + fi + + GTK_PACKAGES="atk >= 2.15.1 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0 gio-2.0 >= 2.49.4" +-GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES epoxy >= 1.0" ++GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $ATK_BRIDGE_PACKAGE $WAYLAND_PACKAGES $MIR_PACKAGES epoxy >= 1.0" + if test "x$enable_x11_backend" = xyes -o "x$enable_wayland_backend" = xyes; then + GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES pangoft2" + fi +diff --git a/configure.ac b/configure.ac +index fef0ece..ddb4e04 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1394,15 +1394,18 @@ AC_SUBST(GDK_DEP_CFLAGS) + ######################################## + + if test x$enable_x11_backend = xyes; then +- ATK_PACKAGES="atk atk-bridge-2.0" +-else + ATK_PACKAGES="atk" ++ PKG_CHECK_MODULES(ATK_BRIDGE, atk-bridge-2.0, ++ AC_DEFINE([HAVE_ATK_BRIDGE], [1], [Define to 1 if atk-bridge is available]) ++ ATK_BRIDGE_PACKAGE="atk-bridge-2.0", ++ [] ++ ) + fi + + PKG_CHECK_MODULES(ATK, $ATK_PACKAGES) + + GTK_PACKAGES="atk >= atk_required_version cairo >= cairo_required_version cairo-gobject >= cairo_required_version gdk-pixbuf-2.0 >= gdk_pixbuf_required_version gio-2.0 >= glib_required_version" +-GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $WAYLAND_PACKAGES $MIR_PACKAGES epoxy >= epoxy_required_version" ++GTK_PRIVATE_PACKAGES="$ATK_PACKAGES $ATK_BRIDGE_PACKAGE $WAYLAND_PACKAGES $MIR_PACKAGES epoxy >= epoxy_required_version" + if test "x$enable_x11_backend" = xyes -o "x$enable_wayland_backend" = xyes; then + GTK_PRIVATE_PACKAGES="$GTK_PRIVATE_PACKAGES pangoft2" + fi +diff --git a/gtk/a11y/gtkaccessibility.c b/gtk/a11y/gtkaccessibility.c +index 7f0e520..f2ef2eb 100644 +--- a/gtk/a11y/gtkaccessibility.c ++++ b/gtk/a11y/gtkaccessibility.c +@@ -37,7 +37,7 @@ + #include + #include + +-#ifdef GDK_WINDOWING_X11 ++#ifdef HAVE_ATK_BRIDGE + #include + #endif + +@@ -988,7 +988,7 @@ _gtk_accessibility_init (void) + _gtk_accessibility_override_atk_util (); + do_window_event_initialization (); + +-#ifdef GDK_WINDOWING_X11 ++#ifdef HAVE_ATK_BRIDGE + atk_bridge_adaptor_init (NULL, NULL); + #endif + +-- +2.17.1 + diff --git a/package/libgtk3/0003-disable-atk-bridge.patch b/package/libgtk3/0003-disable-atk-bridge.patch deleted file mode 100644 index c92174f400..0000000000 --- a/package/libgtk3/0003-disable-atk-bridge.patch +++ /dev/null @@ -1,45 +0,0 @@ -Remove atk-bridge support. - -atk-bridge doesn't seem useful for now in Buildroot and requires to -add two new packages just for it: at-spi2-core and at-spi2-atk. - -Signed-off-by: Hadrien Boutteville - ---- a/configure.ac -+++ b/configure.ac -@@ -1349,11 +1349,7 @@ - # Check for Accessibility Toolkit flags - ######################################## - --if test x$enable_x11_backend = xyes; then -- ATK_PACKAGES="atk atk-bridge-2.0" --else -- ATK_PACKAGES="atk" --fi -+ATK_PACKAGES="atk" - - PKG_CHECK_MODULES(ATK, $ATK_PACKAGES) - ---- a/gtk/a11y/gtkaccessibility.c -+++ b/gtk/a11y/gtkaccessibility.c -@@ -37,10 +37,6 @@ - #include - #include - --#ifdef GDK_WINDOWING_X11 --#include --#endif -- - static gboolean gail_focus_watcher (GSignalInvocationHint *ihint, - guint n_param_values, - const GValue *param_values, -@@ -987,9 +983,5 @@ - _gtk_accessibility_override_atk_util (); - do_window_event_initialization (); - --#ifdef GDK_WINDOWING_X11 -- atk_bridge_adaptor_init (NULL, NULL); --#endif -- - atk_misc_instance = g_object_new (GTK_TYPE_MISC_IMPL, NULL); - } diff --git a/package/libgtk3/libgtk3.mk b/package/libgtk3/libgtk3.mk index 1b85d00aae..75624a4203 100644 --- a/package/libgtk3/libgtk3.mk +++ b/package/libgtk3/libgtk3.mk @@ -31,6 +31,10 @@ LIBGTK3_DEPENDENCIES = host-pkgconf host-libgtk3 atk libglib2 cairo pango gdk-pi ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y) LIBGTK3_DEPENDENCIES += fontconfig xlib_libX11 xlib_libXext xlib_libXrender xlib_libXi +ifeq ($(BR2_PACKAGE_AT_SPI2_ATK),y) +LIBGTK3_DEPENDENCIES += at-spi2-atk +endif + LIBGTK3_CONF_OPTS += \ --enable-x11-backend \ --x-includes=$(STAGING_DIR)/usr/include/X11 \ From patchwork Fri Jun 22 00:33:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Kogut X-Patchwork-Id: 933010 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VaDpWjEl"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BfhL0Q1Tz9s3C for ; Fri, 22 Jun 2018 10:34:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6DD1F88F89; Fri, 22 Jun 2018 00:34:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rnznK+rM4Lcb; Fri, 22 Jun 2018 00:34:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2A8EF88F40; Fri, 22 Jun 2018 00:34:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 0341E1C292E for ; Fri, 22 Jun 2018 00:34:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id F2A4188891 for ; Fri, 22 Jun 2018 00:34:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DqSCpZGmBTDH for ; Fri, 22 Jun 2018 00:34:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0D28D887A4 for ; Fri, 22 Jun 2018 00:34:01 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id w17-v6so2539399pll.9 for ; Thu, 21 Jun 2018 17:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2/hMfYQJoTstImyil0/G69jjs+0hWOasla5vtPDA2w4=; b=VaDpWjElSYkGZwPurvnaK9QjjehS/vhPHbR79z6Y9buyyJ5JMP/HlU6sytu/hJEXHL 17p8dOliMkY16AlBSZB7ZWwHT3r54PFHMq+qKJNKcTvtVixg4usyoJhna3QfGJeHmo6r aY4a7lTHga8MMSwWxLZBkFmlRgIddroPsKHgihVYwmwWZzPoGtZDouFaOgStCIgz3B1Z 9alN2U8sh7R7gMeDX/KNWoxldqv3QkJ9F4Vw8R48pFQ6nkvY5OPijtD5toENzBn8A6aC RYny6KaWh8ZGVJ8AcTsga9VkYjXdfgOw/ZFs0xkMxl7y3Q9biZuRSxkokq1tTkNqC9di 2VgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2/hMfYQJoTstImyil0/G69jjs+0hWOasla5vtPDA2w4=; b=sUnqxybN67RlpKfUsJ/5b0hVmo2Bb4cKDHUbOUfvakF5Gf76ffQxln/a+Vb7mt4+CT gg0CmRChqo5pBocfVFDeui7VeQtr3AHwbR/KVUXoJnDfAhq9BW419XNOH06TxAKuoLDc +lqRBarraQaMLfiv3KlfmAQNxVi/ZcKkTMHhUAiEgdDRhRxiW2Tf8sWCNJ+QxdwJJ/AO 5xV5lO4kStqL6BGGZ8bAgJfv9ROg4Go1dVWdvPmn32TX+hLXymZqRiT0/EYfxmR7uwKK kptWQ2RGJ5XtthzB66XEp1ncqBS3oFUzCv+8eOOfy42dDtpaAy3G2WcbmZwScTpRVrnt DdwA== X-Gm-Message-State: APt69E0RzgfCExTRaryI4afB+Lb+hIOCD3Cq21L2rGwCh6rfuFQhFzfo bkKwNfPLlo+uIQZvmSfl8h3xGDNleRM= X-Google-Smtp-Source: ADUXVKIkIliOyujPBzV4qxlLdnPgjs0QAda68IP9/PNbHKWB4OXR3K2ERtZuNy3cayu7cCYvdqobeg== X-Received: by 2002:a17:902:206:: with SMTP id 6-v6mr30807736plc.294.1529627640432; Thu, 21 Jun 2018 17:34:00 -0700 (PDT) Received: from JAKWS.YakimaSteel.local ([162.251.69.147]) by smtp.gmail.com with ESMTPSA id n76-v6sm14590974pfg.98.2018.06.21.17.33.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:33:59 -0700 (PDT) From: Joseph Kogut To: buildroot@buildroot.org Date: Thu, 21 Jun 2018 17:33:38 -0700 Message-Id: <20180622003340.10859-5-joseph.kogut@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622003340.10859-1-joseph.kogut@gmail.com> References: <20180622003340.10859-1-joseph.kogut@gmail.com> Subject: [Buildroot] [RFC PATCH v5 4/6] llvm: add config to build backend for host arch X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Valentin Korenblit , Joseph Kogut , Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Joseph Kogut --- package/Config.in.host | 1 + package/llvm/Config.in.host | 18 ++++++++++++++++++ package/llvm/llvm.mk | 9 ++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 package/llvm/Config.in.host diff --git a/package/Config.in.host b/package/Config.in.host index 38543e7390..d0374d351e 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -30,6 +30,7 @@ menu "Host utilities" source "package/jsmin/Config.in.host" source "package/lpc3250loader/Config.in.host" source "package/lttng-babeltrace/Config.in.host" + source "package/llvm/Config.in.host" source "package/mfgtools/Config.in.host" source "package/mkpasswd/Config.in.host" source "package/mtd/Config.in.host" diff --git a/package/llvm/Config.in.host b/package/llvm/Config.in.host new file mode 100644 index 0000000000..4d73fb8c75 --- /dev/null +++ b/package/llvm/Config.in.host @@ -0,0 +1,18 @@ +config BR2_PACKAGE_HOST_LLVM + bool "host llvm" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_HOST_GCC_AT_LEAST_4_8 + help + The LLVM Project is a collection of modular and reusable + compiler and toolchain technologies. + + http://llvm.org + +config BR2_PACKAGE_HOST_LLVM_HOST_ARCH + string + default "AArch64" if BR2_HOSTARCH="aarch64" + default "X86" if BR2_HOSTARCH = "x86" || BR2_HOSTARCH = "x86_64" + default "ARM" if BR2_HOSTARCH = "arm" + +config BR2_PACKAGE_HOST_LLVM_ENABLE_HOST_ARCH + bool diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk index fb0ae4ce5c..31c31630ad 100644 --- a/package/llvm/llvm.mk +++ b/package/llvm/llvm.mk @@ -39,8 +39,9 @@ LLVM_CONF_OPTS += -DLLVM_BUILD_GLOBAL_ISEL=OFF LLVM_TARGET_ARCH = $(call qstrip,$(BR2_PACKAGE_LLVM_TARGET_ARCH)) # Build backend for target architecture. This include backends like AMDGPU. +HOST_LLVM_TARGETS_TO_BUILD = $(LLVM_TARGET_ARCH) LLVM_TARGETS_TO_BUILD = $(LLVM_TARGET_ARCH) -HOST_LLVM_CONF_OPTS += -DLLVM_TARGETS_TO_BUILD="$(subst $(space),;,$(LLVM_TARGETS_TO_BUILD))" +HOST_LLVM_CONF_OPTS += -DLLVM_TARGETS_TO_BUILD="$(subst $(space),;,$(HOST_LLVM_TARGETS_TO_BUILD))" LLVM_CONF_OPTS += -DLLVM_TARGETS_TO_BUILD="$(subst $(space),;,$(LLVM_TARGETS_TO_BUILD))" # LLVM target to use for native code generation. This is required for JIT generation. @@ -56,9 +57,15 @@ LLVM_CONF_OPTS += -DLLVM_TARGET_ARCH=$(LLVM_TARGET_ARCH) # output only $(LLVM_TARGET_ARCH) if not, and mesa3d won't build as # it thinks AMDGPU backend is not installed on the target. ifeq ($(BR2_PACKAGE_LLVM_AMDGPU),y) +HOST_LLVM_TARGETS_TO_BUILD += AMDGPU LLVM_TARGETS_TO_BUILD += AMDGPU endif +# Build backend for host architecture +ifeq ($(BR2_PACKAGE_HOST_LLVM_ENABLE_HOST_ARCH),y) +HOST_LLVM_TARGETS_TO_BUILD += $(call qstrip,$(BR2_PACKAGE_HOST_LLVM_HOST_ARCH)) +endif + # Use native llvm-tblgen from host-llvm (needed for cross-compilation) LLVM_CONF_OPTS += -DLLVM_TABLEGEN=$(HOST_DIR)/bin/llvm-tblgen From patchwork Fri Jun 22 00:33:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Kogut X-Patchwork-Id: 933012 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="e5lYiUq+"; dkim-atps=neutral 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 41BfhP4Hs9z9s3C for ; Fri, 22 Jun 2018 10:34:13 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5F05C2287B; Fri, 22 Jun 2018 00:34:11 +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 D7Fmq3rY56Pq; Fri, 22 Jun 2018 00:34:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3A5552289F; Fri, 22 Jun 2018 00:34:10 +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 DC7561CF238 for ; Fri, 22 Jun 2018 00:34:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DE60B2287B for ; Fri, 22 Jun 2018 00:34:05 +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 ncEAlid+FqNo for ; Fri, 22 Jun 2018 00:34:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by silver.osuosl.org (Postfix) with ESMTPS id 3DE0822EDD for ; Fri, 22 Jun 2018 00:34:02 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id a7-v6so2547743plp.3 for ; Thu, 21 Jun 2018 17:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=d0bhtJ/5ZzO9dJKBma1P2A+6eeJ7BEV6UV6EwRkl+z0=; b=e5lYiUq+6OOjS635vTe/USt3i1anucaLz7ijs39/4H/vA2PlCpZnLKaBiarZbm8w5q z1BFsMc0ermdlgQWWsUVXapth2AssNQHV8Z37Iy6lDFIId8GRW0mq2v7UOehSrDFWylw oNogXJRzbn/oO80gxqwlt9+SNJ9b60+k1p/dMGQjgVPlwX6jbfTLceNrsBiDDse7nJIT Stz4HLuufai8ziMFi5+1Th9g7KPdfUwkByq9yq3I9e1LBNPorBSEnerUYfcllkY8MTA7 R8xL6KrIHlw4+4+jFBTszdoybXaFnh++ygwamfEnoLUB/IOdKtgcmkVUG0/nAYDu/Zka oSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=d0bhtJ/5ZzO9dJKBma1P2A+6eeJ7BEV6UV6EwRkl+z0=; b=l1gR6sGCA2WmUhYnbvKbsldq5X1uITPuJx1pFlCbIT/2HuJl7milYXGFDRcn+O+GCi bkgRckn23wwlTn82fNWCb+foe6/FvsUfirqI1w6iAn6uopz0qk/LuIpORMyjqU//BKuZ 3LyRnIlOC79qw2ZzEPm01DOMm84dZrWjgYsas8qkjcDwcDkFjuPnYeoj6/OjgpnWLdQz woZ/HDscKpJD3xq6Br5vhBJRNc0rVX7UuP2wLt222nT/sm5sGW52c0vvnXMHg1tI5u9B 7iCK2581aZZ3/znes/pzmJhi7jqQ9eTmeg1Hhm27+Nx8cC82Wn79whv+vtOsEar3tJtf K1Cw== X-Gm-Message-State: APt69E2zBM2a0oZ+fwHBsMUv2INgP3fK46CZifO/RUOXWi1pbNf3IyGx CwxjSjBnmjcWSHGilNK6DhN/QTGyNNU= X-Google-Smtp-Source: ADUXVKK/KkTqQFsJrvOLZmSPDGzeZz5yGye2tuOKclIC6h6+Nzf2r6CUCavMZNeZGBrgD7EmIsTdyw== X-Received: by 2002:a17:902:b60c:: with SMTP id b12-v6mr30864118pls.44.1529627641575; Thu, 21 Jun 2018 17:34:01 -0700 (PDT) Received: from JAKWS.YakimaSteel.local ([162.251.69.147]) by smtp.gmail.com with ESMTPSA id n76-v6sm14590974pfg.98.2018.06.21.17.34.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:34:00 -0700 (PDT) From: Joseph Kogut To: buildroot@buildroot.org Date: Thu, 21 Jun 2018 17:33:39 -0700 Message-Id: <20180622003340.10859-6-joseph.kogut@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622003340.10859-1-joseph.kogut@gmail.com> References: <20180622003340.10859-1-joseph.kogut@gmail.com> Subject: [Buildroot] [RFC PATCH v5 5/6] lld: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Valentin Korenblit , Joseph Kogut , Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Joseph Kogut --- DEVELOPERS | 1 + package/Config.in.host | 1 + package/lld/Config.in.host | 16 ++++++++++++++++ package/lld/lld.hash | 3 +++ package/lld/lld.mk | 15 +++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/lld/Config.in.host create mode 100644 package/lld/lld.hash create mode 100644 package/lld/lld.mk diff --git a/DEVELOPERS b/DEVELOPERS index 9116db39cb..7179a70f30 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -978,6 +978,7 @@ F: package/at-spi2-atk/ F: package/at-spi2-core/ F: package/gconf/ F: package/libnss/ +F: package/lld/ F: package/python-cython/ F: package/python-raven/ F: package/python-schedule/ diff --git a/package/Config.in.host b/package/Config.in.host index d0374d351e..943ceff6e5 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -30,6 +30,7 @@ menu "Host utilities" source "package/jsmin/Config.in.host" source "package/lpc3250loader/Config.in.host" source "package/lttng-babeltrace/Config.in.host" + source "package/lld/Config.in.host" source "package/llvm/Config.in.host" source "package/mfgtools/Config.in.host" source "package/mkpasswd/Config.in.host" diff --git a/package/lld/Config.in.host b/package/lld/Config.in.host new file mode 100644 index 0000000000..c04b7924fa --- /dev/null +++ b/package/lld/Config.in.host @@ -0,0 +1,16 @@ +config BR2_PACKAGE_HOST_LLD + bool "host lld" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # llvm + depends on BR2_HOST_GCC_AT_LEAST_4_8 # llvm + select BR2_PACKAGE_HOST_LLVM + help + LLD is a linker from the LLVM project that is a drop-in + replacement for system linkers, and runs much faster than + them. It also provides features that are useful for + toolchain developers. + + https://lld.llvm.org/ + +comment "lld needs a toolchain w/ host gcc >= 4.8" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_4_8 diff --git a/package/lld/lld.hash b/package/lld/lld.hash new file mode 100644 index 0000000000..ce81c7baca --- /dev/null +++ b/package/lld/lld.hash @@ -0,0 +1,3 @@ +# locally calculated +sha256 6b8c4a833cf30230c0213d78dbac01af21387b298225de90ab56032ca79c0e0b lld-6.0.0.src.tar.xz +sha256 f0502d2d0e19748c534ee95ea486c092273303dbef76404c8b17dc8bf6ca441b LICENSE.TXT diff --git a/package/lld/lld.mk b/package/lld/lld.mk new file mode 100644 index 0000000000..e82970c844 --- /dev/null +++ b/package/lld/lld.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# lld +# +################################################################################ + +LLD_VERSION = 6.0.0 +LLD_SITE = https://llvm.org/releases/$(LLD_VERSION) +LLD_SOURCE = lld-$(LLD_VERSION).src.tar.xz +LLD_LICENSE = NCSA +LLD_LICENSE_FILES = LICENSE.TXT +LLD_SUPPORTS_IN_SOURCE_BUILD = NO +HOST_LLD_DEPENDENCIES = host-llvm + +$(eval $(host-cmake-package)) From patchwork Fri Jun 22 00:33:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Kogut X-Patchwork-Id: 933011 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mn9JC3pA"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BfhP4HtRz9s4s for ; Fri, 22 Jun 2018 10:34:13 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BB6758980B; Fri, 22 Jun 2018 00:34:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HL0mssplynpX; Fri, 22 Jun 2018 00:34:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id DC6548971C; Fri, 22 Jun 2018 00:34:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 8BB811C292E for ; Fri, 22 Jun 2018 00:34:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7BC36888B9 for ; Fri, 22 Jun 2018 00:34:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TAErsEXulwSc for ; Fri, 22 Jun 2018 00:34:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 76711887A4 for ; Fri, 22 Jun 2018 00:34:03 +0000 (UTC) Received: by mail-pl0-f65.google.com with SMTP id c41-v6so2536816plj.10 for ; Thu, 21 Jun 2018 17:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OrY9C8mHPQ5qld3x1N7/K8r7vlgbjjZgURDbhkftDNw=; b=mn9JC3pAXQdTcuq8U/dxv/YBn4JnQ1YVTRodemjKprHpC/Gn/4PAUOrY8Wsb/ycHKS wNDuNnDKJBQBIA6oYdrka/uY46j0Pq4RnfTk1B3JKgfs+YKXtRQ8y48mM88xQ83MSGMW xj1SMrEgX7VMnu695iajQW0ZNCfKS+SN350n2kJLQIP4p/tRl+5LCdO+6h4hoGWR5o1v nzFZ7ZDP8LTftFKgXvl4vVCYL9H+i9XbTMJg4qhYyL03yODdu9QKsxXqtvC8mMrgAe1g yUqD63bxIVq3y+CnM/norqRwlPUNglfw/9VpC2IX9sgBc2AiHblExKz/nn+6MrjFHeMh fShg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OrY9C8mHPQ5qld3x1N7/K8r7vlgbjjZgURDbhkftDNw=; b=o5KlJ9iTZjlVPlE8JqD7wvTfO6/S+U+kDYa7NcdvwPntkOpr/AEO/bSEcGo8/xmCWE r5lx4Zydz6vrxa/wUsqDFVkOtkJKVZQEOOXngkjbqormLbcm44vZXXA4bbmya8Udbzmh 7gYE2VwdjLAJjkgoqdRKe9scRVXQKUQbl1LUu2tH2wAQn7uW56MO0nDPE2eD/nnLjx+M FIP9jQKT0cGQSRyMDwyeYKxi3hpg3HNPRM5qukDTBt0aCqfkPFg4x3arzRQkwLUX1TWw N4mO0fctP9lyxu8ST6eg2nJhU6nbnQ/uIn61ZyroawdByXJjk+LAcaD9BgHcYy6f11z2 iCZw== X-Gm-Message-State: APt69E3UuAJ2AqOu3x14bWrDmMn8yUamJtD9kcV/qpVnR8s8QPmKFze8 3MilRQDMLzyXowAMt57BOFu/EFZBu1Y= X-Google-Smtp-Source: ADUXVKLZr7BwowvEvQyuSYL6n3KvrfPxPBU9Vu0yGhHK3A7cxDuNeOYJ2HS3691WQVVSIE39ZJUfxg== X-Received: by 2002:a17:902:7d83:: with SMTP id a3-v6mr1261133plm.154.1529627642677; Thu, 21 Jun 2018 17:34:02 -0700 (PDT) Received: from JAKWS.YakimaSteel.local ([162.251.69.147]) by smtp.gmail.com with ESMTPSA id n76-v6sm14590974pfg.98.2018.06.21.17.34.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 17:34:02 -0700 (PDT) From: Joseph Kogut To: buildroot@buildroot.org Date: Thu, 21 Jun 2018 17:33:40 -0700 Message-Id: <20180622003340.10859-7-joseph.kogut@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622003340.10859-1-joseph.kogut@gmail.com> References: <20180622003340.10859-1-joseph.kogut@gmail.com> Subject: [Buildroot] [RFC PATCH v5 6/6] chromium: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Valentin Korenblit , Joseph Kogut , Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Joseph Kogut --- DEVELOPERS | 1 + package/Config.in | 1 + ...iler_cpu_abi-for-buildroot-toolchain.patch | 102 ++++++++++++++ .../0002-Fix-arm-build-with-glibc-2.27.patch | 28 ++++ package/chromium/Config.in | 56 ++++++++ package/chromium/chromium.hash | 3 + package/chromium/chromium.mk | 127 ++++++++++++++++++ package/chromium/toolchain/BUILD.gn | 71 ++++++++++ 8 files changed, 389 insertions(+) create mode 100644 package/chromium/0001-modify-compiler_cpu_abi-for-buildroot-toolchain.patch create mode 100644 package/chromium/0002-Fix-arm-build-with-glibc-2.27.patch create mode 100644 package/chromium/Config.in create mode 100644 package/chromium/chromium.hash create mode 100644 package/chromium/chromium.mk create mode 100644 package/chromium/toolchain/BUILD.gn diff --git a/DEVELOPERS b/DEVELOPERS index 7179a70f30..6565e676e1 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -976,6 +976,7 @@ F: configs/qemu_ppc64le_pseries_defconfig N: Joseph Kogut F: package/at-spi2-atk/ F: package/at-spi2-core/ +F: package/chromium/ F: package/gconf/ F: package/libnss/ F: package/lld/ diff --git a/package/Config.in b/package/Config.in index d18b542cc5..b94b11496b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -14,6 +14,7 @@ menu "Audio and video applications" source "package/aumix/Config.in" source "package/bellagio/Config.in" source "package/bluez-alsa/Config.in" + source "package/chromium/Config.in" source "package/dvblast/Config.in" source "package/dvdauthor/Config.in" source "package/dvdrw-tools/Config.in" diff --git a/package/chromium/0001-modify-compiler_cpu_abi-for-buildroot-toolchain.patch b/package/chromium/0001-modify-compiler_cpu_abi-for-buildroot-toolchain.patch new file mode 100644 index 0000000000..1848b0bd14 --- /dev/null +++ b/package/chromium/0001-modify-compiler_cpu_abi-for-buildroot-toolchain.patch @@ -0,0 +1,102 @@ +From 3d5106d1d4720e1be8a4bd977be38743d6fb1f3c Mon Sep 17 00:00:00 2001 +From: Joseph Kogut +Date: Sun, 10 Jun 2018 09:59:11 -0700 +Subject: [PATCH] modify compiler_cpu_abi for buildroot toolchain + +Signed-off-by: Joseph Kogut +--- + build/config/compiler/BUILD.gn | 36 +++++++++++++++++++--------------- + 1 file changed, 20 insertions(+), 16 deletions(-) + +diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn +index 461e62da2..27c9f29ed 100644 +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -683,6 +683,10 @@ config("compiler_cpu_abi") { + "-march=x86-64", + ] + ldflags += [ "-m64" ] ++ if (is_clang) { ++ cflags += ["--target=x86_64-buildroot-linux-gnu"] ++ ldflags += ["--target=x86_64-buildroot-linux-gnu"] ++ } + } else if (current_cpu == "x86") { + cflags += [ "-m32" ] + ldflags += [ "-m32" ] +@@ -695,8 +699,8 @@ config("compiler_cpu_abi") { + } + } else if (current_cpu == "arm") { + if (is_clang && !is_android && !is_nacl) { +- cflags += [ "--target=arm-linux-gnueabihf" ] +- ldflags += [ "--target=arm-linux-gnueabihf" ] ++ cflags += [ "--target=arm-buildroot-linux-gnueabihf" ] ++ ldflags += [ "--target=arm-buildroot-linux-gnueabihf" ] + } + if (!is_nacl) { + cflags += [ +@@ -709,18 +713,18 @@ config("compiler_cpu_abi") { + } + } else if (current_cpu == "arm64") { + if (is_clang && !is_android && !is_nacl && !is_fuchsia) { +- cflags += [ "--target=aarch64-linux-gnu" ] +- ldflags += [ "--target=aarch64-linux-gnu" ] ++ cflags += [ "--target=aarch64-buildroot-linux-gnu" ] ++ ldflags += [ "--target=aarch64-buildroot-linux-gnu" ] + } + } else if (current_cpu == "mipsel" && !is_nacl) { + if (custom_toolchain == "") { + if (is_clang) { + if (is_android) { +- cflags += [ "--target=mipsel-linux-android" ] +- ldflags += [ "--target=mipsel-linux-android" ] ++ cflags += [ "--target=mipsel-buildroot-linux-android" ] ++ ldflags += [ "--target=mipsel-buildroot-linux-android" ] + } else { +- cflags += [ "--target=mipsel-linux-gnu" ] +- ldflags += [ "--target=mipsel-linux-gnu" ] ++ cflags += [ "--target=mipsel-buildroot-linux-gnu" ] ++ ldflags += [ "--target=mipsel-buildroot-linux-gnu" ] + } + } else { + cflags += [ "-EL" ] +@@ -799,8 +803,8 @@ config("compiler_cpu_abi") { + } else if (current_cpu == "mips" && !is_nacl) { + if (custom_toolchain == "") { + if (is_clang) { +- cflags += [ "--target=mips-linux-gnu" ] +- ldflags += [ "--target=mips-linux-gnu" ] ++ cflags += [ "--target=mips-buildroot-linux-gnu" ] ++ ldflags += [ "--target=mips-buildroot-linux-gnu" ] + } else { + cflags += [ "-EB" ] + ldflags += [ "-EB" ] +@@ -844,11 +848,11 @@ config("compiler_cpu_abi") { + if (custom_toolchain == "") { + if (is_clang) { + if (is_android) { +- cflags += [ "--target=mips64el-linux-android" ] +- ldflags += [ "--target=mips64el-linux-android" ] ++ cflags += [ "--target=mips64el-buildroot-linux-android" ] ++ ldflags += [ "--target=mips64el-buildroot-linux-android" ] + } else { +- cflags += [ "--target=mips64el-linux-gnuabi64" ] +- ldflags += [ "--target=mips64el-linux-gnuabi64" ] ++ cflags += [ "--target=mips64el-buildroot-linux-gnuabi64" ] ++ ldflags += [ "--target=mips64el-buildroot-linux-gnuabi64" ] + } + } else { + cflags += [ +@@ -905,8 +909,8 @@ config("compiler_cpu_abi") { + } else if (current_cpu == "mips64") { + if (custom_toolchain == "") { + if (is_clang) { +- cflags += [ "--target=mips64-linux-gnuabi64" ] +- ldflags += [ "--target=mips64-linux-gnuabi64" ] ++ cflags += [ "--target=mips64-buildroot-linux-gnuabi64" ] ++ ldflags += [ "--target=mips64-buildroot-linux-gnuabi64" ] + } else { + cflags += [ + "-EB", +-- +2.17.1 + diff --git a/package/chromium/0002-Fix-arm-build-with-glibc-2.27.patch b/package/chromium/0002-Fix-arm-build-with-glibc-2.27.patch new file mode 100644 index 0000000000..8aebbd06c8 --- /dev/null +++ b/package/chromium/0002-Fix-arm-build-with-glibc-2.27.patch @@ -0,0 +1,28 @@ +From aed4599c18586dfac46139a3c32011f804fdaef6 Mon Sep 17 00:00:00 2001 +From: Joseph Kogut +Date: Wed, 13 Jun 2018 13:59:24 -0700 +Subject: [PATCH] Fix arm build with glibc 2.27 + +Upstream patch from: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1060155 + +Signed-off-by: Joseph Kogut +--- + third_party/crashpad/crashpad/compat/linux/sys/ptrace.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h b/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h +index 73861576d..e5c95c7cc 100644 +--- a/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h ++++ b/third_party/crashpad/crashpad/compat/linux/sys/ptrace.h +@@ -34,7 +34,7 @@ static constexpr __ptrace_request PTRACE_GET_THREAD_AREA = + #endif // !PTRACE_GET_THREAD_AREA && !PT_GET_THREAD_AREA && defined(__GLIBC__) + + // https://sourceware.org/bugzilla/show_bug.cgi?id=22433 +-#if !defined(PTRACE_GETVFPREGS) && \ ++#if !defined(PTRACE_GETVFPREGS) && !defined(PT_GETVFPREGS) && \ + defined(__GLIBC__) && (defined(__arm__) || defined(__arm64__)) + static constexpr __ptrace_request PTRACE_GETVFPREGS = + static_cast<__ptrace_request>(27); +-- +2.17.1 + diff --git a/package/chromium/Config.in b/package/chromium/Config.in new file mode 100644 index 0000000000..7d216ea5d7 --- /dev/null +++ b/package/chromium/Config.in @@ -0,0 +1,56 @@ +config BR2_PACKAGE_CHROMIUM_ARCH_SUPPORTS + bool + default y if BR2_arm + default y if BR2_aarch64 + default y if BR2_i386 + default y if BR2_x86_64 + +config BR2_PACKAGE_CHROMIUM + bool "chromium" + depends on BR2_HOST_GCC_AT_LEAST_4_9 # gn requires -std=c++14 + depends on BR2_PACKAGE_HAS_LIBGL + depends on BR2_PACKAGE_XORG7 + depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_AT_SPI2_ATK + select BR2_PACKAGE_ALSA_LIB + select BR2_PACKAGE_CUPS + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_HARFBUZZ + select BR2_PACKAGE_LLVM_ENABLE_HOST_ARCH + select BR2_PACKAGE_HOST_CLANG + select BR2_PACKAGE_HOST_LLD + select BR2_PACKAGE_HOST_NINJA + select BR2_PACKAGE_HOST_NODEJS + select BR2_PACKAGE_HOST_PYTHON + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBDRM + select BR2_PACKAGE_LIBERATION # runtime + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBGTK2 if !BR2_PACKAGE_LIBGTK3_X11 + select BR2_PACKAGE_LIBKRB5 + select BR2_PACKAGE_LIBNSS + select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_PCIUTILS + select BR2_PACKAGE_XLIB_LIBXCOMPOSITE + select BR2_PACKAGE_XLIB_LIBXCURSOR + select BR2_PACKAGE_XLIB_LIBXI if !BR2_PACKAGE_LIBGTK3_X11 + select BR2_PACKAGE_XLIB_LIBXRANDR + select BR2_PACKAGE_XLIB_LIBXSCRNSAVER + select BR2_PACKAGE_XLIB_LIBXTST if !BR2_PACKAGE_LIBGTK3_X11 + +config BR2_PACKAGE_CHROMIUM_TARGET_ARCH + string + default "arm" if BR2_arm + default "arm64" if BR2_aarch64 + default "x86" if BR2_i386 + default "x64" if BR2_x86_64 + default "mips" if BR2_mips + +comment "chromium needs toolchain w/ Glibc, host gcc >= 4.9.0" + depends on !BR2_TOOLCHAIN_USES_GLIBC \ + || !BR2_HOST_GCC_AT_LEAST_4_9 + +comment "chromium depends on X.org and needs an OpenGL backend" + depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_HAS_LIBGL diff --git a/package/chromium/chromium.hash b/package/chromium/chromium.hash new file mode 100644 index 0000000000..4c39ac5c08 --- /dev/null +++ b/package/chromium/chromium.hash @@ -0,0 +1,3 @@ +# locally calculated +sha256 f8b1e5319163e378027826b12cf256b97423bb90e10e2013469d96e03bc9db8a chromium-67.0.3396.79.tar.xz +sha256 845022e0c1db1abb41a6ba4cd3c4b674ec290f3359d9d3c78ae558d4c0ed9308 LICENSE diff --git a/package/chromium/chromium.mk b/package/chromium/chromium.mk new file mode 100644 index 0000000000..1b553311a8 --- /dev/null +++ b/package/chromium/chromium.mk @@ -0,0 +1,127 @@ +################################################################################ +# +# Chromium +# +################################################################################ + +CHROMIUM_VERSION = 67.0.3396.79 +CHROMIUM_SITE = https://commondatastorage.googleapis.com/chromium-browser-official +CHROMIUM_SOURCE = chromium-$(CHROMIUM_VERSION).tar.xz +CHROMIUM_LICENSE = BSD-Style +CHROMIUM_LICENSE_FILES = LICENSE +CHROMIUM_DEPENDENCIES = alsa-lib cairo cups dbus freetype harfbuzz \ + host-clang host-lld host-ninja host-nodejs host-python \ + jpeg libdrm libglib2 libkrb5 libnss libpng pango \ + pciutils xlib_libXcomposite xlib_libXScrnSaver \ + xlib_libXcursor xlib_libXrandr zlib + +CHROMIUM_TOOLCHAIN_CONFIG_PATH = $(shell pwd)/package/chromium/toolchain + +CHROMIUM_OPTS = \ + host_toolchain=\"$(CHROMIUM_TOOLCHAIN_CONFIG_PATH):host\" \ + custom_toolchain=\"$(CHROMIUM_TOOLCHAIN_CONFIG_PATH):target\" \ + use_lld=true \ + is_clang=true \ + clang_use_chrome_plugins=false \ + treat_warnings_as_errors=false \ + use_gnome_keyring=false \ + linux_use_bundled_binutils=false \ + use_sysroot=false \ + target_sysroot=\"$(STAGING_DIR)\" \ + target_cpu=\"$(BR2_PACKAGE_CHROMIUM_TARGET_ARCH)\" \ + enable_nacl=false \ + use_dbus=true \ + use_cups=true \ + use_system_zlib=true \ + use_system_libjpeg=true \ + use_system_libpng=true \ + use_system_libdrm=true \ + use_system_harfbuzz=true \ + use_system_freetype=true + +# tcmalloc has portability issues +CHROMIUM_OPTS += use_allocator=\"none\" + +# V8 snapshots require compiling V8 with the same word size as the target +# architecture, which means the host needs to have that toolchain available. +CHROMIUM_OPTS += v8_use_snapshot=false + +ifeq ($(BR2_ENABLE_DEBUG),y) +CHROMIUM_OPTS += is_debug=true +else +CHROMIUM_OPTS += is_debug=false +endif + +ifeq ($(BR2_PACKAGE_PULSEAUDIO),y) +CHROMIUM_DEPENDENCIES += pulseaudio +CHROMIUM_OPTS += use_pulseaudio=true +else +CHROMIUM_OPTS += use_pulseaudio=false +endif + +ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y) +CHROMIUM_DEPENDENCIES += libgtk3 +CHROMIUM_OPTS += use_gtk3=true +else +CHROMIUM_DEPENDENCIES += libgtk2 xlib_libXi xlib_libXtst +CHROMIUM_OPTS += use_gtk3=false +endif + +ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) +CHROMIUM_TARGET_LDFLAGS += --gcc-toolchain=$(TOOLCHAIN_EXTERNAL_INSTALL_DIR) +else +CHROMIUM_TARGET_LDFLAGS += --gcc-toolchain=$(HOST_DIR) +endif + +CHROMIUM_TARGET_CFLAGS += $(CHROMIUM_TARGET_LDFLAGS) +CHROMIUM_TARGET_CXXFLAGS += $(CHROMIUM_TARGET_CFLAGS) + +CHROMIUM_HOST_CFLAGS += --target=$(HOSTARCH)-buildroot-linux-gnu +CHROMIUM_HOST_CXXFLAGS += $(CHROMIUM_HOST_CFLAGS) +CHROMIUM_HOST_LDFLAGS += --gcc-toolchain="/usr" + +define CHROMIUM_CONFIGURE_CMDS + mkdir -p $(@D)/third_party/node/linux/node-linux-x64/bin + ln -sf $(HOST_DIR)/bin/node $(@D)/third_party/node/linux/node-linux-x64/bin/ + + ( cd $(@D); \ + $(TARGET_MAKE_ENV) \ + $(HOST_DIR)/bin/python2 tools/gn/bootstrap/bootstrap.py -s --no-clean; \ + HOST_AR="$(HOSTAR)" \ + HOST_NM="$(HOSTNM)" \ + HOST_CC="$(HOSTCC)" \ + HOST_CXX="$(HOSTCXX)" \ + HOST_CFLAGS="$(HOST_CFLAGS)" \ + HOST_CXXFLAGS="$(HOST_CXXFLAGS)" \ + TARGET_AR="ar" \ + TARGET_NM="nm" \ + TARGET_CC="clang" \ + TARGET_CXX="clang++" \ + TARGET_CFLAGS="$(CHROMIUM_TARGET_CFLAGS)" \ + TARGET_CXXFLAGS="$(CHROMIUM_TARGET_CXXFLAGS)" \ + TARGET_LDFLAGS="$(CHROMIUM_TARGET_LDFLAGS)" \ + out/Release/gn gen out/Release --args="$(CHROMIUM_OPTS)" \ + --script-executable=$(HOST_DIR)/bin/python2 \ + ) +endef + +define CHROMIUM_BUILD_CMDS + ( cd $(@D); \ + $(TARGET_MAKE_ENV) \ + ninja -j$(PARALLEL_JOBS) -C out/Release chrome chrome_sandbox chromedriver \ + ) +endef + +define CHROMIUM_INSTALL_TARGET_CMDS + $(INSTALL) -D $(@D)/out/Release/chrome $(TARGET_DIR)/usr/lib/chromium/chromium + $(INSTALL) -Dm4755 $(@D)/out/Release/chrome_sandbox \ + $(TARGET_DIR)/usr/lib/chromium/chrome-sandbox + cp $(@D)/out/Release/{chrome_{100,200}_percent,resources}.pak \ + $(@D)/out/Release/chromedriver \ + $(TARGET_DIR)/usr/lib/chromium/ + $(INSTALL) -Dm644 -t $(TARGET_DIR)/usr/lib/chromium/locales \ + $(@D)/out/Release/locales/*.pak + cp $(@D)/out/Release/icudtl.dat $(TARGET_DIR)/usr/lib/chromium/ +endef + +$(eval $(generic-package)) diff --git a/package/chromium/toolchain/BUILD.gn b/package/chromium/toolchain/BUILD.gn new file mode 100644 index 0000000000..e8525bd67d --- /dev/null +++ b/package/chromium/toolchain/BUILD.gn @@ -0,0 +1,71 @@ +import("//build/toolchain/gcc_toolchain.gni") +import("//build/config/sysroot.gni") + +gcc_toolchain("host") { + cc = getenv("HOST_CC") + cxx = getenv("HOST_CXX") + ar = getenv("HOST_AR") + nm = getenv("HOST_NM") + ld = cxx + + extra_cflags = getenv("HOST_CFLAGS") + extra_cppflags = getenv("HOST_CPPFLAGS") + extra_cxxflags = getenv("HOST_CXXFLAGS") + extra_ldflags = getenv("HOST_LDFLAGS") + + toolchain_args = { + cc_wrapper = "" + current_cpu = host_cpu + current_os = host_os + is_clang = false + use_sysroot = false + use_lld = false + } +} + +gcc_toolchain("target") { + cc = getenv("TARGET_CC") + cxx = getenv("TARGET_CXX") + ar = getenv("TARGET_AR") + nm = getenv("TARGET_NM") + ld = cxx + + extra_cflags = getenv("TARGET_CFLAGS") + extra_cppflags = getenv("TARGET_CPPFLAGS") + extra_cxxflags = getenv("TARGET_CXXFLAGS") + extra_ldflags = getenv("TARGET_LDFLAGS") + + toolchain_args = { + cc_wrapper = "" + current_cpu = target_cpu + current_os = target_os + is_clang = is_clang + use_sysroot = use_sysroot + } +} + +gcc_toolchain("v8_snapshot") { + cc = getenv("V8_CC") + cxx = getenv("V8_CXX") + ar = getenv("V8_AR") + nm = getenv("V8_NM") + ld = cxx + + extra_cflags = getenv("V8_CFLAGS") + extra_cppflags = getenv("V8_CPPFLAGS") + extra_cxxflags = getenv("V8_CXXFLAGS") + extra_ldflags = getenv("V8_LDFLAGS") + + toolchain_args = { + cc_wrapper = "" + if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { + current_cpu = "x86" + } else { + current_cpu = "x64" + } + current_os = host_os + is_clang = is_clang + use_sysroot = false + } +} +