From patchwork Tue Aug 18 19:11:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Stewart X-Patchwork-Id: 1347240 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=none (p=none dis=none) header.from=paral.in Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BWLBH2lr1z9sRK for ; Wed, 19 Aug 2020 05:11:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2113F87A5E; Tue, 18 Aug 2020 19:11:47 +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 Z76qdUzZ7a5y; Tue, 18 Aug 2020 19:11:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7B52487A5F; Tue, 18 Aug 2020 19:11:44 +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 026381BF282 for ; Tue, 18 Aug 2020 19:11:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E202D204BE for ; Tue, 18 Aug 2020 19:11:42 +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 YJTW0V1lR8r5 for ; Tue, 18 Aug 2020 19:11:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by silver.osuosl.org (Postfix) with ESMTPS id D1DCC204A3 for ; Tue, 18 Aug 2020 19:11:39 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id f10so9653195plj.8 for ; Tue, 18 Aug 2020 12:11:39 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=5/TwvCdzKRALGYeL5J/NBrfPdVY8psmygs2MYOU9TBo=; b=EMVWW2LdSTJ0CiEKTKvXzCFlOKdMN+KroFoc3TkNiaz/xdAs/8BOigEGYOIby0o+dm k45Ed6+a7IK7hbUfisM4IR59IxxRMweYfsAUXKtrIOQXdG79ooHDWAen7KqHtNLe/Wgy o19BjfEBWyPNa0ASHOWTe9sFtqtgcndw2n4BbxZNcIqbrGZHIcVmK7IaGjBZ5D0pBg/K Hp6mvt5RO1di2TCkgg0/puyai9+ozrQEzRGPimHm1M6S6nhB8hDanF98kniEknH/Ab/D l9PZQRQpSNDe3raK+Vztc58OzMAYYg4bfa0RbtI8UMzkRwz6m2VULtHYGHvLseNfqNj/ tBhA== X-Gm-Message-State: AOAM532l4kdPUcekZTCaSuZJPC/oHVqHmr9joHS/XtYxCmUk6Rh3eHbw rlgrDlAwsEMgZZWoq+GgtKB6h7OxiKqiE4v1 X-Google-Smtp-Source: ABdhPJy2/tugSRV1dbAZn1k/ziIr0g3MUxX5BxjUu+jArGKj6IfoS4gdf/nJdPFgX3Mk+YUku2esQA== X-Received: by 2002:a17:902:6904:: with SMTP id j4mr16568569plk.198.1597777898649; Tue, 18 Aug 2020 12:11:38 -0700 (PDT) Received: from localhost.localdomain (ip72-194-208-254.sb.sd.cox.net. [72.194.208.254]) by smtp.gmail.com with ESMTPSA id m4sm24886907pfh.129.2020.08.18.12.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2020 12:11:36 -0700 (PDT) From: Christian Stewart To: buildroot@buildroot.org Date: Tue, 18 Aug 2020 12:11:30 -0700 Message-Id: <20200818191130.2888592-1-christian@paral.in> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/rpi-userland: add support for aarch64 build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Korsgaard , Christian Stewart , "Yann E . MORIN" , Thomas Petazzoni , Anisse Astier Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Tested on Pi4 Model B (aarch64). Signed-off-by: Christian Stewart --- package/rpi-userland/Config.in | 4 ++-- package/rpi-userland/rpi-userland.mk | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package/rpi-userland/Config.in b/package/rpi-userland/Config.in index 342faf26e3..81f3588822 100644 --- a/package/rpi-userland/Config.in +++ b/package/rpi-userland/Config.in @@ -1,6 +1,6 @@ config BR2_PACKAGE_RPI_USERLAND bool "rpi-userland" - depends on BR2_arm + depends on BR2_arm || BR2_aarch64 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS @@ -40,6 +40,6 @@ config BR2_PACKAGE_RPI_USERLAND_HELLO endif comment "rpi-userland needs a toolchain w/ C++, threads, dynamic library" - depends on BR2_arm + depends on BR2_arm || BR2_aarch64 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ BR2_STATIC_LIBS diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk index 9edc92344e..ec5e26f140 100644 --- a/package/rpi-userland/rpi-userland.mk +++ b/package/rpi-userland/rpi-userland.mk @@ -13,6 +13,10 @@ RPI_USERLAND_CONF_OPTS = -DVMCS_INSTALL_PREFIX=/usr RPI_USERLAND_PROVIDES = libegl libgles libopenmax libopenvg +ifeq ($(BR2_aarch64),y) +RPI_USERLAND_CONF_OPTS += -DARM64=ON +endif + ifeq ($(BR2_PACKAGE_RPI_USERLAND_HELLO),y) RPI_USERLAND_CONF_OPTS += -DALL_APPS=ON