From patchwork Tue Dec 17 03:47:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 181831 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp5227114ile; Mon, 16 Dec 2019 19:47:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwCGxUdaluslGuIgvwRM+AzsmaZK77gWj6kEqUKKOSX0nMMKIdf/UeLkgFQgQcEfja/UmXw X-Received: by 2002:a65:6914:: with SMTP id s20mr22290461pgq.44.1576554444848; Mon, 16 Dec 2019 19:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576554444; cv=none; d=google.com; s=arc-20160816; b=Nwa1gVCF4V55KxxbSeMc2PfluceiMvRMHaIrOREBd2ZqNWpz2yLepheseeolPaAYwj mcFTA2Fuv5QIZzrSJEYaHo/sygTo13apzUaNmjRG8lLt/KghN4wWD7C/zjtEwnNPdhon kliIWTg465Kg0bzZmYSZbJK9BFF4QGD+XBAlB6ACV/ZHEEPbAhtlozm3tVGAy/bo3ovb 9F34bmkJ4dLwTz1RL5Wbc0A7ctsbbL231Ce0krDhwf5UhOxwffL+TF6MFtD4N6DsmYf0 Fl3119lgRHKkEldjE8vs2qANA2zUtDyC5VcXiMi5lmeW6J/CrXcbtQ2C7Fqq+NegFRkv yRpw== 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=YQif08ng2NhMGWyvvoaRFWnPAPygV+klkPY/tPDA12Q=; b=xXUyISKOLWSXEa3O4fYWUdbmehzSwIjkULZ8FBOcGYaws8j4E7WvMheVIBzTBsmr0F tAUbXaiUtmNKhGd2EKKnXzwTyb2couEpenSuZxws4ZZT9c85z0kIUVnxVw5/zElpBIDs C98suXLYVecQqr8PU7SKlEfESiSgJnBJ0U7+t7p/PgxH66EiKVoJ5ekBouVXb7InAhEv +NPyytKwELukw4ngjMGGhz7353E3O2Wy8I60ugoPScs3mNOb8qFvcQnqpcPjKp4N25HU g9QO3dSF21EE7Get9RDciGIM30aiYHCwaV0Me2bEHc7+2QYfpNESk6PhUev+QGFZGhYE hfBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=XVbYN0Yw; 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 q5si20525042pgg.439.2019.12.16.19.47.23; Mon, 16 Dec 2019 19:47:24 -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=XVbYN0Yw; 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 93E017F6B5; Tue, 17 Dec 2019 03:47:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mail.openembedded.org (Postfix) with ESMTP id 8F0477F7B1 for ; Tue, 17 Dec 2019 03:47:15 +0000 (UTC) Received: by mail-pl1-f179.google.com with SMTP id c13so5449892pls.0 for ; Mon, 16 Dec 2019 19:47:16 -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=l7O96n81c6iSeD0bQqEoYYI1zIdsEFIfhg9P7hyvLd0=; b=XVbYN0YwM94OtlGOiwAQSuy6OrwyoaYxMxVm+H+f4BNKG8eKdnyfrWVnJ4T30BcZxF pp0n/+rT+eq+gAdUYFcwEoD0FHXLxQRo0ewMGpoUfuXGpR32XOAxRUYlgIwvYYcNvtSg G6BYCwTaqnysRWI3AeQAJSV0vC3GU+HYRHHzVmftb4URX7IcXjsef6wcGs81CAW/Pmfr HON+jeL0JlYinF8zEj3qNDomhCmoh2tGfJ4YCVhPei0ak2T9w2DE4H4yByAMJmeLix3q FlrZ+SRVyLaH9a7z6a0l/hZUtaGgYzLVq4LNehXTN0GYTi4lNVA+9osb6CEvWc3+H6n+ OxsQ== 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=l7O96n81c6iSeD0bQqEoYYI1zIdsEFIfhg9P7hyvLd0=; b=r8tHTVYlXa+lciFA/5YNYOO76/gP0uTWq3nPMBXWawy5DIPJgaNpFgOBmBnTirdCA4 ishwql3mp+o8DXvICihvLxKDVqKW58G4vLMRh35GmgmSH4nyeQUMZ/8ec4VM/VJNa/dZ YqM2QHpG8ozJm2BJCVvVJSgzRL217Uh/WGtIzZ+4RkWC857PrMZdXbJgH1kn1g1u+n/y rmx+ysTm7n1FPTBaq19h0Ge8dk4cgPB+p2wbK10scLwLrtPp/VRdsWcjdZw5/jWk9aCi RX9EF1VdQ3o8HTHBuEeMx0wN916+VvgFe0HeQcx2ylyIkOlnqgYjTKxph5thmKa7/fjw g/2w== X-Gm-Message-State: APjAAAWDXnqvKWvgSZfYTsSi9aRiiS3CbnpWevWJATSktJjEtpHKizqe L2ZIeZ4rw9EpsbzdNLYE2A91qcWKnFM= X-Received: by 2002:a17:90a:d353:: with SMTP id i19mr3568805pjx.43.1576554436018; Mon, 16 Dec 2019 19:47:16 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2ebb]) by smtp.gmail.com with ESMTPSA id g19sm23881860pfh.134.2019.12.16.19.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 19:47:15 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 16 Dec 2019 19:47:07 -0800 Message-Id: <20191217034707.3234733-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] systemd-bootchart: Add mips64 tuples 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 Signed-off-by: Khem Raj --- .../systemd-bootchart/mips64.patch | 35 +++++++++++++++++++ .../systemd-bootchart_233.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-devtools/systemd-bootchart/systemd-bootchart/mips64.patch -- 2.24.1 -- _______________________________________________ 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/mips64.patch b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/mips64.patch new file mode 100644 index 0000000000..6206bc4b44 --- /dev/null +++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/mips64.patch @@ -0,0 +1,35 @@ +Recognise mips64 n32/n64 + +These are supported in systemd now a days + +Upstream-Status: Backport [https://github.com/systemd/systemd/commit/caf49b95b3a6efe9455078098c729d83b08e5206] +Signed-off-by: Khem Raj + +--- a/src/architecture.h ++++ b/src/architecture.h +@@ -127,13 +127,22 @@ int uname_architecture(void); + # define native_architecture() ARCHITECTURE_SPARC + # define LIB_ARCH_TUPLE "sparc-linux-gnu" + # define PROC_CPUINFO_MODEL "cpu" +-#elif defined(__mips64__) ++#elif defined(__mips64) && defined(__LP64__) + # if __BYTE_ORDER == __BIG_ENDIAN + # define native_architecture() ARCHITECTURE_MIPS64 +-# error "Missing LIB_ARCH_TUPLE for MIPS64" ++# define LIB_ARCH_TUPLE "mips64-linux-gnuabi64" + # else + # define native_architecture() ARCHITECTURE_MIPS64_LE +-# error "Missing LIB_ARCH_TUPLE for MIPS64_LE" ++# define LIB_ARCH_TUPLE "mips64el-linux-gnuabi64" ++# endif ++# define PROC_CPUINFO_MODEL "cpu model" ++#elif defined(__mips64) ++# if __BYTE_ORDER == __BIG_ENDIAN ++# define native_architecture() ARCHITECTURE_MIPS64 ++# define LIB_ARCH_TUPLE "mips64-linux-gnuabin32" ++# else ++# define native_architecture() ARCHITECTURE_MIPS64_LE ++# define LIB_ARCH_TUPLE "mips64el-linux-gnuabin32" + # endif + # define PROC_CPUINFO_MODEL "cpu model" + #elif defined(__mips__) diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb index 960edc75e6..a7a1f0ff1a 100644 --- a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb +++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_233.bb @@ -4,6 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c SRC_URI = "git://github.com/systemd/systemd-bootchart.git;protocol=https \ file://0001-architecture-Recognise-RISCV-32-RISCV-64.patch \ + file://mips64.patch \ " SRC_URI_append_libc-musl = " \