Simplified Makefile for kernel selection.
This commit is contained in:
1 parent
367bb550ed
commit
e2ba0979ad
3 files changed
+6
-5
No files matched your search
@@ -54,7 +54,6 @@ jobs:
|
||||
./apply_patches.sh openwrt
|
||||
mv msm89xx openwrt/target/linux/msm89xx
|
||||
mv packages openwrt/package/msm8916
|
||||
sed -i 's/KERNEL_PATCHVER:=.*/KERNEL_PATCHVER:=6.12/' openwrt/target/linux/msm89xx/Makefile
|
||||
|
||||
- name: Update and install feeds
|
||||
run: |
|
||||
|
||||
@@ -72,7 +72,6 @@ jobs:
|
||||
./apply_patches.sh openwrt
|
||||
mv msm89xx openwrt/target/linux/msm89xx
|
||||
mv packages openwrt/package/msm8916
|
||||
sed -i 's/KERNEL_PATCHVER:=.*/KERNEL_PATCHVER:=6.12/' openwrt/target/linux/msm89xx/Makefile
|
||||
|
||||
- name: Update and install feeds
|
||||
run: |
|
||||
|
||||
+6
-3
@@ -7,10 +7,13 @@ BOARDNAME:=Boards based on Snapdragon 210/410/615 chipsets
|
||||
FEATURES:=ext4 usb usbgadget gpio fpu rootfs-part boot-part squashfs
|
||||
SUBTARGETS:=msm8916
|
||||
|
||||
# Resolve kernel: prefer 6.12, fall back to latest available
|
||||
kernel-detect = $(if $(TOPDIR),$(if $(wildcard $(TOPDIR)/include/kernel-$(1)),$(1),$(lastword $(sort $(patsubst $(TOPDIR)/include/kernel-%,%,$(wildcard $(TOPDIR)/include/kernel-[0-9]*))))),$(1))
|
||||
# Kernel version map: OpenWrt major -> kernel patchver
|
||||
KERNEL_FOR_24 := 6.6
|
||||
KERNEL_FOR_25 := 6.12
|
||||
KERNEL_DEFAULT := 6.12
|
||||
|
||||
KERNEL_PATCHVER:=$(call kernel-detect,6.12)
|
||||
OPENWRT_MAJOR := $(shell git -C $(TOPDIR) describe --tags --abbrev=0 2>/dev/null | cut -d. -f1 | tr -d v)
|
||||
KERNEL_PATCHVER := $(or $(KERNEL_FOR_$(OPENWRT_MAJOR)),$(KERNEL_DEFAULT))
|
||||
|
||||
|
||||
define Target/Description
|
||||
|
||||
Reference in new issue
Block a user