From patchwork Sat Nov 23 18:10:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 180120 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1008186ilf; Sat, 23 Nov 2019 10:11:02 -0800 (PST) X-Google-Smtp-Source: APXvYqycEBGGutq+rg5zWr/qIO2rfyZoJwF8fF583TkPbYpb0GwbWEqmaC2jlQJx4xIF8Vxa5e4R X-Received: by 2002:a62:ea1a:: with SMTP id t26mr24343389pfh.14.1574532662697; Sat, 23 Nov 2019 10:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574532662; cv=none; d=google.com; s=arc-20160816; b=eC7ojoIFWAkX8uxjTnErXg4rfVi3twSSnkUA66s1sY35m7UnCgb7O2ywUApXlOIIGI o/+7yrdU/J87kKZKQy3HvKQQo8p6kBEQaKA7UhyLigkWfjvOSRVD/Ih+qiRA838qrC1X +b69QWNFD5PEeBiHlZounRNgdy71B3BO11FIZGM/PBgAn3OWZD9d7BOaYd3j6AsrxjHU sjHM21YkRHowV5XMBnhaUl6G+P2uw6M9Cjv5Uw+IKtiYq3y2C1d4wARtO7itVZSLPE1n ZhGfdFVLvUFQLESLbyBXRJvvDYuoyLHV4764FtsT2Yjq+IeDh5XpzTV1mmGG/esk+7Ri 09kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=GfOeQ2zxNDltTJj2kH6sebkJVHT+AeDigbF7M30vt68=; b=VAiOSUPp34qGxcdIdlSjaHiDVV1SLDcFegjIbdG8VgoDvy6soE4BqJ28abFvNRz6Lu iiuzCDzvtbxV3qP6OUSYehV/gdHYIPcJnzEvb6J56g7FhfP+uZzq5Sh2qYGjW2ox6fRL 7NGcwfUKOWYZRmdOUWkBBwprj+iqGm+VjW3YAYdA0+APasl+ezPzOUkUTvaozkZc2UAN dh8mEqvv+rkiHImhHvGQjukSMblWBWWXRpB0T2ASa0fB2d59uE8hBUJpmNsIEfOZIqgZ 31oZ/1dYTFVCAJnVHnXuzPOAcBhTP3ajW3RN1ZMFfb/F0eit4N7mrmTUJ3vDrupGASpR zoGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="ZQ8pxE/l"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b9si2127759plr.169.2019.11.23.10.11.01; Sat, 23 Nov 2019 10:11:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="ZQ8pxE/l"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0C33E7FCE0; Sat, 23 Nov 2019 18:10:55 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mail.openembedded.org (Postfix) with ESMTP id 15F1A7FCAD for ; Sat, 23 Nov 2019 18:10:52 +0000 (UTC) Received: by mail-pj1-f44.google.com with SMTP id s8so4583561pji.2 for ; Sat, 23 Nov 2019 10:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X+1FSoVkJykbL13jHRUpmGghyhLHCAXN0xuLx5SGlpQ=; b=ZQ8pxE/luKTKUihflPEr69PYycweWQBI/l2HKeZgc4HZLBGgefH51XmuUM9582Vvaw mhTUCKwf7YRHfg41wpdEwfKUVoGnjC1PXD9nCf2Tln3jScHEi9o9jXrZHU73GnCCYpug Xf2r/wgVDE+kJFROMhGZAPXm5mSCI1gP49LzM2puG8Lz2tlhgjFunhwh3mzKfAJR90fM 1Jh+GTV5ksHrjjjKsPlk8g19Fy28OJ6ZZZFhq3Zsrcjlq9A30tFnExnaIEevYQOj7poM nkBCLECF8GNuXZRb41vv5wUsffJjfxre1pSoFqKceX1sGFXXDJ+G3hOeME1hg8ngG7eu lsOg== 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=X+1FSoVkJykbL13jHRUpmGghyhLHCAXN0xuLx5SGlpQ=; b=MNXCto24jnknGkGnKfN6BO7E8JGB+sVr/Y3sYqIIrCL/QGc74zqCsM4I9G2Drfxa1Y zEtrBgPK6DpyN5hs3doBqFS/whpbsUI6r+FSDhlmSxQrnbvkHRT+Yq9S5JFG/yzs7KPr VvqTj3a1aQY8UWfCfYuvQwU03zNaASH+6kDeQo/Es63Y4WlTlRIHgtiXSpSqbS/RlEDl EUpV8+VumkPjf3xG5pGTfDo35Lw+WyLwLSUIztSasZ1aRu4lNvN0S+WAQtaDknBnLcgb twJiC6LugZSej7eelxWagzB6O7FzvtaL3+RbP+RHdwmdWua7SxtF33TGylZuH3p+AWIB NyWA== X-Gm-Message-State: APjAAAXKqVD8UcBrCkmVsLeQMLZAEd4tuJIifJ5w3g3MJZpq4yONip3r UI/z8TuGDTl2izeLOpLruk5I0X3KsNE= X-Received: by 2002:a17:902:8c84:: with SMTP id t4mr20235330plo.269.1574532653325; Sat, 23 Nov 2019 10:10:53 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::d61]) by smtp.gmail.com with ESMTPSA id o125sm2320037pfg.118.2019.11.23.10.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Nov 2019 10:10:52 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 23 Nov 2019 10:10:37 -0800 Message-Id: <20191123181037.2776067-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH v2] systemd-bootchart: Backport RISC-V support X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This is a combined backport from upstream patches for added risc-v support Upstream code has been re-organised before risc-v support was added to its mix of two commits primarily https://github.com/systemd/systemd/commit/171b53380085b1288b03b19a2b978f36a5c003d0 https://github.com/systemd/systemd/commit/680a752c834aba1b66449d34f17dbe37e040f6b0 Upstream-Status: Backport [https://github.com/systemd/systemd/commit/171b53380085b1288b03b19a2b978f36a5c003d0] Signed-off-by: Khem Raj --- v2: Improve commit msg ...itecture-Recognise-RISCV-32-RISCV-64.patch | 45 +++++++++++++++++++ .../systemd-bootchart_233.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-architecture-Recognise-RISCV-32-RISCV-64.patch -- 2.24.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-architecture-Recognise-RISCV-32-RISCV-64.patch b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-architecture-Recognise-RISCV-32-RISCV-64.patch new file mode 100644 index 0000000000..5e89195915 --- /dev/null +++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-architecture-Recognise-RISCV-32-RISCV-64.patch @@ -0,0 +1,45 @@ +From 4a6ace0a965965ea15e88c3418c7158ca5cc9f8f Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 21 Nov 2019 10:12:05 -0800 +Subject: [PATCH] architecture: Recognise RISCV-32/RISCV-64 + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/architecture.h | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/src/architecture.h b/src/architecture.h +index 26679e2..89c7d32 100644 +--- a/src/architecture.h ++++ b/src/architecture.h +@@ -57,6 +57,8 @@ enum { + ARCHITECTURE_M68K, + ARCHITECTURE_TILEGX, + ARCHITECTURE_CRIS, ++ ARCHITECTURE_RISCV32, ++ ARCHITECTURE_RISCV64, + _ARCHITECTURE_MAX, + _ARCHITECTURE_INVALID = -1 + }; +@@ -194,6 +196,17 @@ int uname_architecture(void); + #elif defined(__cris__) + # define native_architecture() ARCHITECTURE_CRIS + # error "Missing LIB_ARCH_TUPLE for CRIS" ++#elif defined(__riscv) ++# if __SIZEOF_POINTER__ == 4 ++# define native_architecture() ARCHITECTURE_RISCV32 ++# define LIB_ARCH_TUPLE "riscv32-linux-gnu" ++# elif __SIZEOF_POINTER__ == 8 ++# define native_architecture() ARCHITECTURE_RISCV64 ++# define LIB_ARCH_TUPLE "riscv64-linux-gnu" ++# else ++# error "Unrecognized riscv architecture variant" ++# endif ++# define PROC_CPUINFO_MODEL "cpu model" + #else + # error "Please register your architecture here!" + #endif +-- +2.24.0 + diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb index aef8839864..960edc75e6 100644 --- a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb +++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb @@ -3,6 +3,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe" SRC_URI = "git://github.com/systemd/systemd-bootchart.git;protocol=https \ + file://0001-architecture-Recognise-RISCV-32-RISCV-64.patch \ " SRC_URI_append_libc-musl = " \