1
1
openwrt/target/linux/generic
Mark Mentovai b0d2cee3ea kernel: fix objtool build on macOS hosts
Since kernel 5a406031d0719 (2025-03-17, in 6.15), objtool calls
sendfile, but sendfile is Linux-specific and a sendfile with the
requisite capabilities is not available on other operating systems.
Provide a more portable fallback implementation to be used when
cross-building on non-Linux hosts.

This fixes:

  CC      …/linux-6.18.33/tools/objtool/builtin-check.o
builtin-check.c:13:10: fatal error: 'sys/sendfile.h' file
      not found
   13 | #include <sys/sendfile.h>
      |          ^~~~~~~~~~~~~~~~
1 error generated.
gmake[8]: *** […/linux-6.18.33/tools/build/Makefile.build:86: …/linux-6.18.33/tools/objtool/builtin-check.o] Error 1

Fixes: https://github.com/openwrt/openwrt/issues/23356
Signed-off-by: Mark Mentovai <mark@mentovai.com>
Link: https://github.com/openwrt/openwrt/pull/23612
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-06-04 20:00:36 +02:00
..
backport-6.12 kernel: bump 6.12 to 6.12.92 2026-06-02 21:15:21 +02:00
backport-6.18 kernel: bump 6.18 to 6.18.34 2026-06-02 21:14:04 +02:00
files ar8216: use devm for mdiobus consistently 2026-05-25 00:36:10 +02:00
files-6.12/drivers/net/phy/rtl8261n generic: 6.18: drop downstream RTL8261N driver 2026-05-21 17:04:55 +01:00
hack-6.12 kernel: bump 6.12 to 6.12.91 2026-05-25 21:02:13 +02:00
hack-6.18 kernel: fix objtool build on macOS hosts 2026-06-04 20:00:36 +02:00
image treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-6.12 kernel: bump 6.12 to 6.12.92 2026-06-02 21:15:21 +02:00
pending-6.18 airoha: cpufreq: fix function signature 2026-06-03 09:06:34 +02:00
config-6.12 generic: add DWMAC_QCOM_ETHQOS 2026-05-19 11:25:38 +02:00
config-6.18 generic: add missing config symbols for 6.18 2026-06-03 09:06:31 +02:00
config-filter generic: filter: add RUSTC symbols 2026-04-22 16:46:44 +02:00
kernel-6.12 kernel: bump 6.12 to 6.12.92 2026-06-02 21:15:21 +02:00
kernel-6.18 kernel: bump 6.18 to 6.18.34 2026-06-02 21:14:04 +02:00
PATCHES.md generic: improve patches documentation 2025-06-11 15:09:46 +02:00