1
1
openwrt/target/linux
Mark Mentovai f5c5ccd236 kernel: fix gen_init_cpio build on macOS hosts
Kernel ae18b94099b0 (2025-08-20, in 6.18) introduced a dependency on the
Linux-specific O_LARGEFILE, and kernel 97169cd6d95b (2025-08-20, in
6.18) introduced a dependency on the Linux-specific copy_file_range.
Both of these commits were a part of the
https://lore.kernel.org/all/20250819032607.28727-1-ddiss@suse.de/
series. These new dependencies may not be available on non-Linux
systems, although it is possible to cross-build Linux on non-Linux build
hosts, and it is appropriate to run tools like gen_init_cpio on such
build hosts. It is straightforward to avoid these Linux-specific
features when not building on Linux.

This fixes:

  HOSTCC  usr/gen_init_cpio
usr/gen_init_cpio.c:460:16: error: call to undeclared
      function 'copy_file_range'; ISO C99 and later do not support implicit
      function declarations [-Wimplicit-function-declaration]
  460 |                         this_read = copy_file_range(file, NULL, outfd, N...
      |                                     ^
usr/gen_init_cpio.c:677:31: error: use of undeclared
      identifier 'O_LARGEFILE'
  677 |                                      O_WRONLY | O_CREAT | O_LARGEFILE | O_TRUNC,
      |                                                           ^~~~~~~~~~~
2 errors generated.
gmake[7]: *** [scripts/Makefile.host:114: usr/gen_init_cpio] Error 1

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
..
airoha airoha: enable 6.18 testing kernel 2026-06-03 09:06:35 +02:00
apm821xx apm821xx: slightly improve routing performance 2026-05-25 10:16:50 +02:00
armsr armsr: enable 6.18 as a testing kernel 2026-05-25 22:12:04 +02:00
at91 kernel: 6.12: move CONFIG_CRYPTO_LIB_SHA1 to generic 2026-04-06 01:38:41 +02:00
ath79 kernel: bump 6.12 to 6.12.92 2026-06-02 21:15:21 +02:00
bcm27xx kernel: bump 6.12 to 6.12.92 2026-06-02 21:15:21 +02:00
bcm47xx bcm47xx: base-files: hack sysinfo to allow ASU sysupgrades 2026-05-25 23:27:34 +02:00
bcm53xx bcm53xx: enable 6.18 testing kernel 2026-05-24 20:36:09 +02:00
bcm4908 kernel: 6.12: move CONFIG_CRYPTO_LIB_SHA1 to generic 2026-04-06 01:38:41 +02:00
bmips treewide: use _scoped for loop 2026-04-16 21:17:43 +02:00
d1 d1: drop support for 6.12 2026-04-21 16:13:37 +02:00
econet econet: add EN751627 subtarget and Zyxel EX3301-T0 board 2026-05-14 21:12:46 +02:00
gemini gemini/kernel: drop v6.12 and default to v6.18 2026-04-17 18:01:06 +02:00
generic kernel: fix gen_init_cpio build on macOS hosts 2026-06-04 20:00:36 +02:00
imx imx: add support for Kontron OSM-S/BL i.MX8MP 2026-06-01 17:49:36 +02:00
ipq40xx kernel: bump 6.18 to 6.18.34 2026-06-02 21:14:04 +02:00
ipq806x ipq806x: fix caldata loading for mr42/mr52 2026-05-18 21:14:22 +02:00
ixp4xx ixp4xx/kernel: drop v6.12 and default to v6.18 2026-04-16 08:35:38 +02:00
kirkwood kirkwood: switch to 6.18 kernel 2026-04-27 09:39:21 +02:00
lantiq kernel: bump 6.18 to 6.18.33 2026-05-25 21:04:53 +02:00
layerscape generic: 6.12: backport PCS standalone feature 2026-05-13 00:19:29 +02:00
loongarch64 loongarch64: add upstream dwmac-loongson patches for 2K3000/3B6000M 2026-05-26 00:58:05 +02:00
malta malta: drop 6.12 support 2026-05-07 18:15:54 +02:00
mediatek mediatek: mt7622: enable CONFIG_MTD_VIRT_CONCAT 2026-06-01 00:32:38 +02:00
microchipsw kernel: sync target configs after JUMP_LABEL changes 2026-05-11 10:33:46 +02:00
mpc85xx mpc85xx: unify wrapper address of simple image devices 2026-05-05 14:09:38 +02:00
mvebu mvebu: cortexa53: uDPU/eDPU: update active bootscript as well 2026-05-26 19:35:42 +02:00
mxs mxs: drop support for 6.12 2026-04-16 14:55:36 +02:00
octeon octeon: drop v6.12 and default to v6.18 2026-05-23 19:13:22 +02:00
omap kernel: 6.12: move CONFIG_CRYPTO_LIB_SHA1 to generic 2026-04-06 01:38:41 +02:00
pistachio pistachio: drop support for 6.12 2026-04-18 12:02:48 +02:00
qoriq qoriq: drop kernel config for 6.12 2026-05-24 23:43:54 +02:00
qualcommax qualcommax: ipq50xx: add support for ELECOM WRC-X3000GST2 2026-05-26 18:56:17 +02:00
qualcommbe qualcommbe: 6.18: refresh config 2026-05-28 10:47:03 +02:00
ramips ramips: add support for ELECOM WMC-C2533GST 2026-05-29 08:27:50 +02:00
realtek realtek: clk: change to __raw reads and writes 2026-06-01 19:17:58 +02:00
rockchip rockchip: enable maskrom button for NanoPi R5C/R5S 2026-05-29 08:29:03 +02:00
sifiveu sifiveu: drop support for 6.12 2026-04-19 13:21:21 +02:00
siflower kernel: sync target configs after JUMP_LABEL changes 2026-05-11 10:33:46 +02:00
starfive kernel: bump 6.18 to 6.18.33 2026-05-25 21:04:53 +02:00
stm32 kernel: 6.12: move CONFIG_CRYPTO_LIB_SHA1 to generic 2026-04-06 01:38:41 +02:00
sunxi sunxi: add T113-S3 support 2026-05-09 11:19:22 +02:00
tegra kernel: 6.12: move CONFIG_CRYPTO_LIB_SHA1 to generic 2026-04-06 01:38:41 +02:00
uml kernel: 6.12: move CONFIG_CRYPTO_LIB_SHA1 to generic 2026-04-06 01:38:41 +02:00
x86 x86: onie-installer: wire up sysupgrade via ONIE install mode 2026-05-23 17:23:54 +02:00
zynq kernel: 6.12: move CONFIG_CRYPTO_LIB_SHA1 to generic 2026-04-06 01:38:41 +02:00
Makefile linux: fix missing default packages in profiles.json 2024-11-17 19:29:06 +01:00