From patchwork Sun Dec 17 07:39:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?RnLDqWTDqXJpYyBNYXJ0aW5zb25z?= X-Patchwork-Id: 36506 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44FA6C46CD3 for ; Sun, 17 Dec 2023 07:39:56 +0000 (UTC) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.groups.io with SMTP id smtpd.web10.15172.1702798789477637302 for ; Sat, 16 Dec 2023 23:39:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=L3NyznOG; spf=pass (domain: gmail.com, ip: 209.85.221.50, mailfrom: frederic.martinsons@gmail.com) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-3332efd75c9so1669990f8f.2 for ; Sat, 16 Dec 2023 23:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702798787; x=1703403587; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TqOgOryH/8h4GNNiTh/JkF7NlSpueZPAvQvYUwehqMQ=; b=L3NyznOGv0CEeOJ0e7w3wxIVyMmjk4FhSaRxfhqAjv7c3IBWDXEmGfPrNJsHsP31F+ M2TpWdVuM/eEywaVJEy6FBTuSjcly3PCd1HG6AiE+r7/iyO6FWGHFmH49VVEzdqIdfWb Z+N/kvo6e0zzTl8tx2QO5uFjej+cCdxg/dnj7x6fwXxPkbtz1fvLGEDJg4+kmfsQfdwG yje+mD8s3MMEDV48C3KK9dcTJCylFYc5CEH3MOqd6CsQAnzXA7deJ3tNLgewapnuvnCw fJB/hn72Ljyj1ytMnLx+rtOyWcq6d3cetZh0Wze1lJVbQauH/C1GEseNSFCtNmXGDrgM rChg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702798787; x=1703403587; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TqOgOryH/8h4GNNiTh/JkF7NlSpueZPAvQvYUwehqMQ=; b=fp/z57HeLofwa6iu6SNQee2JyYrpjMgUN2ah/OANsqYI2MWNKiGHpYAo/Mrus1ct5c mWnywpreMZjdp2GU3J+A5BoAFBGe0Q46+mJnpmEg8aCaIxOd1/xWCnOhYzbkb4VCksA4 TYRyVIzjrqm8dgWrM1I8NDOKYSGLPc3cElzUpJzWSys8F+1WZsZ3U4QvkpIZxTb92Vu0 Yt1f39mSogrXBTgPUmjnkX/TRkNHdbkPxAN4wWGOlt51HQjUfJzhlpzySsw0ntUl6PPi zpqCaeF6lwEDl2Qp3Yz/sA/OLfnIYfrWjO4X2tei8Ut/5v4M22SjsqS7NYMZmJkOuv+I DxHA== X-Gm-Message-State: AOJu0YwUvxLakQ1+8d4oZbS7jI6Tcq3NQHZ1yR+Z37B6y/AZNDDx8AUJ paPbehpeEaO93x+fVoUB1ek9cx7U4RQNrw== X-Google-Smtp-Source: AGHT+IFt4UwbgPgTqXQY0TI2dDHnDIAtDZ7YJcXieVB84hGdQJsy0NltzS9usK8S19rYHe3lEA1YOQ== X-Received: by 2002:a7b:cd87:0:b0:40b:5e59:f724 with SMTP id y7-20020a7bcd87000000b0040b5e59f724mr3791157wmj.150.1702798787315; Sat, 16 Dec 2023 23:39:47 -0800 (PST) Received: from work-pc.sigfox.io ([2a01:e0a:8d5:c6c0:2e8:740a:5bbd:1d48]) by smtp.gmail.com with ESMTPSA id v6-20020a05600c444600b0040c4886f254sm26458428wmn.13.2023.12.16.23.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 23:39:47 -0800 (PST) From: frederic.martinsons@gmail.com To: openembedded-devel@lists.openembedded.org Cc: Frederic Martinsons Subject: [meta-oe][PATCH 1/3] crash: factorize recipe with inc file to prepare cross-canadian version Date: Sun, 17 Dec 2023 08:39:39 +0100 Message-Id: <2e8c22b4cf9b01e32f0b3e86772260bc40bbf334.1702798681.git.frederic.martinsons@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 17 Dec 2023 07:39:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/107535 From: Frederic Martinsons Suppress unused config-site.crash-7.0.9 Signed-off-by: Frederic Martinsons --- meta-oe/recipes-kernel/crash/crash.inc | 92 +++++++++++++++++++ .../crash/crash/config-site.crash-7.0.9 | 1 - meta-oe/recipes-kernel/crash/crash_8.0.2.bb | 89 +----------------- 3 files changed, 94 insertions(+), 88 deletions(-) create mode 100644 meta-oe/recipes-kernel/crash/crash.inc delete mode 100644 meta-oe/recipes-kernel/crash/crash/config-site.crash-7.0.9 diff --git a/meta-oe/recipes-kernel/crash/crash.inc b/meta-oe/recipes-kernel/crash/crash.inc new file mode 100644 index 000000000..8d700ed48 --- /dev/null +++ b/meta-oe/recipes-kernel/crash/crash.inc @@ -0,0 +1,92 @@ +SUMMARY = "Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles" +DESCRIPTION = "The core analysis suite is a self-contained tool that can be used to\ +investigate either live systems, kernel core dumps created from the\ +netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch\ +offered by Mission Critical Linux, or the LKCD kernel patch." + +HOMEPAGE = "http://people.redhat.com/anderson" +SECTION = "devel" + +LICENSE = "GPL-3.0-only" +LIC_FILES_CHKSUM = "file://COPYING3;md5=d32239bcb673463ab874e80d47fae504" + +DEPENDS = "zlib readline coreutils-native ncurses-native" + +INC_PR = "r1" + +S = "${WORKDIR}/git" +SRC_URI = "git://github.com/crash-utility/${BPN}.git;branch=master;protocol=https \ + ${GNU_MIRROR}/gdb/gdb-10.2.tar.gz;name=gdb;subdir=git \ + file://7001force_define_architecture.patch \ + file://7003cross_ranlib.patch \ + file://0001-cross_add_configure_option.patch \ + file://donnot-extract-gdb-during-do-compile.patch \ + file://gdb_build_jobs_and_not_write_crash_target.patch \ + file://0001-make-src-string-const-in-strlcpy.patch \ + " +SRCREV = "f1cd581d1c4afa5b8ffdfaa6a3ea9f545fe4ec91" + +SRC_URI[gdb.sha256sum] = "b33ad58d687487a821ec8d878daab0f716be60d0936f2e3ac5cf08419ce70350" + +UPSTREAM_CHECK_URI = "https://github.com/crash-utility/crash/releases" + +inherit gettext + +TARGET_CC_ARCH:append = " ${SELECTED_OPTIMIZATION}" + +# crash 7.1.3 and before don't support mips64/riscv64 +COMPATIBLE_HOST:riscv64 = "null" +COMPATIBLE_HOST:riscv32 = "null" +COMPATIBLE_HOST:mipsarchn64 = "null" +COMPATIBLE_HOST:mipsarchn32 = "null" + + +EXTRA_OEMAKE = 'RPMPKG="${PV}" \ + GDB_TARGET="${TARGET_SYS}" \ + GDB_HOST="${BUILD_SYS}" \ + GDB_MAKE_JOBS="${PARALLEL_MAKE}" \ + LDFLAGS="${LDFLAGS}" \ + ' + +do_configure() { + : +} + +do_compile:prepend() { + case ${TARGET_ARCH} in + aarch64*) ARCH=ARM64 ;; + arm*) ARCH=ARM ;; + i*86*) ARCH=X86 ;; + x86_64*) ARCH=X86_64 ;; + powerpc64*) ARCH=PPC64 ;; + powerpc*) ARCH=PPC ;; + mips*) ARCH=MIPS ;; + esac + + sed -i s/FORCE_DEFINE_ARCH/"${ARCH}"/g ${S}/configure.c + sed -i -e 's/#define TARGET_CFLAGS_ARM_ON_X86_64.*/#define TARGET_CFLAGS_ARM_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c + sed -i -e 's/#define TARGET_CFLAGS_MIPS_ON_X86_64.*/#define TARGET_CFLAGS_MIPS_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c + sed -i 's/>/>/g' ${S}/Makefile +} + +do_compile() { + oe_runmake ${EXTRA_OEMAKE} RECIPE_SYSROOT=${RECIPE_SYSROOT} +} + +do_install:prepend () { + install -d ${D}${bindir} + install -d ${D}/${mandir}/man8 + install -d ${D}${includedir}/crash + + install -m 0644 ${S}/crash.8 ${D}/${mandir}/man8/ + install -m 0644 ${S}/defs.h ${D}${includedir}/crash +} + +RDEPENDS:${PN} += "liblzma" + +# Causes gcc to get stuck and eat all available memory in qemuarm builds +# jenkins 15161 100 12.5 10389596 10321284 ? R 11:40 28:17 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.9.2/cc1 -quiet -I . -I . -I ./common -I ./config -I ./../include/opcode -I ./../opcodes/.. -I ./../readline/.. -I ../bfd -I ./../bfd -I ./../include -I ../libdecnumber -I ./../libdecnumber -I ./gnulib/import -I build-gnulib/import -isysroot /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm -MMD eval.d -MF .deps/eval.Tpo -MP -MT eval.o -D LOCALEDIR="/usr/local/share/locale" -D CRASH_MERGE -D HAVE_CONFIG_H -D TUI=1 eval.c -quiet -dumpbase eval.c -march=armv5te -mthumb -mthumb-interwork -mtls-dialect=gnu -auxbase-strip eval.o -g -O2 -Wall -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -feliminate-unused-debug-types -o - +ARM_INSTRUCTION_SET = "arm" + +# http://errors.yoctoproject.org/Errors/Details/186964/ +COMPATIBLE_HOST:libc-musl = 'null' diff --git a/meta-oe/recipes-kernel/crash/crash/config-site.crash-7.0.9 b/meta-oe/recipes-kernel/crash/crash/config-site.crash-7.0.9 deleted file mode 100644 index d6fc22fb3..000000000 --- a/meta-oe/recipes-kernel/crash/crash/config-site.crash-7.0.9 +++ /dev/null @@ -1 +0,0 @@ -bash_cv_have_mbstate_t=yes diff --git a/meta-oe/recipes-kernel/crash/crash_8.0.2.bb b/meta-oe/recipes-kernel/crash/crash_8.0.2.bb index f8a460b8c..cc46ab9ea 100644 --- a/meta-oe/recipes-kernel/crash/crash_8.0.2.bb +++ b/meta-oe/recipes-kernel/crash/crash_8.0.2.bb @@ -1,51 +1,8 @@ -SUMMARY = "Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles" -DESCRIPTION = "The core analysis suite is a self-contained tool that can be used to\ -investigate either live systems, kernel core dumps created from the\ -netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch\ -offered by Mission Critical Linux, or the LKCD kernel patch." +require crash.inc -HOMEPAGE = "http://people.redhat.com/anderson" -SECTION = "devel" - -LICENSE = "GPL-3.0-only" -LIC_FILES_CHKSUM = "file://COPYING3;md5=d32239bcb673463ab874e80d47fae504" - -DEPENDS = "zlib readline coreutils-native ncurses-native" - -S = "${WORKDIR}/git" -SRC_URI = "git://github.com/crash-utility/${BPN}.git;branch=master;protocol=https \ - ${GNU_MIRROR}/gdb/gdb-10.2.tar.gz;name=gdb;subdir=git \ - file://7001force_define_architecture.patch \ - file://7003cross_ranlib.patch \ - file://0001-cross_add_configure_option.patch \ - file://donnot-extract-gdb-during-do-compile.patch \ - file://gdb_build_jobs_and_not_write_crash_target.patch \ - file://0001-make-src-string-const-in-strlcpy.patch \ - " -SRCREV = "f1cd581d1c4afa5b8ffdfaa6a3ea9f545fe4ec91" - -SRC_URI[gdb.sha256sum] = "b33ad58d687487a821ec8d878daab0f716be60d0936f2e3ac5cf08419ce70350" - -UPSTREAM_CHECK_URI = "https://github.com/crash-utility/crash/releases" - -inherit gettext +PR = "${INC_PR}.0" BBCLASSEXTEND = "native cross" -TARGET_CC_ARCH:append = " ${SELECTED_OPTIMIZATION}" - -# crash 7.1.3 and before don't support mips64/riscv64 -COMPATIBLE_HOST:riscv64 = "null" -COMPATIBLE_HOST:riscv32 = "null" -COMPATIBLE_HOST:mipsarchn64 = "null" -COMPATIBLE_HOST:mipsarchn32 = "null" - - -EXTRA_OEMAKE = 'RPMPKG="${PV}" \ - GDB_TARGET="${TARGET_SYS}" \ - GDB_HOST="${BUILD_SYS}" \ - GDB_MAKE_JOBS="${PARALLEL_MAKE}" \ - LDFLAGS="${LDFLAGS}" \ - ' EXTRA_OEMAKE:class-cross = 'RPMPKG="${PV}" \ GDB_TARGET="${BUILD_SYS} --target=${TARGET_SYS}" \ @@ -56,40 +13,6 @@ EXTRA_OEMAKE:class-cross = 'RPMPKG="${PV}" \ EXTRA_OEMAKE:append:class-native = " LDFLAGS='${BUILD_LDFLAGS}'" EXTRA_OEMAKE:append:class-cross = " LDFLAGS='${BUILD_LDFLAGS}'" -do_configure() { - : -} - -do_compile:prepend() { - case ${TARGET_ARCH} in - aarch64*) ARCH=ARM64 ;; - arm*) ARCH=ARM ;; - i*86*) ARCH=X86 ;; - x86_64*) ARCH=X86_64 ;; - powerpc64*) ARCH=PPC64 ;; - powerpc*) ARCH=PPC ;; - mips*) ARCH=MIPS ;; - esac - - sed -i s/FORCE_DEFINE_ARCH/"${ARCH}"/g ${S}/configure.c - sed -i -e 's/#define TARGET_CFLAGS_ARM_ON_X86_64.*/#define TARGET_CFLAGS_ARM_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c - sed -i -e 's/#define TARGET_CFLAGS_MIPS_ON_X86_64.*/#define TARGET_CFLAGS_MIPS_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c - sed -i 's/>/>/g' ${S}/Makefile -} - -do_compile() { - oe_runmake ${EXTRA_OEMAKE} RECIPE_SYSROOT=${RECIPE_SYSROOT} -} - -do_install:prepend () { - install -d ${D}${bindir} - install -d ${D}/${mandir}/man8 - install -d ${D}${includedir}/crash - - install -m 0644 ${S}/crash.8 ${D}/${mandir}/man8/ - install -m 0644 ${S}/defs.h ${D}${includedir}/crash -} - do_install:class-target () { oe_runmake DESTDIR=${D} install } @@ -102,13 +25,5 @@ do_install:class-cross () { install -m 0755 ${S}/crash ${D}/${bindir} } -RDEPENDS:${PN} += "liblzma" RDEPENDS:${PN}:class-native = "" RDEPENDS:${PN}:class-cross = "" - -# Causes gcc to get stuck and eat all available memory in qemuarm builds -# jenkins 15161 100 12.5 10389596 10321284 ? R 11:40 28:17 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.9.2/cc1 -quiet -I . -I . -I ./common -I ./config -I ./../include/opcode -I ./../opcodes/.. -I ./../readline/.. -I ../bfd -I ./../bfd -I ./../include -I ../libdecnumber -I ./../libdecnumber -I ./gnulib/import -I build-gnulib/import -isysroot /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm -MMD eval.d -MF .deps/eval.Tpo -MP -MT eval.o -D LOCALEDIR="/usr/local/share/locale" -D CRASH_MERGE -D HAVE_CONFIG_H -D TUI=1 eval.c -quiet -dumpbase eval.c -march=armv5te -mthumb -mthumb-interwork -mtls-dialect=gnu -auxbase-strip eval.o -g -O2 -Wall -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -feliminate-unused-debug-types -o - -ARM_INSTRUCTION_SET = "arm" - -# http://errors.yoctoproject.org/Errors/Details/186964/ -COMPATIBLE_HOST:libc-musl = 'null' From patchwork Sun Dec 17 07:39:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?RnLDqWTDqXJpYyBNYXJ0aW5zb25z?= X-Patchwork-Id: 36507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D455C46CA2 for ; Sun, 17 Dec 2023 07:39:56 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.web10.15173.1702798790125169133 for ; Sat, 16 Dec 2023 23:39:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AGDpjKW7; spf=pass (domain: gmail.com, ip: 209.85.128.53, mailfrom: frederic.martinsons@gmail.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40d12ade25dso5993775e9.2 for ; Sat, 16 Dec 2023 23:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702798788; x=1703403588; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UOaJ9X68yNe1T49sJr6JDCos0s/fx9W7XdlfsvGqnyA=; b=AGDpjKW7k86Eeeomyg4rJvt/d1MXn+Janw4qY+J5YzuTQaKtUxt2d2wtnn5E2QVdfB 3edJQgb9ytTabc44pVLhUE8Ma9GQK7zAKCHxiXvqrrRBpt5ASBc5tO19qe+oRMPi3VNP xMiUA1FyLZ9ep1NlI5ynZN3yIewj5OWqa2fiRcoKJ4UqwkMc45lwNJUd10FBbxNN04Xj n1ncuLjiExeo2F23frFo/F2p3Hv0HMkw/GDYuPJR3NrrYzW6PIMgZnsXeBfyXing9l8x o0nkXpLKmY74jYAnrg3TAWN+V0wwHKXQz/KaR1Zoxj+trHxk6U3Ro8plJkCC/pClzAlr JejA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702798788; x=1703403588; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UOaJ9X68yNe1T49sJr6JDCos0s/fx9W7XdlfsvGqnyA=; b=tGxOv3/ofKL0RGwbV6Ka9XEsPeWERPy4ISVGiFqYWCWxAUsNwoxbkJzPQkUleGU4aR Wb56c8gcjBzZLkXP7Es7CuQRMqKyeS1KaYjFRSYfG0GDzBbF4lFZPP97k432YpVZj2oi kx3ZQlTlqNwA0gzv/Be8H5N6mkiisMmVxlXDHnuNLNlep2Y6ExkSyS8r/k9RYiwINdBm MQF8SV0eaDLag9Lcw8uMmXWSK5GapoQSc7OqJWtGLGiS0t9y1e+Wyw+Qb5EXjDhVlhDZ bKJEXNXNJg5r7ZDvGH2xHSOTsl5tR/G2qJidS+wCbbTf/6bIIiCKG2y0HV3+rv5fRJjy OU1Q== X-Gm-Message-State: AOJu0YxLDCH5BG70l6a6SAO/O0X3ib54S4sRmBVDicO+ws/SKZtX1b/f ln8uriG0l807LAZRCSDpwT3Jy75TXErrpA== X-Google-Smtp-Source: AGHT+IHMtP22MA1GfWSoCm2xsTk/2ymK1OJN1O3PhcamtLu9J3uTiBwTO03tndTbQBBjaFeoPhHS3A== X-Received: by 2002:a05:600c:3ba6:b0:40b:5e1c:5c1d with SMTP id n38-20020a05600c3ba600b0040b5e1c5c1dmr7147556wms.50.1702798788012; Sat, 16 Dec 2023 23:39:48 -0800 (PST) Received: from work-pc.sigfox.io ([2a01:e0a:8d5:c6c0:2e8:740a:5bbd:1d48]) by smtp.gmail.com with ESMTPSA id v6-20020a05600c444600b0040c4886f254sm26458428wmn.13.2023.12.16.23.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 23:39:47 -0800 (PST) From: frederic.martinsons@gmail.com To: openembedded-devel@lists.openembedded.org Cc: Frederic Martinsons Subject: [meta-oe][PATCH 2/3] crash: add cross canadian version Date: Sun, 17 Dec 2023 08:39:40 +0100 Message-Id: <223330c9bc2db79e2c5716e7132bcf9b0b86bee3.1702798681.git.frederic.martinsons@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 17 Dec 2023 07:39:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/107536 From: Frederic Martinsons Signed-off-by: Frederic Martinsons --- .../crash/crash-cross-canadian_8.0.2.bb | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.2.bb diff --git a/meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.2.bb b/meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.2.bb new file mode 100644 index 000000000..04be12602 --- /dev/null +++ b/meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.2.bb @@ -0,0 +1,53 @@ +inherit cross-canadian + +SUMMARY = "crash utility (cross-canadian crash for ${TARGET_ARCH} target)" +PN = "crash-cross-canadian-${TRANSLATED_TARGET_ARCH}" +BPN = "crash" + +require crash.inc + +PR = "${INC_PR}.0" + +DEPENDS = "\ + nativesdk-ncurses \ + nativesdk-expat \ + nativesdk-gettext \ + nativesdk-gmp \ + nativesdk-mpfr \ + nativesdk-readline \ + nativesdk-zlib \ + virtual/${HOST_PREFIX}gcc \ + virtual/${HOST_PREFIX}binutils \ + virtual/nativesdk-${HOST_PREFIX}compilerlibs \ + virtual/nativesdk-libc" + +RDEPENDS:${PN} = "nativesdk-liblzma" + +EXTRA_OEMAKE:class-cross-canadian = 'RPMPKG="${PV}" \ + GDB_TARGET="${BUILD_SYS} --target=${TARGET_SYS}" \ + GDB_HOST="${HOST_SYS}" \ + GDB_MAKE_JOBS="${PARALLEL_MAKE}" \ + LDFLAGS="${LDFLAGS}" \ + ' + +# To ship crash into your sdk, you should create/update a packagegroup-cross-canadian.bbappend and +# add the following +# CRASH = "crash-cross-canadian-${TRANSLATED_TARGET_ARCH}" +# RDEPENDS:${PN} += "${@all_multilib_tune_values(d, 'CRASH')}" +# +# You should also add some kernel packages in your sdk, add the followng in your conf/local.conf: +# +# TOOLCHAIN_TARGET_TASK += "\ +# kernel-vmlinux \ +# kernel-dbg \ +# kernel-dev \ +# " +# +# After sourcing the sdk environment script, you can analyze a kernel panic dump with +# +# crash $OECORE_TARGET_SYSROOT/boot/ $OECORE_TARGET_SYSROOT/boot/ + +do_install:class-cross-canadian () { + install -m 0755 ${S}/crash ${D}/${bindir} + cross_canadian_bindirlinks +} From patchwork Sun Dec 17 07:39:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?RnLDqWTDqXJpYyBNYXJ0aW5zb25z?= X-Patchwork-Id: 36505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44395C3DA6E for ; Sun, 17 Dec 2023 07:39:56 +0000 (UTC) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by mx.groups.io with SMTP id smtpd.web11.15258.1702798791002240418 for ; Sat, 16 Dec 2023 23:39:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ErAtua9N; spf=pass (domain: gmail.com, ip: 209.85.128.52, mailfrom: frederic.martinsons@gmail.com) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40c41b43e1eso25182265e9.1 for ; Sat, 16 Dec 2023 23:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702798789; x=1703403589; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pvJ7nbPeFPP8drx4femRThAOWKntYpz4WklSAzA6G7w=; b=ErAtua9N85WijO4xoj+AKgF38C0+stDG6I228RgH9EoSrJQsuq+l1uNn4ZseN85Nno RtauDZXo8xAsiK/YnORwdrrYgFyRSlnPoP74l6LPyYrw3dSM41hv8v2fQxbuZWfXjwXS RYD5OCLBUDQjyUppGt+iPPyLvK4x04onA6FjV96tcAg5zv2JJ1NnmMcUc81zp8tbUziN fFrJAz/MLkO7L7mZMr5+eXgTrVI4ky2vAFbfkuAgCX5DkZlf/uXlEHGQ20RlJK6r1k9V pf+Ia3a+7u6lx3lkdGRkLSGXKnigrt2VmnkRUo/lu3OOIkFvWaqMBLPPX58FTTS/ahav lWNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702798789; x=1703403589; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pvJ7nbPeFPP8drx4femRThAOWKntYpz4WklSAzA6G7w=; b=KzN6T7j6jw5du5ck1xkDbmEGjy2w/4tt+w+brdJ/DWroX+8RWFDCc1FEFLDQuzvdT2 u1kkP98eSCZFkkkyOM3SK++Kjg6fJHkYkZb8p3L+n1Y4SwaShXbfw734wvnLJbhZRSKF GEKo3TzZ9NqrM5kOg+hU8Fqa7zaN0B0Hm/Sz2BvGvwem0inUMT9w0ai7cuV1Utefgu6T yeh4rBahfUU4zaj5Z709dtWcr1exnVFRPmu22o/JkC1rxysXj4xgb/e8LkAJN9ZKyEDJ UvDgIi98t3/UzN25FR/PdQsdlt029NTKEU2kLAraDPZbOnb2WYy3iUGqRzEuxkVyXNU9 0QCQ== X-Gm-Message-State: AOJu0YwsS75xBFK05IaSrMkRLA0RA4jmk38RlffKxqtC3gtIRNYAplQI bF+BoI1TzJcNSL9mcnaUgug15Kt3oWMcsw== X-Google-Smtp-Source: AGHT+IF53z9km4wT0svY+YN95tVK5JMPQoUaTqu0TptAgu56W6du/Axc0C8yKlxcGhMT0v80Kw9q2w== X-Received: by 2002:a05:600c:3b26:b0:40b:5e1f:6fe3 with SMTP id m38-20020a05600c3b2600b0040b5e1f6fe3mr7178362wms.56.1702798788822; Sat, 16 Dec 2023 23:39:48 -0800 (PST) Received: from work-pc.sigfox.io ([2a01:e0a:8d5:c6c0:2e8:740a:5bbd:1d48]) by smtp.gmail.com with ESMTPSA id v6-20020a05600c444600b0040c4886f254sm26458428wmn.13.2023.12.16.23.39.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 23:39:48 -0800 (PST) From: frederic.martinsons@gmail.com To: openembedded-devel@lists.openembedded.org Cc: Frederic Martinsons Subject: [meta-oe][PATCH 3/3] crash: update to 8.0.4 Date: Sun, 17 Dec 2023 08:39:41 +0100 Message-Id: <888b131229ab4dc5ca7a7d0b7bd395ddd6dc7f2e.1702798681.git.frederic.martinsons@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 17 Dec 2023 07:39:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/107537 From: Frederic Martinsons Remove backported commit. Signed-off-by: Frederic Martinsons --- ...8.0.2.bb => crash-cross-canadian_8.0.4.bb} | 0 meta-oe/recipes-kernel/crash/crash.inc | 3 +- ...001-make-src-string-const-in-strlcpy.patch | 69 ------------------- .../crash/{crash_8.0.2.bb => crash_8.0.4.bb} | 0 4 files changed, 1 insertion(+), 71 deletions(-) rename meta-oe/recipes-kernel/crash/{crash-cross-canadian_8.0.2.bb => crash-cross-canadian_8.0.4.bb} (100%) delete mode 100644 meta-oe/recipes-kernel/crash/crash/0001-make-src-string-const-in-strlcpy.patch rename meta-oe/recipes-kernel/crash/{crash_8.0.2.bb => crash_8.0.4.bb} (100%) diff --git a/meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.2.bb b/meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.4.bb similarity index 100% rename from meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.2.bb rename to meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.4.bb diff --git a/meta-oe/recipes-kernel/crash/crash.inc b/meta-oe/recipes-kernel/crash/crash.inc index 8d700ed48..04318b150 100644 --- a/meta-oe/recipes-kernel/crash/crash.inc +++ b/meta-oe/recipes-kernel/crash/crash.inc @@ -22,9 +22,8 @@ SRC_URI = "git://github.com/crash-utility/${BPN}.git;branch=master;protocol=http file://0001-cross_add_configure_option.patch \ file://donnot-extract-gdb-during-do-compile.patch \ file://gdb_build_jobs_and_not_write_crash_target.patch \ - file://0001-make-src-string-const-in-strlcpy.patch \ " -SRCREV = "f1cd581d1c4afa5b8ffdfaa6a3ea9f545fe4ec91" +SRCREV = "a6832f608cb5d473739cf33bbf84ab1df8d98fd5" SRC_URI[gdb.sha256sum] = "b33ad58d687487a821ec8d878daab0f716be60d0936f2e3ac5cf08419ce70350" diff --git a/meta-oe/recipes-kernel/crash/crash/0001-make-src-string-const-in-strlcpy.patch b/meta-oe/recipes-kernel/crash/crash/0001-make-src-string-const-in-strlcpy.patch deleted file mode 100644 index 546973e0a..000000000 --- a/meta-oe/recipes-kernel/crash/crash/0001-make-src-string-const-in-strlcpy.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 4ee56105881d7bb1da1e668ac5bb47a4e0846676 Mon Sep 17 00:00:00 2001 -From: Lianbo Jiang -Date: Wed, 5 Jul 2023 10:02:59 +0800 -Subject: [PATCH] Fix compilation error due to new strlcpy function that glibc - added -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The crash-utility has its own strlcpy(), but recently the latest glibc -has also implemented the strlcpy function, which is derived from -OpenBSD. Eventually this caused the following compilation error: - - # make -j8 lzo - ... - In file included from global_data.c:18: - defs.h:5556:8: error: conflicting types for ‘strlcpy’; have ‘size_t(char *, char *, size_t)’ {aka ‘long unsigned int(char *, char *, long unsigned int)’} - 5556 | size_t strlcpy(char *, char *, size_t); - | ^~~~~~~ - In file included from memory.c:19: - defs.h:5556:8: error: conflicting types for ‘strlcpy’; have ‘size_t(char *, char *, size_t)’ {aka ‘long unsigned int(char *, char *, long unsigned int)’} - 5556 | size_t strlcpy(char *, char *, size_t); - | ^~~~~~~ - ... - -To fix the issue, let's declare the strlcpy() as a weak function and -keep the same parameter types as the glibc function has. - -Related glibc commits: -454a20c8756c ("Implement strlcpy and strlcat [BZ #178]") -d2fda60e7c40 ("manual: Manual update for strlcat, strlcpy, wcslcat, wclscpy") -388ae538ddcb ("hurd: Add strlcpy, strlcat, wcslcpy, wcslcat to libc.abilist") - -Upstream-Status: Backport [https://github.com/kraj/crash/commit/4ee56105881d7bb1da1e668ac5bb47a4e0846676] -Signed-off-by: Lianbo Jiang ---- - defs.h | 2 +- - tools.c | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/defs.h b/defs.h -index 8f7d1fa..26afe23 100644 ---- a/defs.h -+++ b/defs.h -@@ -5553,7 +5553,7 @@ uint32_t swap32(uint32_t, int); - uint64_t swap64(uint64_t, int); - ulong *get_cpumask_buf(void); - int make_cpumask(char *, ulong *, int, int *); --size_t strlcpy(char *, char *, size_t); -+size_t strlcpy(char *, const char *, size_t) __attribute__ ((__weak__)); - struct rb_node *rb_first(struct rb_root *); - struct rb_node *rb_parent(struct rb_node *, struct rb_node *); - struct rb_node *rb_right(struct rb_node *, struct rb_node *); -diff --git a/tools.c b/tools.c -index 392a797..0f2db10 100644 ---- a/tools.c -+++ b/tools.c -@@ -6795,7 +6795,7 @@ make_cpumask_error: - * always be NULL-terminated. - */ - size_t --strlcpy(char *dest, char *src, size_t size) -+strlcpy(char *dest, const char *src, size_t size) - { - size_t ret = strlen(src); - --- -2.41.0 - diff --git a/meta-oe/recipes-kernel/crash/crash_8.0.2.bb b/meta-oe/recipes-kernel/crash/crash_8.0.4.bb similarity index 100% rename from meta-oe/recipes-kernel/crash/crash_8.0.2.bb rename to meta-oe/recipes-kernel/crash/crash_8.0.4.bb