iproute2: avoid unneeded compiles to speed building
authorTony Ambardar <itugrok@yahoo.com>
Sun, 18 Apr 2021 10:09:44 +0000 (03:09 -0700)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Thu, 22 Apr 2021 14:11:36 +0000 (15:11 +0100)
commit3e3af1908c9487e85d5666c83551024b6ec446e2
tree3efa5c6890b4d9f5ea082c1fb874a0db1a4c7a06
parent17576b1b2aeacf0a23bb9a911d675bd324754745
iproute2: avoid unneeded compiles to speed building

Skip building Makefile targets that aren't packaged: tipc, dcb, ifstat,
rtacct, lnstat, and man. Also, only compile targets needed for the current
build variant i.e. don't compile 'tc' when building an 'ip' variant and
vice versa.

These changes reduce typical build times by over 30%:
  $ make package/iproute2/clean && time make -j8 package/iproute2/compile
  (old)
  ...
  real    2m24.985s
  user    3m12.537s
  sys     0m26.677s

  (new)
  ...
  real    1m36.945s
  user    2m8.734s
  sys     0m20.046s

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
package/network/utils/iproute2/Makefile
package/network/utils/iproute2/patches/120-no_arpd.patch [deleted file]
package/network/utils/iproute2/patches/120-no_arpd_ifstat_rtacct_lnstat.patch [new file with mode: 0644]
package/network/utils/iproute2/patches/130-no_netem.patch [deleted file]
package/network/utils/iproute2/patches/130-no_netem_tipc_dcb_man.patch [new file with mode: 0644]
package/network/utils/iproute2/patches/195-build_variant_ip_tc.patch [new file with mode: 0644]