From c2e90469dbe88e694865107498fa7cac1de6fb9d Mon Sep 17 00:00:00 2001 From: mayfrost Date: Sat, 13 Oct 2018 20:54:55 +0000 Subject: [PATCH] Update CROSS-COMPILING.md --- CROSS-COMPILING.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CROSS-COMPILING.md b/CROSS-COMPILING.md index 3e57309..ba18187 100644 --- a/CROSS-COMPILING.md +++ b/CROSS-COMPILING.md @@ -126,11 +126,11 @@ make odroidc2_defconfig ## COMPILING KERNEL * Compiling the devicetree blobs -`make -j 4 ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_DTBS_PATH=/mnt/boot/dtbs/ dtbs` +`make -j $(nproc) ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_DTBS_PATH=/mnt/boot/dtbs/ dtbs` * Compiling the kernel -`make -j 4 ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_PATH=/mnt/boot/ Image` +`make -j $(nproc) ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_PATH=/mnt/boot/ Image` * Compiling the modules -`make -j 4 ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/ modules` +`make -j $(nproc) ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/ modules` * Installing the kernel to destination "/mnt/boot/Image" `cp arch/arm64/boot/Image /mnt/boot/` * Creating the devicetree directory @@ -138,11 +138,11 @@ make odroidc2_defconfig * Installing the devicetree blobs to destination "/mnt/boot/dtbs/meson64_odroidc2.dtb" `cp arch/arm64/boot/dts/meson64_odroidc2.dtb /mnt/boot/dtbs/` * Installing the modules to destination "INSTALL_MOD_PATH=/mnt/" -`make -j 4 ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/ modules_install` +`make -j $(nproc) ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/ modules_install` * Compiling the firmware to destination "INSTALL_FW_PATH=/mnt/lib/firmware/" -`make -j 4 ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_FW_PATH=/mnt/lib/firmware/ firmware_install` +`make -j $(nproc) ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_FW_PATH=/mnt/lib/firmware/ firmware_install` * Compiling the kernel C headers to destination "INSTALL_HDR_PATH=/mnt/usr/" -`make -j 4 ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_HDR_PATH=/mnt/usr/ headers_install` +`make -j $(nproc) ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- INSTALL_HDR_PATH=/mnt/usr/ headers_install` ## BOOTLOADER @@ -160,7 +160,7 @@ cd /mnt/boot git clone https://github.com/hardkernel/u-boot.git -b odroidc2-v2015.01 cd u-boot make ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- odroidc2_defconfig -make -j4 +make -j $(nproc) cd boot ```