Skip to contentSkip to conversation

crash: add new recipe

PATCH New Lei Maohui 1 participant 1 message Jan 12, 2015

lore
Share & tools
lore

Lei Maohui

author
#0 lore raw

PATCH v2 1/1 crash: add new recipe

crash core analysis suite

---
 .../0001-cross_add_configure_option.patch          | 34 +++++++++++++
 .../7001force_define_architecture.patch            | 13 +++++
 .../crash/crash-7.0.9/7003cross_ranlib.patch       | 10 ++++
 .../crash/crash-7.0.9/config-site.crash-7.0.9      |  1 +
 meta-oe/recipes-kernel/crash/crash_7.0.9.bb        | 59 ++++++++++++++++++++++
 5 files changed, 117 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/crash/crash-7.0.9/0001-cross_add_configure_option.patch
 create mode 100644 meta-oe/recipes-kernel/crash/crash-7.0.9/7001force_define_architecture.patch
 create mode 100644 meta-oe/recipes-kernel/crash/crash-7.0.9/7003cross_ranlib.patch
 create mode 100644 meta-oe/recipes-kernel/crash/crash-7.0.9/config-site.crash-7.0.9
 create mode 100644 meta-oe/recipes-kernel/crash/crash_7.0.9.bb
meta-oe/recipes-kernel/crash/crash-7.0.9/0001-cross_add_configure_option.patch new file +34 -0
new file mode 100644
index 0000000..229647f
@@ -0,0 +1,34 @@
+From cbaaa42933bb27b1bcff4c7d71d54c913201ee88 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
+
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 9c44633..39bebd0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -229,7 +229,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; \
+ 	  make --no-print-directory CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \
+ 	else make --no-print-directory rebuild; fi
+@@ -277,7 +277,7 @@ force:
+ 
+ make_configure: force
+ 	@rm -f configure
+-	@${CC} ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS}
++	@cc ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS}
+ 
+ clean: make_configure
+ 	@./configure ${CONF_TARGET_FLAG} -q -b
+-- 
+1.8.4.2
+
meta-oe/recipes-kernel/crash/crash-7.0.9/7001force_define_architecture.patch new file +13 -0
new file mode 100644
index 0000000..0d44c7f
@@ -0,0 +1,13 @@
+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-7.0.9/7003cross_ranlib.patch new file +10 -0
new file mode 100644
index 0000000..d567fa0
@@ -0,0 +1,10 @@
+--- crash-5.1.8/Makefile.orig	2011-12-27 11:21:58.220652105 +0900
++++ crash-5.1.8/Makefile	2011-12-27 11:22:29.563651593 +0900
+@@ -285,6 +285,7 @@
+ 
+ library: make_build_data ${OBJECT_FILES}
+ 	ar -rs ${PROGRAM}lib.a ${OBJECT_FILES}
++	${RANLIB} ${PROGRAM}lib.a 
+ 
+ gdb: force
+ 	rm -f ${GDB_OFILES}
meta-oe/recipes-kernel/crash/crash-7.0.9/config-site.crash-7.0.9 new file +1 -0
new file mode 100644
index 0000000..d6fc22f
@@ -0,0 +1 @@
+bash_cv_have_mbstate_t=yes
meta-oe/recipes-kernel/crash/crash_7.0.9.bb new file +59 -0

59 lines not on this page · raw message

Signature · 1 line
1.8.4.2