Skip to content

Commit ed39fdf

Browse files
committed
[EXPERIMENTAL] Apply linux 6.12 LTS based experimental kernel test environment
Signed-off-by: Yang Jeong Hun <[email protected]>
1 parent 8566b4b commit ed39fdf

File tree

5 files changed

+26
-82
lines changed

5 files changed

+26
-82
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: LTS Kernel CI
1+
name: Experimental Kernel CI
22

33
on:
44
push:
55
tags:
6-
- 'linux-wsl-lts-6.12.[0-9]+'
6+
- 'linux-wsl-exp-6.12.[0-9]+.[0-9]+'
77

8-
run-name: LTS Release Build ${{ github.ref_name }}
8+
run-name: Experimental Release Build ${{ github.ref_name }}
99

1010
jobs:
1111
build:
@@ -31,16 +31,16 @@ jobs:
3131
steps:
3232
- name: Trust Build Directory
3333
run: |
34-
git config --global --add safe.directory /__w/WSL2-Linux-Kernel-Rolling-LTS/WSL2-Linux-Kernel-Rolling-LTS
34+
git config --global --add safe.directory /__w/WSL2-Linux-Kernel-Rolling-EXP/WSL2-Linux-Kernel-Rolling-EXP
3535
3636
- name: Checkout
3737
uses: actions/checkout@main
3838

39-
- name: Download WSL2 LTS Kernel
39+
- name: Download WSL2 Experimental Kernel
4040
run: |
41-
git clone https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS.git --depth 1 -b ${{ github.ref_name }} linux
41+
git clone https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-EXP.git --depth 1 -b ${{ github.ref_name }} linux
4242
43-
- name: Build WSL2 LTS Kernel
43+
- name: Build WSL2 EXP Kernel
4444
run: |
4545
cd linux
4646
if [ ${{ matrix.arch }} == "x86" ]
@@ -57,13 +57,13 @@ jobs:
5757
cd linux
5858
IFS=- read -r var1 var2 var3 version <<< ${{ github.ref_name }}
5959
mkdir -p ${{ matrix.image-name }}-addon_install && make modules_install INSTALL_MOD_PATH=${{ matrix.image-name }}-addon_install
60-
rm -rf ${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-LTS+/build
60+
rm -rf ${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-EXP+/build
6161
6262
- name: Generate Kernel Headers and Documents
6363
run: |
6464
cd linux
6565
IFS=- read -r var1 var2 var3 version <<< ${{ github.ref_name }}
66-
export addon_path=${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-LTS+/build
66+
export addon_path=${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-EXP+/build
6767
mkdir -p $addon_path
6868
install -Dt "$addon_path" -m644 Makefile Module.symvers System.map vmlinux
6969
install -Dt "$addon_path/kernel" -m644 kernel/Makefile
@@ -137,7 +137,7 @@ jobs:
137137
strip -v $STRIP_STATIC "$addon_path/vmlinux"
138138
fi
139139
cp -r Documentation $addon_path/Documentation
140-
rm -rf ${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-LTS+/build/${{ matrix.image-name }}-addon_install
140+
rm -rf ${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-EXP+/build/${{ matrix.image-name }}-addon_install
141141
142142
- name: Download ZFS
143143
run: |
@@ -153,14 +153,14 @@ jobs:
153153
- name: Generate ZFS Kernel Module
154154
run: |
155155
IFS=- read -r var1 var2 var3 version <<< ${{ github.ref_name }}
156-
mkdir -p linux/${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-LTS+/extra
157-
find zfs/module -name "*.ko" -exec cp {} linux/${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-LTS+/extra \;
156+
mkdir -p linux/${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-EXP+/extra
157+
find zfs/module -name "*.ko" -exec cp {} linux/${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-EXP+/extra \;
158158
159159
- name: Generate Kernel Addon Package
160160
run: |
161161
IFS=- read -r var1 var2 var3 version <<< ${{ github.ref_name }}
162162
cd linux
163-
sudo ./.github/scripts/gen_modules_vhdx.sh "$PWD/${{ matrix.image-name }}-addon_install/" "$version-WSL2-LTS+" ${{ matrix.image-name }}-addon.vhdx
163+
sudo ./.github/scripts/gen_modules_vhdx.sh "$PWD/${{ matrix.image-name }}-addon_install/" "$version-WSL2-EXP+" ${{ matrix.image-name }}-addon.vhdx
164164
mv ${{ matrix.image-name }}-addon.vhdx ../
165165
166166
- name: Generate SHA-256 Checksum
@@ -212,10 +212,8 @@ jobs:
212212
name: ${{ github.ref_name }}
213213
tag_name: ${{ github.ref_name }}
214214
body: |
215-
> [!WARNING]
216-
> ARM64 kernel has not been tested!
217-
>
218-
> If you have any issues, please leave an issue on the [issue tab](https://github.com/Nevuly/WSL2-Rolling-Kernel-Issue/issues)!
215+
> [!CAUTION]
216+
> **EXPERIMENTAL TEST ONLY RELEASE**
219217
220218
### **Hash Information**
221219
| File Name | SHA-256 Checksum |
@@ -225,9 +223,6 @@ jobs:
225223
| Image-arm64 | ${{ env.ARM64_IMAGE_SHA }} |
226224
| Image-arm64-addon.vhdx | ${{ env.ARM64_ADDON_SHA }} |
227225
228-
### **How to install this kernel or kernel addon package in WSL2?**
229-
- Please see this [wiki](https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/wiki/Install-Instructions).
230-
231226
**This kernel built on ArchLinux.**
232227
233228
files: |

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERSION = 6
33
PATCHLEVEL = 12
44
SUBLEVEL = 57
5-
EXTRAVERSION =
5+
EXTRAVERSION = 1
66
NAME = Baby Opossum Posse
77

88
# *DOCUMENTATION*
@@ -355,7 +355,7 @@ include $(srctree)/scripts/Kbuild.include
355355

356356
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
357357
KERNELRELEASE = $(call read-file, include/config/kernel.release)
358-
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
358+
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL))$(if $(EXTRAVERSION),.$(EXTRAVERSION)))
359359
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
360360

361361
include $(srctree)/scripts/subarch.include

README.md

Lines changed: 5 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,6 @@
1-
# Rolling Release LTS Kernel for WSL2
1+
# Experimental Test Kernel for WSL2
22

3-
[![LTS Kernel CI](https://img.shields.io/github/actions/workflow/status/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/build.yml?label=github%20actions%20build&logo=github-actions&logoColor=%23FFFFFF&style=for-the-badge&labelColor=%23000000)](https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/actions/workflows/build.yml)
4-
[![Release](https://img.shields.io/github/v/release/Nevuly/WSL2-Linux-Kernel-Rolling-LTS?display_name=tag&label=LATEST&logo=Linux&logoColor=%23FFFFFF&style=for-the-badge&labelColor=%23000000)](https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/releases/latest)
5-
6-
Maintainer: Yang Jeong Hun (Nevuly)
7-
8-
## Current Kernel Status
9-
| Kernel Version | Status |
10-
|:--------------:|:------:|
11-
| [Linux 6.12.x][wsl2-kernel-6.12] | LTS Support |
12-
13-
## Introduction
14-
The [WSL2-Linux-Kernel-Rolling-LTS][wsl2-kernel-rolling-lts] repo contains the latest LTS kernel source code and
15-
configuration files for the [WSL2][about-wsl2].
16-
17-
This kernel is automatically built via [Github Actions][gh-actions] CI whenever a [newer LTS kernel is released][kernel-lts].
18-
19-
## Install Instructions
20-
Please see this [wiki][wiki].
21-
22-
## Reporting Bugs
23-
If you discover an issue relating to WSL or the WSL2 kernel, please report it on
24-
the [Issues tab][issue].
25-
26-
## Feature Requests
27-
If you want to fix a bug or add new features, Please use the [Pull Request][pr].
28-
29-
## Build Instructions
30-
Instructions for building WSL2 kernel with an Arch Linux distribution are
31-
as follows:
32-
33-
1. Install the build dependencies (Arch Linux):
34-
`$ sudo pacman -S aarch64-linux-gnu-gcc bc bison curl flex gcc git pahole python unzip wget zip`
35-
36-
2. Build the kernel using the WSL2 kernel configuration (x86):
37-
`$ make KCONFIG_CONFIG=arch/x86/configs/config-wsl-x86`
38-
39-
3. Build the kernel using the WSL2 kernel configuration (arm64):
40-
`$ export ARCH=arm64 && export CROSS_COMPILE=aarch64-linux-gnu-`
41-
`$ make KCONFIG_CONFIG=arch/arm64/configs/config-wsl-arm64`
42-
43-
4. Save the module to a separate folder (Optional. Only for local build):
44-
`$ sudo make modules_install`
45-
46-
## Credits
47-
* The Linux community who created a awesome kernel.
48-
* Microsoft which produced WSL2 and dxgkrnl patches.
49-
50-
[wsl2-kernel-6.12]: https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/tree/wsl-6.12-lts
51-
[wsl2-kernel-rolling-lts]: https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS
52-
[about-wsl2]: https://docs.microsoft.com/en-us/windows/wsl/about#what-is-wsl-2
53-
[gh-actions]: https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/actions
54-
[kernel-lts]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-6.12.y
55-
[wiki]: https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/wiki/Install-Instructions
56-
[issue]: https://github.com/Nevuly/WSL2-Rolling-Kernel-Issue/issues
57-
[pr]: https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling-LTS/pulls
3+
> [!CAUTION]
4+
> **THIS KERNEL IS FOR TESTING EXPERIMENTAL OR UPSTREAM FEATURES.**
5+
>
6+
> **PLEASE USE THIS KERNEL WITH CAUTION, AS IT MAY BREAK YOUR WSL2 ENVIRONMENT!**

arch/arm64/configs/config-wsl-arm64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Automatically generated file; DO NOT EDIT.
3-
# Linux/arm64 6.12.57 Kernel Configuration
3+
# Linux/arm64 6.12.57.1 Kernel Configuration
44
#
55
CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (GCC) 15.1.0"
66
CONFIG_CC_IS_GCC=y
@@ -33,7 +33,7 @@ CONFIG_THREAD_INFO_IN_TASK=y
3333
CONFIG_INIT_ENV_ARG_LIMIT=32
3434
# CONFIG_COMPILE_TEST is not set
3535
# CONFIG_WERROR is not set
36-
CONFIG_LOCALVERSION="-WSL2-LTS"
36+
CONFIG_LOCALVERSION="-WSL2-EXP"
3737
# CONFIG_LOCALVERSION_AUTO is not set
3838
CONFIG_BUILD_SALT=""
3939
CONFIG_DEFAULT_INIT=""

arch/x86/configs/config-wsl-x86

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Automatically generated file; DO NOT EDIT.
3-
# Linux/x86 6.12.57 Kernel Configuration
3+
# Linux/x86 6.12.57.1 Kernel Configuration
44
#
55
CONFIG_CC_VERSION_TEXT="gcc (GCC) 15.2.1 20250813"
66
CONFIG_CC_IS_GCC=y
@@ -33,7 +33,7 @@ CONFIG_THREAD_INFO_IN_TASK=y
3333
CONFIG_INIT_ENV_ARG_LIMIT=32
3434
# CONFIG_COMPILE_TEST is not set
3535
# CONFIG_WERROR is not set
36-
CONFIG_LOCALVERSION="-WSL2-LTS"
36+
CONFIG_LOCALVERSION="-WSL2-EXP"
3737
# CONFIG_LOCALVERSION_AUTO is not set
3838
CONFIG_BUILD_SALT=""
3939
CONFIG_HAVE_KERNEL_GZIP=y

0 commit comments

Comments
 (0)