Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Put gdb source tarball in SRC_URI and don't fetch and extract it during |
| 2 | do_compile. |
| 3 | |
| 4 | Upstream-Status: Inappropriate [embedded specific] |
| 5 | |
| 6 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 7 | --- |
| 8 | diff --git a/Makefile b/Makefile |
| 9 | index bb0a34e..5eb7604 100644 |
| 10 | --- a/Makefile |
| 11 | +++ b/Makefile |
| 12 | @@ -226,7 +226,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 | @@ -253,11 +253,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 | - wget http://ftp.gnu.org/gnu/gdb/${GDB}.tar.gz; fi |
| 29 | - @tar --exclude-from gdb.files -xvzmf ${GDB}.tar.gz |
| 30 | @make --no-print-directory gdb_patch |
| 31 | |
| 32 | gdb_patch: |