RB wrote:
>> You can run make with the parameter "-j2" or "-j4" and it will run this
>> amount of processes in parallel, but with openwrt it's not possible (always
>> says: jobserver unavailable, add '+' to parent make rule)...
>> Is there a simple way to change this so I can make use of all my cores?
>
> If you actually paid attention to the build process and were actually
> familiar with the '-jX' argument, you'd know that some builds (or
> portions therein) break when done in parallel, so they force the
> jobserver down to '1' to avoid the problem. You'd also know to watch
> your system utilization later in the build and see all your pretty
> little cores working away on some other portion of the build that is
> happily parallelizable.
>
Strange.. I don't see kernel compiling in parallel. In fact it only happens if
I add
-j4 manually to include/kernel-defaults.mk:
--- include/kernel-defaults.mk (revision 12201)
+++ include/kernel-defaults.mk (working copy)
@@ -23,7 +23,8 @@
CROSS_COMPILE="$(KERNEL_CROSS)" \
ARCH="$(LINUX_KARCH)" \
KBUILD_HAVE_NLS=no \
- CONFIG_SHELL="$(BASH)"
+ CONFIG_SHELL="$(BASH)" \
+ -j4
INITRAMFS_EXTRA_FILES ?= $(GENERIC_PLATFORM_DIR)/image/initramfs-base-files.txt
Now I can see all 4 cores at 80-90% while kernel is compiling! uclibc buildroot
has
nice feature in config that allows you to set number of simultaneous jobs and it
*really* make a lot of difference (at least here on quadcore). The time
difference
is shown below:
make:
real 6m0.386s
user 5m32.753s
sys 0m27.186s
make -j4:
real 1m46.807s
user 5m39.773s
sys 0m29.994s
Regards,
Hinko
--
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: [EMAIL PROTECTED]
Http: www.cetrtapot.si
_______________________________________________
openwrt-users mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users