1Put gdb source tarball in SRC_URI and don't fetch and extract it during 2do_compile. 3 4Upstream-Status: Inappropriate [embedded specific] 5 6Signed-off-by: Kai Kang <kai.kang@windriver.com> 7--- 8diff --git a/Makefile b/Makefile 9index bb0a34e..5eb7604 100644 10--- a/Makefile 11+++ b/Makefile 12@@ -228,7 +228,7 @@ all: make_configure 13 # @make --no-print-directory extensions 14 15 gdb_merge: force 16- @if [ ! -f ${GDB}/README ]; then \ 17+ @if [ ! -f ${GDB}/${GDB}.patch ]; then \ 18 make --no-print-directory gdb_unzip; fi 19 @echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs 20 @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj 21@@ -255,12 +255,6 @@ gdb_unzip: 22 @rm -f gdb.files 23 @for FILE in ${GDB_FILES} dummy; do\ 24 echo $$FILE >> gdb.files; done 25- @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 27- @if [ ! -f ${GDB}.tar.gz ] && [ -f /usr/bin/wget ]; then \ 28- [ ! -t 2 ] && WGET_OPTS="--progress=dot:mega"; \ 29- wget $$WGET_OPTS http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi 30- @tar --exclude-from gdb.files -xzmf ${GDB}.tar.gz 31 @make --no-print-directory gdb_patch 32 33 gdb_patch: 34