Skip to content

Commit ce5d824

Browse files
committed
move jobs configuration to config.sh
1 parent 590464b commit ce5d824

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

config.sh.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,17 @@ BUILD_DKPRO_PACKAGE=0
2424
#---------------------------------------------------------------------------------
2525
#BUILD_DKPRO_SRCDIR=/d/projects/archives
2626

27+
#---------------------------------------------------------------------------------
28+
# MAKEFLAGS for building - use number of processors for jobs
29+
#---------------------------------------------------------------------------------
30+
#numcores=`getconf _NPROCESSORS_ONLN`
31+
#MAKEFLAGS=-j$numcores
32+
2733
#---------------------------------------------------------------------------------
2834
# Automated script execution
2935
#---------------------------------------------------------------------------------
3036
# 0: Ask to delete build folders & patched sources
3137
# 1: Use defaults, don't pause for answers
3238
#---------------------------------------------------------------------------------
3339
BUILD_DKPRO_AUTOMATED=0
40+

dkarm-eabi/scripts/build-gcc.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/bin/sh
22
#---------------------------------------------------------------------------------
33

4-
numcores=`getconf _NPROCESSORS_ONLN`
5-
6-
numjobs=$(($numcores * 2 + 1))
7-
84
#---------------------------------------------------------------------------------
95
# build and install binutils
106
#---------------------------------------------------------------------------------
@@ -24,7 +20,7 @@ fi
2420

2521
if [ ! -f built-binutils ]
2622
then
27-
$MAKE -j$numjobs || { echo "Error building binutils"; exit 1; }
23+
$MAKE || { echo "Error building binutils"; exit 1; }
2824
touch built-binutils
2925
fi
3026

@@ -74,7 +70,7 @@ fi
7470

7571
if [ ! -f built-gcc ]
7672
then
77-
$MAKE all-gcc -j$numjobs || { echo "Error building gcc stage1"; exit 1; }
73+
$MAKE all-gcc || { echo "Error building gcc stage1"; exit 1; }
7874
touch built-gcc
7975
fi
8076

@@ -109,7 +105,7 @@ fi
109105

110106
if [ ! -f built-newlib ]
111107
then
112-
$MAKE -j$numjobs || { echo "Error building newlib"; exit 1; }
108+
$MAKE || { echo "Error building newlib"; exit 1; }
113109
touch built-newlib
114110
fi
115111

@@ -130,7 +126,7 @@ cd $target/gcc
130126

131127
if [ ! -f built-stage2 ]
132128
then
133-
$MAKE all -j$numjobs || { echo "Error building gcc stage2"; exit 1; }
129+
$MAKE all || { echo "Error building gcc stage2"; exit 1; }
134130
touch built-stage2
135131
fi
136132

@@ -166,7 +162,7 @@ fi
166162

167163
if [ ! -f built-gdb ]
168164
then
169-
$MAKE -j$numjobs || { echo "Error building gdb"; exit 1; }
165+
$MAKE || { echo "Error building gdb"; exit 1; }
170166
touch built-gdb
171167
fi
172168

0 commit comments

Comments
 (0)