build: add xargs as prerequisite
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sat, 29 Feb 2020 15:28:44 +0000 (15:28 +0000)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sat, 29 Feb 2020 20:55:37 +0000 (20:55 +0000)
commit4d87963381cbf0f8600388b95fdf825ffe04ede7
treeea959e0cb6b9c2547da7465357ea2674061af1db
parent1c880f23248c71a34ee07e1f854d5b6167c85f2d
build: add xargs as prerequisite

Build system needs an 'xargs' that supports '-r' which darwin doesn't.
Homebrew installs a 'gxargs' with the findutils package so look for
'gxargs' as well as 'xargs'

This is a bit of a 'fun' corner case anyway. xargs is only required by
the build if 'CONFIG_AUTOREMOVE' is set and after the build system has
built 'tools/findutils' we have a fully working xargs for host anyway.
Until that time we have to rely on the host's xargs implementation.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
include/prereq-build.mk