From patchwork Sat Nov 23 18:15:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 180121 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1013521ilf; Sat, 23 Nov 2019 10:15:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyHKYfJ2edoguOdSOwZxHmZXjiC/qDgKO+B8074w/CzA7lQEV351VlfLG8qrYucb7w05N7A X-Received: by 2002:a65:6698:: with SMTP id b24mr11979679pgw.137.1574532949339; Sat, 23 Nov 2019 10:15:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574532949; cv=none; d=google.com; s=arc-20160816; b=kbZLPh22kfJdwlWEzb+60z0y+umkgDSahfntLoB7m4k+IQ9b/FjSanvzibHSOYPpjM LZQVLMmXZvJIIjDvPhnjjnB5QggKXoRmAYrp/Kb+Ot6c2wKtv9HEo4QQLC6QC4Xe2GwX cGPwmE8Q6xBZrj4UFi55U6ExGLVGNKvUyZb9/l8WGmKBxNXb9FsixPAnyCJztT0qgZ7G CEQ5YJnX0ohvhlKxkIJOL+ZQxEwnkxuyhwVSJSAE4CyTatr2flFmcxAzSOJz9usOcQ7a 3wKTxP5bQp99QDjz36kYk4jVzAp1uKNPI67PgRSxzIVOnycbe4hwA2mjUHwRpN/4MVJ1 xUZw== 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=VQcFy32G1l2RwxCrk8yUr94qBzG2EfhhH61laZ/Uvcs=; b=RAozj7h08gH/KOzTDSDF2M85Sy1QS303qZXUFmmiFQBKGm7/DWYOiBf8QAhEmVJ6XJ 7w7o26IEcn8gFux53+X7xT14oGP3jbzf6b5RkA9P447KwmA34LyN1S+Du2+9IKXl5b/t DVkZjuVESe2M0lIx0v/ajvETt7dEPYeYHxzU70SMtkxwR1rkaoImGheM0g7dApILDWBa qUE5xFxGZVIhxUUvOeEO7isvcSA+6mPBLQJ8wpPX6Q/aZwQnEKJGOoQSo0KXn+i/P2dC SlY62ZRyHe+kPyLl/NPRaAbcPCNora6IXLJnNmiNS4I+wrWapGVGxoRcqB3HZipB4VRR W09w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=gtQ9KX32; 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 h5si2528021pjq.59.2019.11.23.10.15.48; Sat, 23 Nov 2019 10:15:49 -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=gtQ9KX32; 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 CD9DD7FCF7; Sat, 23 Nov 2019 18:15:46 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mail.openembedded.org (Postfix) with ESMTP id 4EFEC7FCE0 for ; Sat, 23 Nov 2019 18:15:45 +0000 (UTC) Received: by mail-pl1-f178.google.com with SMTP id t8so4545140plr.8 for ; Sat, 23 Nov 2019 10:15:46 -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=ETLgysEjzK+3vHjXFYGypCvaCAFl3cv8vLIw+kyCfog=; b=gtQ9KX323DKnKJLfq7tZp2XwpMMvA3VI9wp601c2S6ZZ81BXW95Svs7jviw9tpZXtr PEVO5ApnHKR1dOtjWWCnZ6Z3Wyndon+ByRszJzSbsOoYACygqH/gRRhNx1sWTUhpm46G Yuxx1ITloA0oF72SPYSmBFcdf0N1jiknhtxUMCf+ciMEyG3XktFH14mRi9+m/jra02Uh tcgZhgpqvWwHc1SNk1xpOKBkCor3pwn3UdNNzKAIn51bff6IEgJp0ZpzN3jSmna3W8bk mNsKloxTthLfs02ztnmPuO3MKTgBul1xxiCCKR7ziEZiIpYBLiDRNz/nDLskKVmGeOnf OMCA== 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=ETLgysEjzK+3vHjXFYGypCvaCAFl3cv8vLIw+kyCfog=; b=jiRPXSjo+1br4Ws1FPESIYhjY8LQ/Bz6SsptFLto54ITKw5pPngPnEw25nO4/Wg2Qs nzc1E1Nsjn3mW7l+FwYZgBz0UvXykSB/gyt3StnnbchGkWOoOFuXFYqyecuh2MZDO2Sv JfRCUUE/dM49q35wamY69SZFZOFNRq+rzbo7kwSYy9fW0YgLVOjSJnQohZASvKk7WyeT mYgrc5F3ug735bQu2rLFCU93neJU2VtMhHmJCKQ/NFGem1V4KjrGaT0Q4Mr1raAijyhJ vIY2Pna9r92q17FRu3GEoPwq0qP/DyOJLZKr/ktD8gcSDmzdG7aTYHA5vFepO7L3va5V O+Gg== X-Gm-Message-State: APjAAAU49dIG6+0dMLghjkv1GUE+sPxPpGbf3DrtsGHLzLwewJmSd3qE axkbkI3IZmkqcTcGPPDdtmwczaIS3Vw= X-Received: by 2002:a17:902:9a8d:: with SMTP id w13mr20379974plp.330.1574532945566; Sat, 23 Nov 2019 10:15:45 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::d61]) by smtp.gmail.com with ESMTPSA id a3sm2595145pjh.31.2019.11.23.10.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Nov 2019 10:15:45 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 23 Nov 2019 10:15:28 -0800 Message-Id: <20191123181528.2826658-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH v3] 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 Signed-off-by: Khem Raj --- v2: Improve commit msg v3: Move Upstream-Status to patch itself ...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..fc03812bb9 --- /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: Backport [https://github.com/systemd/systemd/commit/171b53380085b1288b03b19a2b978f36a5c003d0] +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 = " \