openwrt/package/kernel
Markus Stockhausen d34cef823e
Some checks failed
Build Kernel / Build all affected Kernels (push) Waiting to run
Build all core packages / Build all core packages for selected target (push) Waiting to run
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
build: avoid errors during release candidate kernel packaging
The build system allows to use Linux release candidate kernels (-rcX).
For this a target/linux/generic/kernel-6.XY as follows is needed:

LINUX_VERSION-6.XY = -rc1
LINUX_KERNEL_HASH-6.XY-rc1 = 18ba6ebd72f46b881e0d73e390b2888b7b43...

Sadly the builds fail with a packaging error.

fakeroot /home/openwrt/openwrt/openwrt/staging_dir/host/bin/apk
mkpkg --info "name:kernel" --info "version:6.15-rc1~c4bf...1f6-r1"
ERROR: info field 'version' has invalid value: package version is invalid

The apk metadata specification reads:

"... Currently the APK version specification is as follows:
number{.number}...{letter}{_suffix{number}}...{~hash}{-r#} ...
Optionally one or more _suffix{number} components can follow.
The list of valid suffixes (and their sorting order) is: alpha,
beta, pre, rc, <no suffix>, cvs, svn, git, hg, p."

Given that the kernel uses "-rcX" naming scheme and apk requires
"_rcX" instead, simply translate the dash to an underscore for
these builds.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21214
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-12-20 11:06:47 +01:00
..
ath10k-ct ath10k-ct: remove outdated iommu revert patch 2025-12-08 18:47:45 +01:00
bcm27xx-gpu-fw bcm27xx-gpu-fw: update to v1.20250430 2025-06-06 12:34:01 +02:00
bcm63xx-cfe bcm63xx-cfe: install into image staging dir 2025-04-13 10:44:19 +02:00
bpf-headers bpf-headers: update to version 6.12 2025-11-27 14:31:30 +01:00
button-hotplug treewide: add const to static arrays 2025-12-02 23:32:42 +01:00
cryptodev-linux cryptodev-linux: fix sysctl warning for kernel 6.12 2025-06-12 10:57:22 +02:00
dtc/patches package: kernel: dtc: Add DTO support 2017-11-06 16:39:41 +01:00
econet-eth econet: basic Ethernet support 2025-12-04 22:58:00 +01:00
gpio-button-hotplug gpio-button-hotplug: some modern cleanups 2025-12-09 01:04:17 +01:00
gpio-nct5104d treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
lantiq vrx518_tc: fix rx_len_adj 2025-12-17 22:03:53 +01:00
leds-gca230718 kernel: leds-gca230718: remove _remove 2024-12-24 00:23:35 +01:00
leds-ws2812b kernel: ws2812b: use devm for mutex_init 2024-10-06 12:21:51 +02:00
linux build: avoid errors during release candidate kernel packaging 2025-12-20 11:06:47 +01:00
mac80211 mac80211: backport patch fixing support for GCC15 2025-12-10 22:48:55 +01:00
mt76 mt76: backport patch fixing support for 6.18 2025-12-08 00:37:07 +01:00
mt7621-qtn-rgmii treewide: rename ZyXEL to Zyxel 2024-08-25 15:08:25 +02:00
mwlwifi mwlwifi: add pending patch to support kernel 6.18 2025-12-08 00:37:08 +01:00
nat46 nat46: bump to latest git HEAD 2025-04-23 2025-05-10 21:34:25 +02:00
qca-nss-dp qca-nss-dp: update to Git HEAD (2025-11-24) 2025-12-04 12:08:56 +01:00
qca-ssdk qca-ssdk: update to Git HEAD (2025-05-30) 2025-06-02 22:59:05 +02:00
r8101 kernel: r8101: load module at boot time 2025-04-23 09:14:26 +02:00
r8125 kernel: r8125: update to v9.016.01 2025-09-12 07:27:10 +02:00
r8126 kernel: r8126: update to v10.016.00 2025-09-12 07:27:52 +02:00
r8127 kernel: r8127: update to v11.015.00 2025-09-12 07:28:34 +02:00
r8168 kernel: r8168: add missing flags 2025-09-10 13:51:16 +02:00
rtc-rv5c386a treewide: fix coccinelle checks 2025-12-02 23:32:42 +01:00
rtl8812au-ct rtl8812au-ct: rework patch to support kernel 6.18 2025-12-08 00:37:08 +01:00
trelay kernel: trelay: fix build warning on 6.12 kernel 2025-05-03 20:16:25 +02:00
ubnt-ledbar treewide: remove of_gpio.h 2025-09-20 12:47:23 +02:00
ubootenv-nvram ubootenv-nvram: convert driver to .remove_new 2025-04-11 11:21:20 +02:00