Archived
Public Access
Use provider baseline kernel configs
This commit is contained in:
@@ -142,6 +142,11 @@ jobs:
|
|||||||
scripts/config --disable DEFAULT_CUBIC
|
scripts/config --disable DEFAULT_CUBIC
|
||||||
scripts/config --enable DEFAULT_BBR
|
scripts/config --enable DEFAULT_BBR
|
||||||
scripts/config --set-str DEFAULT_TCP_CONG bbr
|
scripts/config --set-str DEFAULT_TCP_CONG bbr
|
||||||
|
scripts/config --enable NET_SCH_FQ
|
||||||
|
scripts/config --disable DEFAULT_FQ_CODEL
|
||||||
|
scripts/config --disable DEFAULT_PFIFO_FAST
|
||||||
|
scripts/config --enable DEFAULT_FQ
|
||||||
|
scripts/config --set-str DEFAULT_NET_SCH fq
|
||||||
# Avoid generating kernel debug info and linux-image-*-dbg packages.
|
# Avoid generating kernel debug info and linux-image-*-dbg packages.
|
||||||
scripts/config --disable DEBUG_INFO
|
scripts/config --disable DEBUG_INFO
|
||||||
scripts/config --enable DEBUG_INFO_NONE
|
scripts/config --enable DEBUG_INFO_NONE
|
||||||
@@ -174,6 +179,11 @@ jobs:
|
|||||||
scripts/config --disable DEFAULT_CUBIC
|
scripts/config --disable DEFAULT_CUBIC
|
||||||
scripts/config --enable DEFAULT_BBR
|
scripts/config --enable DEFAULT_BBR
|
||||||
scripts/config --set-str DEFAULT_TCP_CONG bbr
|
scripts/config --set-str DEFAULT_TCP_CONG bbr
|
||||||
|
scripts/config --enable NET_SCH_FQ
|
||||||
|
scripts/config --disable DEFAULT_FQ_CODEL
|
||||||
|
scripts/config --disable DEFAULT_PFIFO_FAST
|
||||||
|
scripts/config --enable DEFAULT_FQ
|
||||||
|
scripts/config --set-str DEFAULT_NET_SCH fq
|
||||||
scripts/config --disable DEBUG_INFO
|
scripts/config --disable DEBUG_INFO
|
||||||
scripts/config --enable DEBUG_INFO_NONE
|
scripts/config --enable DEBUG_INFO_NONE
|
||||||
scripts/config --disable DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
|
scripts/config --disable DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
|
||||||
@@ -220,7 +230,19 @@ jobs:
|
|||||||
echo "ERROR: CONFIG_DEFAULT_TCP_CONG is not bbr."
|
echo "ERROR: CONFIG_DEFAULT_TCP_CONG is not bbr."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
grep -E 'CONFIG_(DEBUG_INFO_NONE|TCP_CONG_BBR|DEFAULT_BBR|DEFAULT_TCP_CONG)=' .config
|
if ! grep -q '^CONFIG_NET_SCH_FQ=y' .config; then
|
||||||
|
echo "ERROR: CONFIG_NET_SCH_FQ is not built in."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if ! grep -q '^CONFIG_DEFAULT_FQ=y' .config; then
|
||||||
|
echo "ERROR: CONFIG_DEFAULT_FQ is not enabled."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if ! grep -q '^CONFIG_DEFAULT_NET_SCH="fq"' .config; then
|
||||||
|
echo "ERROR: CONFIG_DEFAULT_NET_SCH is not fq."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
grep -E 'CONFIG_(DEBUG_INFO_NONE|TCP_CONG_BBR|DEFAULT_BBR|DEFAULT_TCP_CONG|NET_SCH_FQ|DEFAULT_FQ|DEFAULT_NET_SCH)=' .config
|
||||||
|
|
||||||
- name: 构建内核 Debian 包
|
- name: 构建内核 Debian 包
|
||||||
if: env.BUILD_NEEDED == 'true'
|
if: env.BUILD_NEEDED == 'true'
|
||||||
@@ -235,9 +257,9 @@ jobs:
|
|||||||
- name: 检查 deb 包
|
- name: 检查 deb 包
|
||||||
if: env.BUILD_NEEDED == 'true'
|
if: env.BUILD_NEEDED == 'true'
|
||||||
run: |
|
run: |
|
||||||
if find ./kernel -maxdepth 1 -name '*-dbg*.deb' | grep -q .; then
|
if find ./kernel -maxdepth 1 \( -name '*-dbg*.deb' -o -name '*-dbgsym*.deb' \) | grep -q .; then
|
||||||
echo "ERROR: debug deb package was generated."
|
echo "ERROR: debug deb package was generated."
|
||||||
find ./kernel -maxdepth 1 -name '*-dbg*.deb' -print
|
find ./kernel -maxdepth 1 \( -name '*-dbg*.deb' -o -name '*-dbgsym*.deb' \) -print
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
find ./kernel -maxdepth 1 -name 'linux-*.deb' -print | sort
|
find ./kernel -maxdepth 1 -name 'linux-*.deb' -print | sort
|
||||||
|
|||||||
@@ -197,9 +197,9 @@ sudo python3 cve_2026_31431_detector.py
|
|||||||
- 读取 kernel.org 最新 stable 版本。
|
- 读取 kernel.org 最新 stable 版本。
|
||||||
- 下载 `gregkh/linux` 对应 stable 分支。
|
- 下载 `gregkh/linux` 对应 stable 分支。
|
||||||
- 应用仓库内固定 BBRv3 patch。
|
- 应用仓库内固定 BBRv3 patch。
|
||||||
- 强制默认启用 BBR。
|
- 强制默认启用 BBR 和 fq。
|
||||||
- 关闭 debug info。
|
- 关闭 debug info。
|
||||||
- 拒绝发布 `*-dbg*.deb`。
|
- 拒绝发布 `*-dbg*.deb` / `*-dbgsym*.deb`。
|
||||||
|
|
||||||
构建不会自动更新 BBR patch 本身。
|
构建不会自动更新 BBR patch 本身。
|
||||||
|
|
||||||
|
|||||||
+11928
-1448
File diff suppressed because it is too large
Load Diff
+3728
-2222
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user