1This enables parallel building (multiple jobs in gdb) by reading the 2value from GDB_MAKE_JOBS. 3 4Signed-off-by: Amy Fong <amy.fong@windriver.com> 5 6Upstream-Status: Pending 7 8Don't write ${TARGET} to crash.target which causes rebuild fails. 9 10Signed-off-by: Kai Kang <kai.kang@windriver.com> 11-- 12diff --git a/Makefile b/Makefile 13index 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 --disable-sim; \ 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 27