Skip to contentSkip to conversation

crash 8.0.6 -> 9.0.2 + crash-memory-driver

PATCH New Khem Raj 1 participant 3 messages Jun 25

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 crash 8.0.6 -> 9.0.2 + crash-memory-driver

From: Robert Berger <[email protected]>

1) crash-memory-driver: fixed typo to include proper patch
2) crash-memory-driver: keep license,...

patch against comments on pull request:

1) HOMEPAGE updated
2) UPSTREAM_CHECK_URI updated
3) exports removed
4) if [ -f "gdb-16.2.patch" ]; then... removed
5) notes about QA Issue: reference to TMPDIR [buildpaths] added
6) notes ./crash --buildinfo removed
7) LIC_FILES_CHKSUM: use license text in crash.c
8) PV = "9.0.2+git${SRCPV}" -> SRCPV removed
9) removed unused patches
10) crash: LICENSE = GPL-3.0-only

---
 .../crash/crash-cross-canadian_8.0.6.bb       |  52 -------
 .../crash/crash-cross-canadian_9.0.2.bb       |  73 ++++++++++
 ...1-hacked-Makefile-for-module.bbclass.patch |  52 +++++++
 .../crash/crash-memory-driver_9.0.2.bb        |  26 ++++
 meta-oe/recipes-kernel/crash/crash.inc        | 135 +++++++++++------
 ...e-CC-env-var-to-get-compiler-version.patch |   9 +-
 .../0001-cross_add_configure_option.patch     |  34 -----
 ...x-S-cannot-work-with-kaslr-detection.patch |  20 ++-
 ...sk-to-better-support-gdb-stack-unwin.patch |  85 -----------
 ...03-Fix-build-failure-in-readline-lib.patch | 136 ------------------
 ...se-keywords-nullptr-as-a-variable-in.patch |  60 --------
 ...-build-failure-on-32bit-machine-i686.patch |  83 -----------
 ...port-fix-default-init-alloc-for-C-20.patch |  82 -----------
 .../crash/7001force_define_architecture.patch |  15 --
 .../crash/crash/7003cross_ranlib.patch        |  10 +-
 ...donnot-extract-gdb-during-do-compile.patch |  45 ------
 ...uild_jobs_and_not_write_crash_target.patch |  12 +-
 .../crash/{crash_8.0.6.bb => crash_9.0.2.bb}  |   1 -
 18 files changed, 264 insertions(+), 666 deletions(-)
 delete mode 100644 meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.6.bb
 create mode 100644 meta-oe/recipes-kernel/crash/crash-cross-canadian_9.0.2.bb
 create mode 100644 meta-oe/recipes-kernel/crash/crash-memory-driver/0001-hacked-Makefile-for-module.bbclass.patch
 create mode 100644 meta-oe/recipes-kernel/crash/crash-memory-driver_9.0.2.bb
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/0001-cross_add_configure_option.patch
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/0002-arm64-add-pac-mask-to-better-support-gdb-stack-unwin.patch
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/0003-Fix-build-failure-in-readline-lib.patch
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/0004-tools.c-do-not-use-keywords-nullptr-as-a-variable-in.patch
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/0005-Fix-build-failure-on-32bit-machine-i686.patch
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/0006-gdbsupport-fix-default-init-alloc-for-C-20.patch
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/7001force_define_architecture.patch
 delete mode 100644 meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch
 rename meta-oe/recipes-kernel/crash/{crash_8.0.6.bb => crash_9.0.2.bb} (99%)
meta-oe/recipes-kernel/crash/crash-cross-canadian_8.0.6.bb deleted +0 -52
deleted file mode 100644
index bafe56d2c4..0000000000
@@ -1,52 +0,0 @@
-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
-
-
-DEPENDS = "\
-    nativesdk-ncurses \
-    nativesdk-expat \
-    nativesdk-gettext \
-    nativesdk-gmp \
-    nativesdk-mpfr \
-    nativesdk-readline \
-    nativesdk-zlib \
-    virtual/nativesdk-cross-cc \
-    virtual/nativesdk-cross-binutils \
-    virtual/nativesdk-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/<vmlinux file> $OECORE_TARGET_SYSROOT/boot/<System.map file> <your vmcore>
-
-do_install:class-cross-canadian () {
-    install -m 0755 ${S}/crash ${D}/${bindir}
-    cross_canadian_bindirlinks
-}
meta-oe/recipes-kernel/crash/crash-cross-canadian_9.0.2.bb new file +73 -0

73 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash-memory-driver/0001-hacked-Makefile-for-module.bbclass.patch new file +52 -0

52 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash-memory-driver_9.0.2.bb new file +26 -0
new file mode 100644
index 0000000000..46de814e9b
@@ -0,0 +1,26 @@
+DESCRIPTION = "Once installed, the /dev/crash driver will be used by default for live system crash sessions."
+SECTION = "devel"
+SUMMARY = "/dev/crash driver"
+HOMEPAGE = "https://github.com/crash-utility/crash/tree/master/memory_driver"
+RECIPE_MAINTAINER = "Robert Berger <[email protected]>"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://crash.c;beginline=1;endline=25;md5=c278eae78e2bf99783849a90f03d0e43"
+
+inherit module
+
+SRCREV = "61fe107ff96a22e7df0029877529b7ce6da36850"
+SRC_URI = "git://github.com/crash-utility/crash;protocol=https;branch=master;subpath=memory_driver;destsuffix=${BP} \
+           file://0001-hacked-Makefile-for-module.bbclass.patch;striplevel=2 \
+           "
+PV = "9.0.2+git"
+
+# The inherit of module.bbclass will automatically name module packages with
+# "kernel-module-" prefix as required by the oe-core build environment.
+
+RPROVIDES:${PN} += "kernel-module-crash-memory-driver"
+
+# to local.conf add:
+#    to add the kernel module to the rootfs:
+# MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-crash-memory-driver"
+#    to autoload it:
+# KERNEL_MODULE_AUTOLOAD += "crash"
meta-oe/recipes-kernel/crash/crash.inc +89 -46

179 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash/0001-Use-CC-env-var-to-get-compiler-version.patch +5 -4
index 773598def1..2e4b3fdd4f 100644
@@ -1,7 +1,7 @@
-From 6ad5e9302057e157ab701880a8543ca59058df2d Mon Sep 17 00:00:00 2001
+From df98eb38b680fd633a6e87679d7267252849764d Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?K=C3=A9l=C3=A9fa=20San=C3=A9?= <[email protected]>
 Date: Fri, 16 May 2025 16:18:28 +0200
-Subject: [PATCH v2] Use CC env var to get compiler version
+Subject: [PATCH] Use CC env var to get compiler version
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
@@ -19,15 +19,16 @@ compiler version, when the CC env var is define.
 Upstream-Status: Submitted [https://lists.crash-utility.osci.io/archives/list/[email protected]/thread/V3G3QH3YW6WZWD56TVTFQIHYLZ33UIJL/]
 
 Signed-off-by: Kéléfa Sané <[email protected]>
+Signed-off-by: Robert Berger <[email protected]>
 ---
  configure.c | 12 +++++++++++-
  1 file changed, 11 insertions(+), 1 deletion(-)
 
 diff --git a/configure.c b/configure.c
-index 4668c9a..4b65bd7 100644
+index 6e39d87..74e88b7 100644
 --- a/configure.c
 +++ b/configure.c
-@@ -1362,7 +1362,17 @@ make_build_data(char *target)
+@@ -1381,7 +1381,17 @@ make_build_data(char *target)
 
          fp1 = popen("date", "r");
          fp2 = popen("id", "r");
meta-oe/recipes-kernel/crash/crash/0001-cross_add_configure_option.patch deleted +0 -34
deleted file mode 100644
index fc99ff5187..0000000000
@@ -1,34 +0,0 @@
-From e3ba432243d9be4e845daabc78a0ae7c03c680f5 Mon Sep 17 00:00:00 2001
-From: Lei Maohui <[email protected]>
-Date: Fri, 9 Jan 2015 11:51:18 +0900
-Subject: [PATCH] cross_add_configure_option
-
-
----
-Upstream-Status: Pending
-
- Makefile | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 7266e305..390fc0ef 100644
---- a/Makefile
-+++ b/Makefile
-@@ -260,7 +260,7 @@ gdb_merge: force
- 	@echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj
- 	@rm -f ${PROGRAM}
- 	@if [ ! -f ${GDB}/config.status ]; then \
--	  (cd ${GDB}; ./configure ${GDB_CONF_FLAGS} --with-separate-debug-dir=/usr/lib/debug \
-+	  (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \
- 	    --with-bugurl="" --with-expat=no --with-python=no --disable-sim; \
- 	  $(MAKE) CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \
- 	else $(MAKE) rebuild; fi
-@@ -306,7 +306,7 @@ force:
-
- make_configure: force
- 	@rm -f configure
--	@${CC} ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS}
-+	@${BUILD_CC} ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS}
-
- clean: make_configure
- 	@./configure ${CONF_TARGET_FLAG} -q -b
meta-oe/recipes-kernel/crash/crash/0001-symbol-fix-S-cannot-work-with-kaslr-detection.patch +9 -11
index 47182f8b6c..845239db39 100644
@@ -1,4 +1,4 @@
-From 329bd56da28fc1b5b53a60ca2172643d2090435d Mon Sep 17 00:00:00 2001
+From 35a721485f2a20ebb18d9f4ab48b7cf293369a70 Mon Sep 17 00:00:00 2001
 From: Tao Liu <[email protected]>
 Date: Fri, 13 Dec 2024 08:36:03 +0000
 Subject: [PATCH] symbol: fix -S cannot work with kaslr detection
@@ -15,15 +15,16 @@ Upstream-Status: Pending
 [https://lists.crash-utility.osci.io/archives/list/[email protected]/thread/5OXNYPPU6GLLQKCWH7WBNBJXLNZ4EBZD/]
 
 Signed-off-by: Xiangyu Chen <[email protected]>
+Signed-off-by: Robert Berger <[email protected]>
 ---
  symbols.c | 18 ++++++++++--------
  1 file changed, 10 insertions(+), 8 deletions(-)
 
 diff --git a/symbols.c b/symbols.c
-index a3cd0f3..6062d21 100644
+index e6865ca..0028874 100644
 --- a/symbols.c
 +++ b/symbols.c
-@@ -25,7 +25,7 @@
+@@ -26,7 +26,7 @@
 
  static void store_symbols(bfd *, int, void *, long, unsigned int);
  static void store_sysmap_symbols(void);
@@ -32,7 +33,7 @@ index a3cd0f3..6062d21 100644
  static int relocate_force(ulong, char *);
  static void kaslr_init(void);
  static void strip_module_symbol_end(char *s);
-@@ -230,6 +230,7 @@ symtab_init(void)
+@@ -231,6 +231,7 @@ symtab_init(void)
  				DEBUGINFO_ERROR_MESSAGE1 :
  				DEBUGINFO_ERROR_MESSAGE2);
  		}
@@ -40,7 +41,7 @@ index a3cd0f3..6062d21 100644
  		store_sysmap_symbols();
  		return;
  	} else if (LKCD_KERNTYPES())
-@@ -817,7 +818,7 @@ store_symbols(bfd *abfd, int dynamic, void *minisyms, long symcount,
+@@ -818,7 +819,7 @@ store_symbols(bfd *abfd, int dynamic, void *minisyms, long symcount,
  		    syminfo.type)) {
  			if (kt->flags & (RELOC_SET|RELOC_FORCE))
  				sp->value = relocate(syminfo.value,
@@ -49,7 +50,7 @@ index a3cd0f3..6062d21 100644
  			else
  				sp->value = syminfo.value;
  			sp->type = syminfo.type;
-@@ -893,9 +894,9 @@ store_sysmap_symbols(void)
+@@ -894,9 +895,9 @@ store_sysmap_symbols(void)
 
                  if (machdep->verify_symbol(name, syment.value,
  		    syment.type)) {
@@ -61,7 +62,7 @@ index a3cd0f3..6062d21 100644
  			else
  				sp->value = syment.value;
                          sp->type = syment.type;
-@@ -924,7 +925,7 @@ store_sysmap_symbols(void)
+@@ -925,7 +926,7 @@ store_sysmap_symbols(void)
   *  are not as loaded into the kernel (not unity-mapped).
   */
  static ulong
@@ -70,7 +71,7 @@ index a3cd0f3..6062d21 100644
  {
  	if (XEN_HYPER_MODE()) {
  		kt->flags &= ~(RELOC_SET|RELOC_FORCE);
-@@ -937,9 +938,10 @@ relocate(ulong symval, char *symname, int first_symbol)
+@@ -938,9 +939,10 @@ relocate(ulong symval, char *symname, int first_symbol)
  		break;
 
  	case RELOC_FORCE:
@@ -84,6 +85,3 @@ index a3cd0f3..6062d21 100644
  	}
 
  	if (machine_type("X86_64")) {
---
-2.35.5
-
meta-oe/recipes-kernel/crash/crash/0002-arm64-add-pac-mask-to-better-support-gdb-stack-unwin.patch deleted +0 -85

85 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash/0003-Fix-build-failure-in-readline-lib.patch deleted +0 -136

136 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash/0004-tools.c-do-not-use-keywords-nullptr-as-a-variable-in.patch deleted +0 -60

60 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash/0005-Fix-build-failure-on-32bit-machine-i686.patch deleted +0 -83

83 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash/0006-gdbsupport-fix-default-init-alloc-for-C-20.patch deleted +0 -82

82 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash/7001force_define_architecture.patch deleted +0 -15
deleted file mode 100644
index b5f97228de..0000000000
@@ -1,15 +0,0 @@
-Upstream-Status: Pending
-
-diff -uprN crash-5.1.8.org/configure.c crash-5.1.8/configure.c
---- crash-5.1.8.org/configure.c	2011-09-17 04:01:12.000000000 +0900
-+++ crash-5.1.8/configure.c	2012-09-13 13:28:45.393344108 +0900
-@@ -391,6 +391,9 @@ get_current_configuration(struct support
- 			arch_mismatch(sp);
- 	}
-
-+	/** Force define archtecture */
-+	target_data.target = FORCE_DEFINE_ARCH;
-+
-         if ((fp = fopen("Makefile", "r")) == NULL) {
- 		perror("Makefile");
- 		goto get_release;
meta-oe/recipes-kernel/crash/crash/7003cross_ranlib.patch +5 -5
index 2d01453059..17439c7263 100644
@@ -1,19 +1,19 @@
-From 2f200ceed289f935b5e7ec230454a22dd76e42b0 Mon Sep 17 00:00:00 2001
+From 72921a32cc2c1df390265e8c4e205bc5ba2b985d Mon Sep 17 00:00:00 2001
 From: leimaohui <[email protected]>
 Date: Mon, 12 Jan 2015 11:52:35 +0800
 Subject: [PATCH] crash: add new recipe
 
----
 Upstream-Status: Pending
-
+Signed-off-by: Robert.Berger <[email protected]>
+---
  Makefile | 1 +
  1 file changed, 1 insertion(+)
 
 diff --git a/Makefile b/Makefile
-index 79aef176..7266e305 100644
+index 58b1326..f2c945a 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -295,6 +295,7 @@ gdb_patch:
+@@ -349,6 +349,7 @@ gdb_patch:
 
  library: ${OBJECT_FILES}
  	ar -rs ${PROGRAM}lib.a ${OBJECT_FILES}
meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch deleted +0 -45

45 lines not on this page · raw message

meta-oe/recipes-kernel/crash/crash/gdb_build_jobs_and_not_write_crash_target.patch +5 -7
index 257b4dd2bf..a0f8e24cfa 100644
@@ -1,4 +1,4 @@
-From af49d8df559aa18f97d14ab7971f211238a16041 Mon Sep 17 00:00:00 2001
+From 43d02dfa24f9f04e60911593e47e9cc2d68562e3 Mon Sep 17 00:00:00 2001
 From: Mingli Yu <[email protected]>
 Date: Thu, 9 Mar 2023 10:50:10 +0800
 Subject: [PATCH] Makefile: Don't write ${TARGET} to crash.target
@@ -14,17 +14,18 @@ Don't write ${TARGET} to crash.target which causes rebuild fails.
 
 Signed-off-by: Kai Kang <[email protected]>
 Signed-off-by: Mingli Yu <[email protected]>
+Signed-off-by: Robert Berger <[email protected]>
 ---
  Makefile | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/Makefile b/Makefile
-index cd25c7d..d61c4c5 100644
+index f2c945a..9fdb29b 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -262,8 +262,8 @@ gdb_merge: force
+@@ -316,8 +316,8 @@ gdb_merge: force
  	@if [ ! -f ${GDB}/config.status ]; then \
- 	  (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \
+ 	  (cd ${GDB}; ./configure ${GDB_CONF_FLAGS} --with-separate-debug-dir=/usr/lib/debug \
  	    --with-bugurl="" --with-expat=no --with-python=no --disable-sim; \
 -	  $(MAKE) CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \
 -	else $(MAKE) rebuild; fi
@@ -33,6 +34,3 @@ index cd25c7d..d61c4c5 100644
  	@if [ ! -f ${PROGRAM} ]; then \
  	  echo; echo "${PROGRAM} build failed"; \
  	  echo; exit 1; fi
---
-2.25.1
-
meta-oe/recipes-kernel/crash/crash_9.0.2.bb renamed from meta-oe/recipes-kernel/crash/crash_8.0.6.bb +0 -1
similarity index 99%
rename from meta-oe/recipes-kernel/crash/crash_8.0.6.bb
rename to meta-oe/recipes-kernel/crash/crash_9.0.2.bb
index 893d4de410..d0f0de7e5f 100644
@@ -1,6 +1,5 @@
 require crash.inc
 
-
 BBCLASSEXTEND = "native cross"
 
 EXTRA_OEMAKE:class-cross = 'RPMPKG="${PV}" \
author
#1 lore raw

PATCH 2/3 crash: drop unnecessary git scaffolding from do_compile

The do_compile:prepend ran "git init && git add . && git commit" inside the staged gdb-16.2 tree. crash's build does not use git at all - the bundled gdb is unpacked from a release tarball and merged with plain "patch -p0" - so this served no purpose and only made the build depend on a working git identity.

In any environment where committer identity is unset, or where commit signing is enabled globally (commit.gpgsign=true), do_compile fails with:

error: gpg failed to sign the data
fatal: failed to write commit object

Drop the git scaffolding entirely; the gdb patch still applies with patch(1).

---
 meta-oe/recipes-kernel/crash/crash.inc | 11 -----------
 1 file changed, 11 deletions(-)
meta-oe/recipes-kernel/crash/crash.inc +0 -11
index 4e889f7677..e7b3b9cf13 100644
@@ -90,13 +90,6 @@ do_compile:prepend() {
     # 2. Copy the official clean GNU tarball source footprint into the active workspace mapping
     cp -rf ${UNPACKDIR}/gdb/gdb-16.2 ${B}/gdb-16.2
 
-    # 3. Initialize the localized tracking repository required by the crash build architecture
-    cd ${B}/gdb-16.2/
-    git init
-    git add .
-    git commit -m "initial commit"
-    cd ${B}
-
     bbnote "Writing dynamic target layout architecture context: ${ARCH_UPPER}"
     echo "${ARCH_UPPER}" > ${B}/gdb-16.2/crash.target
 
@@ -110,10 +103,6 @@ do_compile:prepend() {
     cd ${B}
     bbnote "Applying the native upstream crash integration patch onto the GDB source tree..."
     patch -p0 --fuzz=3 < gdb-16.2.patch
-    cd ${B}/gdb-16.2/
-    git add .
-    git commit -m "after upstream crash gdb-16.2.patch"
-    cd ${B}
 }
 
 do_compile() {
author
#2 lore raw

PATCH 3/3 crash: fix buildpaths QA properly via gdb --with-sysroot=/

In reply to Khem Raj

The recipe passed --with-sysroot=${STAGING_DIR_TARGET} to the bundled gdb's configure. gdb bakes that path in as its default target sysroot, so the resulting /usr/bin/crash binary embedded the build-time recipe-sysroot path:

File /usr/bin/crash in package crash contains reference to TMPDIR [buildpaths]

This was worked around by demoting the buildpaths QA check to a warning (ERROR_QA:remove / WARN_QA:append), which only hides the problem - the build path is still wrong for a binary that runs on the target (or, for the cross-canadian variant, in the SDK).

Set --with-sysroot=/ instead. crash takes the kernel/vmlinux and dump on its command line, so gdb's compiled-in default sysroot is irrelevant at runtime; "/" is both a sane default and contains no build path. With this the binary no longer references TMPDIR, so the QA suppression can be removed and the buildpaths check passes for real.

Verified with a clean build for qemux86-64: no buildpaths QA issue and no TMPDIR references remain in the crash binary.

---
 .../recipes-kernel/crash/crash-cross-canadian_9.0.2.bb   | 2 +-
 meta-oe/recipes-kernel/crash/crash.inc                   | 9 +--------
 2 files changed, 2 insertions(+), 9 deletions(-)
meta-oe/recipes-kernel/crash/crash-cross-canadian_9.0.2.bb +1 -1
index 0ab18cb3d4..1a62441c05 100644
@@ -37,7 +37,7 @@ EXTRA_OEMAKE:class-cross-canadian = ' \
                     --target=${TARGET_SYS} \
                     --disable-gdbserver \
                     --disable-gprofng \
-                    --with-sysroot=${STAGING_DIR_TARGET} \
+                    --with-sysroot=/ \
                     ac_cv_type_gregset_t=yes \
                     ac_cv_type_fpregset_t=yes \
                     ac_cv_header_sys_procfs_h=yes" \
meta-oe/recipes-kernel/crash/crash.inc +1 -8
index e7b3b9cf13..57a6c23bc4 100644
@@ -58,7 +58,7 @@ EXTRA_OEMAKE = ' \
                     --target=${TARGET_SYS} \
                     --disable-gdbserver \
                     --disable-gprofng \
-                    --with-sysroot=${STAGING_DIR_TARGET} \
+                    --with-sysroot=/ \
                     ac_cv_type_gregset_t=yes \
                     ac_cv_type_fpregset_t=yes \
                     ac_cv_header_sys_procfs_h=yes" \
@@ -121,10 +121,3 @@ do_install:prepend () {
 RDEPENDS:${PN} += "liblzma"
 
 ARM_INSTRUCTION_SET = "arm"
-
-# WARNING: crash-9.0.2-r0 do_package_qa: QA Issue: File /usr/bin/crash in package crash contains reference to TMPDIR [buildpaths]
-#
-# WARNING: crash-cross-canadian-aarch64-9.0.2-r0 do_package_qa: QA Issue: File /opt/phytec-ampliphy-resy-systemd/6.0.98-devel/sysroots/x86_64-resysdk-linux/usr/bin/aarch64-resy-linux/crash in package crash-cross-canadian-aarch64 contains reference to TMPDIR [buildpaths]
-#
-ERROR_QA:remove = "buildpaths"
-WARN_QA:append = " buildpaths"