Skip to content

Commit

Permalink
Added optional manual override for 'make -j' CPU cores use. (#38)
Browse files Browse the repository at this point in the history
Make CPU cores is usually defined in build_kernel.sh by the number of CPU
cores detected in the system. This patch adds the facility to manually
override this detection in the system.sh script.

Suggested-By: M. J. Everitt <m.j.everitt@iee.org>
  • Loading branch information
mjeveritt authored and RobertCNelson committed Jan 28, 2017
1 parent 66944bc commit c5b78cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build_kernel.sh
Expand Up @@ -21,7 +21,6 @@
# THE SOFTWARE.

DIR=$PWD
CORES=$(getconf _NPROCESSORS_ONLN)
git_bin=$(which git)

mkdir -p "${DIR}/deploy/"
Expand Down Expand Up @@ -230,6 +229,10 @@ fi
. "${DIR}/version.sh"
export LINUX_GIT

if [ ! "${CORES}" ] ; then
CORES=$(getconf _NPROCESSORS_ONLN)
fi

#unset FULL_REBUILD
FULL_REBUILD=1
if [ "${FULL_REBUILD}" ] ; then
Expand Down
3 changes: 3 additions & 0 deletions system.sh.sample
Expand Up @@ -19,6 +19,9 @@ fi

###OPTIONAL:

###OPTIONAL: CORES: number of CPU cores to use for compilation
#CORES=4

###OPTIONAL: LINUX_GIT: specify location of locally cloned git tree.
#
#LINUX_GIT=/home/user/linux-stable/
Expand Down

0 comments on commit c5b78cf

Please sign in to comment.