#!/bin/bash
# Builds the kernel and modules
# Assumes that the .config file is available
cd /usr/src/kernel/kernel-4.4
make prepare
make modules_prepare
# Make alone will build the dts files too
# make -j4
make -j4 Image
make modules
make modules_install


#!/bin/bash
# Builds the kernel and modules
# Assumes that the .config file is available
cd /usr/src/kernel/kernel-4.4
make prepare
make modules_prepare
# Make alone will build the dts files too
NUM_CPU=$(nproc)
make -j$NUM_CPU Image
make modules
make modules_install


Set number of CPUs for make
Set number of CPUs for make
