aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/crash/crash/donnot-extract-gdb-during-do-compile.patch
blob: e254fe877266200889e5bf956ea38499f49005c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Put gdb source tarball in SRC_URI and don't fetch and extract it during
do_compile.

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
diff --git a/Makefile b/Makefile
index bb0a34e..5eb7604 100644
--- a/Makefile
+++ b/Makefile
@@ -226,7 +226,7 @@ all: make_configure
 #	@make --no-print-directory extensions
 
 gdb_merge: force
-	@if [ ! -f ${GDB}/README ]; then \
+	@if [ ! -f ${GDB}/${GDB}.patch ]; then \
 	  make --no-print-directory gdb_unzip; fi
 	@echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs
 	@echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj
@@ -253,11 +253,6 @@ gdb_unzip:
 	@rm -f gdb.files
 	@for FILE in ${GDB_FILES} dummy; do\
 	  echo $$FILE >> gdb.files; done
-	@if [ ! -f ${GDB}.tar.gz ] && [ ! -f /usr/bin/wget ]; then \
-	  echo /usr/bin/wget is required to download ${GDB}.tar.gz; echo; exit 1; fi
-	@if [ ! -f ${GDB}.tar.gz ] && [ -f /usr/bin/wget ]; then \
-	  wget http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi
-	@tar --exclude-from gdb.files -xvzmf ${GDB}.tar.gz
 	@make --no-print-directory gdb_patch
 
 gdb_patch: