diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2023-03-09 13:39:49 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-03-09 09:54:04 -0800 |
commit | 888be5219e147e1b6a285b6111c03095aaf494e8 (patch) | |
tree | e71ff5e9e103c2b56a67279ddc55ae2aca7d1702 /meta-oe/recipes-kernel/crash | |
parent | 4f45bf76d26d1b245a8a58f062d6f5d7bf5e2f68 (diff) | |
download | meta-openembedded-888be5219e147e1b6a285b6111c03095aaf494e8.tar.gz |
crash: Upgrade to 8.0.2
Upgrade crash to 8.0.2 and rebase 4 patches to the new version.
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel/crash')
-rw-r--r-- | meta-oe/recipes-kernel/crash/crash/0001-cross_add_configure_option.patch | 19 | ||||
-rw-r--r-- | meta-oe/recipes-kernel/crash/crash/7003cross_ranlib.patch | 19 | ||||
-rw-r--r-- | meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch | 32 | ||||
-rw-r--r-- | meta-oe/recipes-kernel/crash/crash/gdb_build_jobs_and_not_write_crash_target.patch | 26 | ||||
-rw-r--r-- | meta-oe/recipes-kernel/crash/crash_8.0.2.bb (renamed from meta-oe/recipes-kernel/crash/crash_8.0.0.bb) | 2 |
5 files changed, 65 insertions, 33 deletions
diff --git a/meta-oe/recipes-kernel/crash/crash/0001-cross_add_configure_option.patch b/meta-oe/recipes-kernel/crash/crash/0001-cross_add_configure_option.patch index 26a34e5c1..fc5cc3ddf 100644 --- a/meta-oe/recipes-kernel/crash/crash/0001-cross_add_configure_option.patch +++ b/meta-oe/recipes-kernel/crash/crash/0001-cross_add_configure_option.patch | |||
@@ -1,27 +1,27 @@ | |||
1 | From 73269df4d8196abe81112acaa2613155b308a8b8 Mon Sep 17 00:00:00 2001 | 1 | From e3ba432243d9be4e845daabc78a0ae7c03c680f5 Mon Sep 17 00:00:00 2001 |
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | 2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> |
3 | Date: Fri, 9 Jan 2015 11:51:18 +0900 | 3 | Date: Fri, 9 Jan 2015 11:51:18 +0900 |
4 | Subject: [PATCH 1/9] cross_add_configure_option | 4 | Subject: [PATCH] cross_add_configure_option |
5 | |||
5 | 6 | ||
6 | %% original patch: 0001-cross_add_configure_option.patch | ||
7 | --- | 7 | --- |
8 | Makefile | 4 ++-- | 8 | Makefile | 4 ++-- |
9 | 1 file changed, 2 insertions(+), 2 deletions(-) | 9 | 1 file changed, 2 insertions(+), 2 deletions(-) |
10 | 10 | ||
11 | diff --git a/Makefile b/Makefile | 11 | diff --git a/Makefile b/Makefile |
12 | index a2baec1..f1972c8 100644 | 12 | index 7266e305..390fc0ef 100644 |
13 | --- a/Makefile | 13 | --- a/Makefile |
14 | +++ b/Makefile | 14 | +++ b/Makefile |
15 | @@ -232,7 +232,7 @@ gdb_merge: force | 15 | @@ -260,7 +260,7 @@ gdb_merge: force |
16 | @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj | 16 | @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj |
17 | @rm -f ${PROGRAM} | 17 | @rm -f ${PROGRAM} |
18 | @if [ ! -f ${GDB}/config.status ]; then \ | 18 | @if [ ! -f ${GDB}/config.status ]; then \ |
19 | - (cd ${GDB}; ./configure ${GDB_CONF_FLAGS} --with-separate-debug-dir=/usr/lib/debug \ | 19 | - (cd ${GDB}; ./configure ${GDB_CONF_FLAGS} --with-separate-debug-dir=/usr/lib/debug \ |
20 | + (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \ | 20 | + (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \ |
21 | --with-bugurl="" --with-expat=no --with-python=no --disable-sim; \ | 21 | --with-bugurl="" --with-expat=no --with-python=no --disable-sim; \ |
22 | make --no-print-directory CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \ | 22 | $(MAKE) CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \ |
23 | else make --no-print-directory rebuild; fi | 23 | else $(MAKE) rebuild; fi |
24 | @@ -283,7 +283,7 @@ force: | 24 | @@ -306,7 +306,7 @@ force: |
25 | 25 | ||
26 | make_configure: force | 26 | make_configure: force |
27 | @rm -f configure | 27 | @rm -f configure |
@@ -30,6 +30,3 @@ index a2baec1..f1972c8 100644 | |||
30 | 30 | ||
31 | clean: make_configure | 31 | clean: make_configure |
32 | @./configure ${CONF_TARGET_FLAG} -q -b | 32 | @./configure ${CONF_TARGET_FLAG} -q -b |
33 | -- | ||
34 | 2.8.1 | ||
35 | |||
diff --git a/meta-oe/recipes-kernel/crash/crash/7003cross_ranlib.patch b/meta-oe/recipes-kernel/crash/crash/7003cross_ranlib.patch index d567fa0a8..a0d87f1b9 100644 --- a/meta-oe/recipes-kernel/crash/crash/7003cross_ranlib.patch +++ b/meta-oe/recipes-kernel/crash/crash/7003cross_ranlib.patch | |||
@@ -1,8 +1,19 @@ | |||
1 | --- crash-5.1.8/Makefile.orig 2011-12-27 11:21:58.220652105 +0900 | 1 | From 2f200ceed289f935b5e7ec230454a22dd76e42b0 Mon Sep 17 00:00:00 2001 |
2 | +++ crash-5.1.8/Makefile 2011-12-27 11:22:29.563651593 +0900 | 2 | From: leimaohui <leimaohui@cn.fujitsu.com> |
3 | @@ -285,6 +285,7 @@ | 3 | Date: Mon, 12 Jan 2015 11:52:35 +0800 |
4 | Subject: [PATCH] crash: add new recipe | ||
5 | |||
6 | --- | ||
7 | Makefile | 1 + | ||
8 | 1 file changed, 1 insertion(+) | ||
9 | |||
10 | diff --git a/Makefile b/Makefile | ||
11 | index 79aef176..7266e305 100644 | ||
12 | --- a/Makefile | ||
13 | +++ b/Makefile | ||
14 | @@ -295,6 +295,7 @@ gdb_patch: | ||
4 | 15 | ||
5 | library: make_build_data ${OBJECT_FILES} | 16 | library: ${OBJECT_FILES} |
6 | ar -rs ${PROGRAM}lib.a ${OBJECT_FILES} | 17 | ar -rs ${PROGRAM}lib.a ${OBJECT_FILES} |
7 | + ${RANLIB} ${PROGRAM}lib.a | 18 | + ${RANLIB} ${PROGRAM}lib.a |
8 | 19 | ||
diff --git a/meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch b/meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch index 7133cf0aa..16382877d 100644 --- a/meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch +++ b/meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch | |||
@@ -1,33 +1,45 @@ | |||
1 | From 8b882650b730cb6e025d47d65574f43549b7a1a3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Thu, 9 Mar 2023 10:28:28 +0800 | ||
4 | Subject: [PATCH] Makefile: Put gdb source tarball in SRC_URI | ||
5 | |||
1 | Put gdb source tarball in SRC_URI and don't fetch and extract it during | 6 | Put gdb source tarball in SRC_URI and don't fetch and extract it during |
2 | do_compile. | 7 | do_compile. |
3 | 8 | ||
4 | Upstream-Status: Inappropriate [embedded specific] | 9 | Upstream-Status: Inappropriate [embedded specific] |
5 | 10 | ||
6 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | 11 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
7 | --- | 13 | --- |
14 | Makefile | 8 +------- | ||
15 | 1 file changed, 1 insertion(+), 7 deletions(-) | ||
16 | |||
8 | diff --git a/Makefile b/Makefile | 17 | diff --git a/Makefile b/Makefile |
9 | index bb0a34e..5eb7604 100644 | 18 | index 79aef17..146da6a 100644 |
10 | --- a/Makefile | 19 | --- a/Makefile |
11 | +++ b/Makefile | 20 | +++ b/Makefile |
12 | @@ -228,7 +228,7 @@ all: make_configure | 21 | @@ -254,7 +254,7 @@ all: make_configure |
13 | # @make --no-print-directory extensions | 22 | # @$(MAKE) extensions |
14 | 23 | ||
15 | gdb_merge: force | 24 | gdb_merge: force |
16 | - @if [ ! -f ${GDB}/README ]; then \ | 25 | - @if [ ! -f ${GDB}/README ]; then \ |
17 | + @if [ ! -f ${GDB}/${GDB}.patch ]; then \ | 26 | + @if [ ! -f ${GDB}/${GDB}.patch ]; then \ |
18 | make --no-print-directory gdb_unzip; fi | 27 | $(MAKE) gdb_unzip; fi |
19 | @echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs | 28 | @echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs |
20 | @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj | 29 | @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj |
21 | @@ -255,12 +255,6 @@ gdb_unzip: | 30 | @@ -281,12 +281,6 @@ gdb_unzip: |
22 | @rm -f gdb.files | 31 | @rm -f gdb.files |
23 | @for FILE in ${GDB_FILES} dummy; do\ | 32 | @for FILE in ${GDB_FILES} dummy; do\ |
24 | echo $$FILE >> gdb.files; done | 33 | echo $$FILE >> gdb.files; done |
25 | - @if [ ! -f ${GDB}.tar.gz ] && [ ! -f /usr/bin/wget ]; then \ | 34 | - @if [ ! -f ${GDB}.tar.gz ] && [ ! -f /usr/bin/wget ]; then \ |
26 | - echo /usr/bin/wget is required to download ${GDB}.tar.gz; echo; exit 1; fi | 35 | - echo /usr/bin/wget is required to download ${GDB}.tar.gz; echo; exit 1; fi |
27 | - @if [ ! -f ${GDB}.tar.gz ] && [ -f /usr/bin/wget ]; then \ | 36 | - @if [ ! -f ${GDB}.tar.gz ] && [ -f /usr/bin/wget ]; then \ |
28 | - [ ! -t 2 ] && WGET_OPTS="--progress=dot:mega"; \ | 37 | - [ ! -t 2 ] && WGET_OPTS="--progress=dot:mega"; \ |
29 | - wget $$WGET_OPTS http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi | 38 | - wget $$WGET_OPTS http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi |
30 | - @tar --exclude-from gdb.files -xzmf ${GDB}.tar.gz | 39 | - @tar --exclude-from gdb.files -xzmf ${GDB}.tar.gz |
31 | @make --no-print-directory gdb_patch | 40 | @$(MAKE) gdb_patch |
32 | 41 | ||
33 | gdb_patch: | 42 | gdb_patch: |
43 | -- | ||
44 | 2.25.1 | ||
45 | |||
diff --git a/meta-oe/recipes-kernel/crash/crash/gdb_build_jobs_and_not_write_crash_target.patch b/meta-oe/recipes-kernel/crash/crash/gdb_build_jobs_and_not_write_crash_target.patch index aa5f44dd4..257b4dd2b 100644 --- a/meta-oe/recipes-kernel/crash/crash/gdb_build_jobs_and_not_write_crash_target.patch +++ b/meta-oe/recipes-kernel/crash/crash/gdb_build_jobs_and_not_write_crash_target.patch | |||
@@ -1,3 +1,8 @@ | |||
1 | From af49d8df559aa18f97d14ab7971f211238a16041 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Thu, 9 Mar 2023 10:50:10 +0800 | ||
4 | Subject: [PATCH] Makefile: Don't write ${TARGET} to crash.target | ||
5 | |||
1 | This enables parallel building (multiple jobs in gdb) by reading the | 6 | This enables parallel building (multiple jobs in gdb) by reading the |
2 | value from GDB_MAKE_JOBS. | 7 | value from GDB_MAKE_JOBS. |
3 | 8 | ||
@@ -8,19 +13,26 @@ Upstream-Status: Pending | |||
8 | Don't write ${TARGET} to crash.target which causes rebuild fails. | 13 | Don't write ${TARGET} to crash.target which causes rebuild fails. |
9 | 14 | ||
10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | 15 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
11 | -- | 16 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
17 | --- | ||
18 | Makefile | 4 ++-- | ||
19 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
20 | |||
12 | diff --git a/Makefile b/Makefile | 21 | diff --git a/Makefile b/Makefile |
13 | index 27a1d47..bcf2d2f 100644 | 22 | index cd25c7d..d61c4c5 100644 |
14 | --- a/Makefile | 23 | --- a/Makefile |
15 | +++ b/Makefile | 24 | +++ b/Makefile |
16 | @@ -232,8 +232,8 @@ gdb_merge: force | 25 | @@ -262,8 +262,8 @@ gdb_merge: force |
17 | @if [ ! -f ${GDB}/config.status ]; then \ | 26 | @if [ ! -f ${GDB}/config.status ]; then \ |
18 | (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \ | 27 | (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \ |
19 | --with-bugurl="" --with-expat=no --with-python=no --disable-sim; \ | 28 | --with-bugurl="" --with-expat=no --with-python=no --disable-sim; \ |
20 | - make --no-print-directory CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \ | 29 | - $(MAKE) CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \ |
21 | - else make --no-print-directory rebuild; fi | 30 | - else $(MAKE) rebuild; fi |
22 | + make --no-print-directory CRASH_TARGET=${TARGET} ${GDB_MAKE_JOBS}; ) \ | 31 | + $(MAKE) CRASH_TARGET=${TARGET} ${GDB_MAKE_JOBS}; ) \ |
23 | + else make --no-print-directory ${GDB_MAKE_JOBS} rebuild; fi | 32 | + else $(MAKE) ${GDB_MAKE_JOBS} rebuild; fi |
24 | @if [ ! -f ${PROGRAM} ]; then \ | 33 | @if [ ! -f ${PROGRAM} ]; then \ |
25 | echo; echo "${PROGRAM} build failed"; \ | 34 | echo; echo "${PROGRAM} build failed"; \ |
26 | echo; exit 1; fi | 35 | echo; exit 1; fi |
36 | -- | ||
37 | 2.25.1 | ||
38 | |||
diff --git a/meta-oe/recipes-kernel/crash/crash_8.0.0.bb b/meta-oe/recipes-kernel/crash/crash_8.0.2.bb index 55de6a604..f58bb6ef5 100644 --- a/meta-oe/recipes-kernel/crash/crash_8.0.0.bb +++ b/meta-oe/recipes-kernel/crash/crash_8.0.2.bb | |||
@@ -21,7 +21,7 @@ SRC_URI = "git://github.com/crash-utility/${BPN}.git;branch=master;protocol=http | |||
21 | file://donnot-extract-gdb-during-do-compile.patch \ | 21 | file://donnot-extract-gdb-during-do-compile.patch \ |
22 | file://gdb_build_jobs_and_not_write_crash_target.patch \ | 22 | file://gdb_build_jobs_and_not_write_crash_target.patch \ |
23 | " | 23 | " |
24 | SRCREV = "ec568e2ea515b66343d3488d5d4b9a625d55b7ae" | 24 | SRCREV = "f1cd581d1c4afa5b8ffdfaa6a3ea9f545fe4ec91" |
25 | 25 | ||
26 | SRC_URI[gdb.sha256sum] = "b33ad58d687487a821ec8d878daab0f716be60d0936f2e3ac5cf08419ce70350" | 26 | SRC_URI[gdb.sha256sum] = "b33ad58d687487a821ec8d878daab0f716be60d0936f2e3ac5cf08419ce70350" |
27 | 27 | ||