Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | This enables parallel building (multiple jobs in gdb) by reading the |
| 2 | value from GDB_MAKE_JOBS. |
| 3 | |
| 4 | Signed-off-by: Amy Fong <amy.fong@windriver.com> |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Don't write ${TARGET} to crash.target which causes rebuild fails. |
| 9 | |
| 10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 11 | -- |
| 12 | diff --git a/Makefile b/Makefile |
| 13 | index 27a1d47..bcf2d2f 100644 |
| 14 | --- a/Makefile |
| 15 | +++ b/Makefile |
| 16 | @@ -232,8 +232,8 @@ gdb_merge: force |
| 17 | @if [ ! -f ${GDB}/config.status ]; then \ |
| 18 | (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \ |
| 19 | --with-bugurl="" --with-expat=no --with-python=no; \ |
| 20 | - make --no-print-directory CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \ |
| 21 | - else make --no-print-directory rebuild; fi |
| 22 | + make --no-print-directory CRASH_TARGET=${TARGET} ${GDB_MAKE_JOBS}; ) \ |
| 23 | + else make --no-print-directory ${GDB_MAKE_JOBS} rebuild; fi |
| 24 | @if [ ! -f ${PROGRAM} ]; then \ |
| 25 | echo; echo "${PROGRAM} build failed"; \ |
| 26 | echo; exit 1; fi |