[dpdk-dev] [PATCH] mk: parallelize make config

Michał Mirosław mirqus at gmail.com
Mon Jan 23 20:03:19 CET 2017


2017-01-22 2:50 GMT+01:00 Ferruh Yigit <ferruh.yigit at intel.com>:
> make config dependency resolving was always running serial,
> parallelize it for better performance.
>
> $ time make T=x86_64-native-linuxapp-gcc config
> real    0m12.633s
>
> $ time make -j8 T=x86_64-native-linuxapp-gcc config
> real    0m1.826s
[...]
> +$(RTE_OUTPUT)/.depdirs: $(DEPDIRS)
> +       @rm -f $@
> +       @for f in $(DEPDIRS); do cat $$f >> $@; done
> +       @sort -u -o $@ $@

This could be just one 'sort -u -o $@ $(DEPDIRS)'

Best Regards,
Michał Mirosław


More information about the dev mailing list