From 77de2be60e3c51c2d74b09f6c6d329a5b437de9a Mon Sep 17 00:00:00 2001 From: Ivan Davidov Date: Thu, 19 Mar 2015 20:47:31 +0200 Subject: [PATCH] Added possible compilation improvement which utilizes all processor cores. This should be a significant improvement. I haven't tested this yet. --- src/2_build_kernel.sh | 1 + src/4_build_busybox.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/src/2_build_kernel.sh b/src/2_build_kernel.sh index 0b406adab..bbe958721 100755 --- a/src/2_build_kernel.sh +++ b/src/2_build_kernel.sh @@ -17,6 +17,7 @@ sed -i "s/.*CONFIG_DEFAULT_HOSTNAME.*/CONFIG_DEFAULT_HOSTNAME=\"minimal\"/" .con # Compile the kernel # Good explanation of the different kernels # http://unix.stackexchange.com/questions/5518/what-is-the-difference-between-the-following-kernel-makefile-terms-vmlinux-vmlinux +# TODO - Suggested by Ronny Kalusniok - test this for parallel compilation: "make bzImage -j $(grep ^processor /proc/cpuinfo)". make bzImage cd ../../.. diff --git a/src/4_build_busybox.sh b/src/4_build_busybox.sh index 7c457dfa5..9d0360f73 100755 --- a/src/4_build_busybox.sh +++ b/src/4_build_busybox.sh @@ -16,6 +16,7 @@ make defconfig sed -i "s/.*CONFIG_STATIC.*/CONFIG_STATIC=y/" .config # Compile busybox +# TODO - Suggested by Ronny Kalusniok - test this for parallel compilation: "make busybox -j $(grep ^processor /proc/cpuinfo)". make busybox # Create the symlinks for busybox