Verified Commit 270a5465 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

build_uboot.sh: Use paralel building based on number of CPU threads

This makes the build much faster on multi-core systems.
parent 76411546
Pipeline #70668 passed with stage
in 8 seconds
......@@ -63,10 +63,10 @@ function build_uboot()
cd "u-boot-${board}"
fi
make ARCH="${arch}" CROSS_COMPILE="${cc}" "${config}"
make ARCH="${arch}" CROSS_COMPILE="${cc}"
make ARCH="${arch}" CROSS_COMPILE="${cc}" "-j$(nproc)"
if [ -z "${MKIMAGE_REPO}" ]; then
make ARCH="${arch}" CROSS_COMPILE="${cc}" flash.bin
make ARCH="${arch}" CROSS_COMPILE="${cc}" u-boot.imx
make ARCH="${arch}" CROSS_COMPILE="${cc}" "-j$(nproc)" flash.bin
make ARCH="${arch}" CROSS_COMPILE="${cc}" "-j$(nproc)" u-boot.imx
fi
cd ..
}
......@@ -81,7 +81,7 @@ function build_cortex_m4()
fi
cd Cortex_M4
make
make "-j$(nproc)"
mkdir -p "${out}"
cp m4.bin "${out}/"
......@@ -103,7 +103,7 @@ function build_atf()
cd "${ATF_DIR}"
git checkout "${ATF_BRANCH}"
make PLAT="${ATF_PLAT}" CROSS_COMPILE="${CROSS_COMPILER}" bl31
make PLAT="${ATF_PLAT}" CROSS_COMPILE="${CROSS_COMPILER}" "-j$(nproc)" bl31
cd "${CWD}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment