openwrt-Ansuel/include
Mark Mentovai f614332197 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 bb95be9265 ("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 cc16f5d73e ("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>
2022-06-24 17:07:56 +02:00
..
site
autotools.mk
bpf.mk
cmake.mk
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk
image-commands.mk
image.mk image: drop unused 'BuildKernel/MkFIT' 2022-05-12 17:23:18 +02:00
kernel-5.10 kernel: bump 5.10 to 5.10.120 2022-06-06 19:20:02 +02:00
kernel-5.15 kernel: bump 5.15 to 5.15.45 2022-06-06 19:20:28 +02:00
kernel-build.mk build: drop HOST_LOADLIBES 2022-05-18 13:32:06 +03:00
kernel-defaults.mk
kernel-version.mk
kernel.mk kernel: filter -no-plt from KCFLAGS 2022-06-21 16:41:17 +01:00
logo.png
logo.svg
meson.mk
netfilter.mk netfilter: kmod-nft-xfrm 2022-06-19 12:31:02 +02:00
nls.mk
openssl-engine.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk
package-seccomp.mk
package.mk
prereq-build.mk include/prereq-build.mk: macOS cross build improvements 2022-06-24 17:07:56 +02:00
prereq.mk
quilt.mk
rootfs.mk
scan.awk
scan.mk build: fix find warning with SCAN_EXTRA 2022-06-05 15:38:27 +02:00
shell.sh
subdir.mk
target.mk
toolchain-build.mk
toplevel.mk
trusted-firmware-a.mk
u-boot.mk
uclibc++.mk
unpack.mk
verbose.mk
version.mk