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 --enable DEFAULT_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.
|
||||
scripts/config --disable DEBUG_INFO
|
||||
scripts/config --enable DEBUG_INFO_NONE
|
||||
@@ -174,6 +179,11 @@ jobs:
|
||||
scripts/config --disable DEFAULT_CUBIC
|
||||
scripts/config --enable DEFAULT_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 --enable DEBUG_INFO_NONE
|
||||
scripts/config --disable DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
|
||||
@@ -220,7 +230,19 @@ jobs:
|
||||
echo "ERROR: CONFIG_DEFAULT_TCP_CONG is not bbr."
|
||||
exit 1
|
||||
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 包
|
||||
if: env.BUILD_NEEDED == 'true'
|
||||
@@ -235,9 +257,9 @@ jobs:
|
||||
- name: 检查 deb 包
|
||||
if: env.BUILD_NEEDED == 'true'
|
||||
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."
|
||||
find ./kernel -maxdepth 1 -name '*-dbg*.deb' -print
|
||||
find ./kernel -maxdepth 1 \( -name '*-dbg*.deb' -o -name '*-dbgsym*.deb' \) -print
|
||||
exit 1
|
||||
fi
|
||||
find ./kernel -maxdepth 1 -name 'linux-*.deb' -print | sort
|
||||
|
||||
Reference in New Issue
Block a user