Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few minor updates #1053

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions .github/workflows/build-release-kernels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ on:

jobs:

check-for-newer-kernel:
kver-checks:

runs-on: ubuntu-latest

outputs:
new_kernel: ${{ steps.check_for_new_kernel.outputs.new_kernel }}
latest_release: ${{ steps.latest_release.outputs.release }}
latest_kernel: ${{ steps.check_for_new_kernel.outputs.latest_kernel }}

steps:
- name: Checkount linux-tkg
uses: actions/checkout@v3.0.2
uses: actions/checkout@v4

# Get latest release in repo, so we compare its version
# with the latest kernel available so far
Expand All @@ -34,11 +34,6 @@ jobs:
./.github/get_latest_kver.sh
latest_kernel="$(cat .github/latest-kernel)"
echo "latest_kernel=$latest_kernel" >> $GITHUB_OUTPUT
new_kernel=0
[[ "$latest_kernel" != "$latest_release" ]] || new_kernel=$?
echo "new_kernel=$new_kernel" >> $GITHUB_OUTPUT
env:
latest_release: ${{ steps.latest_release.outputs.release }}

build:
strategy:
Expand All @@ -51,31 +46,32 @@ jobs:
_cpusched: ${{ matrix._cpusched }}
os: ${{ matrix.os }}

needs: [check-for-newer-kernel]
if: |
github.ref == 'refs/heads/master' &&
needs.check-for-newer-kernel.outputs.new_kernel == '0'
needs: [kver-checks]
if: needs.kver-checks.outputs.latest_kernel != needs.kver-checks.outputs.latest_release

make-release:

runs-on: ubuntu-latest

needs:
- "check-for-newer-kernel"
- "build"
- kver-checks
- build
if: needs.build.result == 'success'

steps:
- name: Download release artifacts
uses: actions/[email protected]

- name: Make new release
uses: "marvinpinto/action-automatic-releases@latest"
uses: "softprops/action-[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ needs.check-for-newer-kernel.outputs.latest_kernel }}
tag_name: ${{ needs.kver-checks.outputs.latest_kernel }}
prerelease: false
title: "[experimental] ${{ needs.check-for-newer-kernel.outputs.latest_kernel }}"
name: "diet linux-tkg ${{ needs.kver-checks.outputs.latest_kernel }}"
body: |
This is a version of linux-tkg built with the option `_kernel_on_diet` enabled.
If you encounter issues with it, please build the kernel locally with that option disabled.
make_latest: true
files: |
${{ github.workspace }}/arch-kernel-packages-*/**
${{ github.workspace }}/ubuntu-kernel-packages-*/**
Expand Down
16 changes: 10 additions & 6 deletions customization.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ _force_all_threads="true"
# Set to true to prevent ccache from being used and set CONFIG_GCC_PLUGINS=y (which needs to be disabled for ccache to work properly)
_noccache="false"

# [Experimental] Build only a subset of the default kernel modules list to speedup compile time and lower needed space to build kernel
# Notes:
# - If the kernel fails to boot with this option active, disable it and rebuild
# - This option cannot be used with _modprobeddb="true"
# Build only a subset of the default kernel modules list to speedup compile time and lower needed space to build kernel
# Important: - The kernel may fail to boot or behave weirdly with this option active. If it is the case, disable it and rebuild
# - If it is the case and know which modules were missing, please open a bug report so we can add them to the "diet" db
# Notes:
# - This option cannot be used with _modprobeddb="true"
_kernel_on_diet="false"

# Set to true to use modprobed db to clean config from unneeded modules. Speeds up compilation considerably. Requires root - https://wiki.archlinux.org/index.php/Modprobed-db
# Set to true to use modprobed db to clean config from unneeded modules. Speeds up compilation considerably.
# Requires root - https://wiki.archlinux.org/index.php/Modprobed-db
# Using this option can trigger user prompts if the config doesn't go smoothly.
# !!!! Make sure to have a well populated db !!!!
# Notes:
# - Make sure to have a well populated db
# - Otherwise use the '_kernel_on_diet' option instead
_modprobeddb="false"

# modprobed-db database file location
Expand Down
3 changes: 3 additions & 0 deletions linux-tkg-config/6.12/minimal-modprobed.db
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ algif_hash
algif_skcipher
alx
amd64_edac
amd_atl
amd_pmc
amd_pstate
amdgpu
Expand Down Expand Up @@ -494,6 +495,7 @@ snd_hda_codec_realtek
snd_hda_core
snd_hda_ext_core
snd_hda_intel
snd_hda_scodec_component
snd_hrtimer
snd_hwdep
snd_intel_dspcfg
Expand Down Expand Up @@ -591,6 +593,7 @@ tuner_types
tunnel4
tunnel6
typec
typec_displayport
typec_ucsi
uas
ucsi_acpi
Expand Down