hc
2023-11-07 f45e756958099c35d6afb746df1d40a1c6302cfc
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
33
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
@@ -228,7 +228,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
@@ -255,12 +255,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 \
-      [ ! -t 2 ] && WGET_OPTS="--progress=dot:mega"; \
-      wget $$WGET_OPTS http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi
-    @tar --exclude-from gdb.files -xzmf ${GDB}.tar.gz
   @make --no-print-directory gdb_patch
 
 gdb_patch: