Skip to content

Commit

Permalink
kernel: Embed command line at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Oct 4, 2024
1 parent 2a80272 commit ef1ab08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kernel/kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rm -r "kernel-$KERNEL_VERSION.src.rpm" "kernel-$KERNEL_VERSION.src"
sed -i 's/# define buildid .local/%define buildid .t2/g' "kernel.spec"

# Bump release
# sed -i 's/%define specrelease 200/%define specrelease 202/g' "kernel.spec"
sed -i 's/%define specrelease 200/%define specrelease 210/g' "kernel.spec"

# Disable debug kernels
sed -i "/%define with_debug /c %define with_debug 0" "kernel.spec"
Expand All @@ -23,5 +23,9 @@ sed -i "/Patch1:/a Patch2: t2linux-combined.patch" "kernel.spec"
sed -i "/ApplyOptionalPatch patch-%{patchversion}-redhat.patch/a ApplyOptionalPatch t2linux-combined.patch" "kernel.spec"

cat "linux-t2-patches/extra_config" > "kernel-local"
echo "CONFIG_MODULE_FORCE_UNLOAD=y" >> "kernel-local"
cat << EOF >> "kernel-local"
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_CMDLINE="intel_iommu=on iommu=pt mem_sleep=s2idle pcie_ports=native"
EOF

cat "linux-t2-patches"/*.patch > "t2linux-combined.patch"

0 comments on commit ef1ab08

Please sign in to comment.