aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/config-5.10
diff options
context:
space:
mode:
authorMark Mentovai <mark@moxienet.com>2022-06-09 11:00:58 -0400
committerHauke Mehrtens <hauke@hauke-m.de>2022-06-27 22:34:05 +0200
commit63b4881fcbed021516931137c6e2131e0aa7b9d5 (patch)
tree51bbbe77b9f5caa36b580acb4f577ac121309dce /target/linux/ath79/config-5.10
parentd989124c02bf5662ccf638d361229bd5ea7bcd93 (diff)
downloadupstream-63b4881fcbed021516931137c6e2131e0aa7b9d5.tar.gz
upstream-63b4881fcbed021516931137c6e2131e0aa7b9d5.tar.bz2
upstream-63b4881fcbed021516931137c6e2131e0aa7b9d5.zip
include/prereq-build.mk: macOS cross build improvements
This updates prereq-build.mk to find a suitable realpath utility, and adds another place to look for a suitable getopt utility. realpath has been used most notably by scripts/ipkg-build since commit bb95be9265a9 ("scripts,ipkg-build: use realpath for pkg_dir") and there are assorted other uses of it during a build. It is ordinarily provided by GNU coreutils. This adds a SetupHostCommand to locate it either under its own name or under grealpath, the name that it will be available as under MacPorts or Homebrew, which use --program-prefix=g. Similarly, update the SetupHostCommand for getopt to be able to locate a util-linux getopt at the default path used by MacPorts, in the same fashion that commit cc16f5d73e77 ("build: try to find getopt in macOS homebrew's standard location")' did for Homebrew. As there is no standard alternative --program-prefix for util-linux utilities in the way that GNU packages often use a "g" prefix, this path-based approach is required in case a non-util-linux getopt (such as one provided by an OS) shadows the util-linux getopt in the PATH. Signed-off-by: Mark Mentovai <mark@moxienet.com> (cherry picked from commit f614332197b7b09d21007af59a31920198cd4885)
Diffstat (limited to 'target/linux/ath79/config-5.10')
0 files changed, 0 insertions, 0 deletions