openwrt/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 build: autotools: fix cache path 2022-03-28 00:15:52 +01:00
bpf.mk treewide: drop use of which 2022-01-17 09:14:26 +01:00
cmake.mk treewide: drop use of which 2022-01-17 09:14:26 +01:00
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk build: add HOST_CXXFLAGS for host build 2022-01-16 22:13:46 +01:00
image-commands.mk image: strip metadata from images when used in other artifacts 2022-04-15 13:42:01 +01:00
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: set SOURCE_DATE_EPOCH for initramfs root dir 2022-04-06 12:20:26 +01:00
kernel-version.mk kernel: split kernel version to dedicated files 2022-01-13 23:46:39 +00:00
kernel.mk kernel: filter -no-plt from KCFLAGS 2022-06-21 16:41:17 +01:00
logo.png
logo.svg
meson.mk tools/meson: update to 0.61.4 2022-04-09 15:56:04 +02:00
netfilter.mk netfilter: kmod-nft-xfrm 2022-06-19 12:31:02 +02:00
nls.mk
openssl-engine.mk openssl: move engine.mk to INCLUDE_DIR 2022-03-23 23:13:51 +00:00
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk tools: build bash on macOS and use it for ipkg-build 2022-01-27 13:38:48 +01:00
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 treewide: drop use of which 2022-01-17 09:14:26 +01:00
quilt.mk quilt.mk: fix typo in the Host section 2022-03-19 16:13:58 +01:00
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 build: target: improve UX of CONFIG_TARGET handling 2022-04-15 07:11:18 +02:00
toolchain-build.mk
toplevel.mk build: toplevel.mk: fix missing kconfig dependency tracking 2022-02-22 16:37:23 +01:00
trusted-firmware-a.mk trusted-firmware-a.mk: make sure include directory exists 2022-04-09 22:24:36 +01:00
u-boot.mk u-boot.mk: add LOCALVERSION (explicitly specify OpenWrt build) 2022-02-28 23:54:52 +01:00
uclibc++.mk
unpack.mk
verbose.mk verbose.mk: print ERROR messages in non-verbose 2022-02-28 23:52:13 +01:00
version.mk