Skip to content

Commit

Permalink
add(flags): adding gcc patch to all kernels but server
Browse files Browse the repository at this point in the history
  • Loading branch information
lseman authored Jan 19, 2024
1 parent 9e73c67 commit 1c32257
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linux-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-eevdf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-hardened/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-lts/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-rt-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-rt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
5 changes: 5 additions & 0 deletions linux-cachyos-sched-ext/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else

export KBUILD_BUILD_HOST=cachyos
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand Down
1 change: 1 addition & 0 deletions linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ if [ -n "$_lrng_enable" ]; then
source+=("${_patchsource}/misc/0001-lrng.patch")
fi

# gcc specific flags
if [ "$_use_llvm_lto" = "none" ]; then
source+=("${_patchsource}/misc/0001-Add-extra-GCC-optimization-flags.patch")
else
Expand Down

0 comments on commit 1c32257

Please sign in to comment.