Skip to content

Instantly share code, notes, and snippets.

@rubdos
Created December 15, 2016 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubdos/4e63826cfe58af6cd3a95ad7460cb748 to your computer and use it in GitHub Desktop.
Save rubdos/4e63826cfe58af6cd3a95ad7460cb748 to your computer and use it in GitHub Desktop.
linux-pf-lts with lz4 support.
diff --git a/PKGBUILD b/PKGBUILD
index 403371f..409e00f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -55,7 +55,10 @@ source=(https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.{xz,sign}
'logo_linux_mono.pbm.bz2' #-> the Arch Linux boot logos
'logo_linux_vga16.ppm.bz2' #/
"${_pfpatchhome}${_pfpatchname}.xz" # the -pf patchset
- ${_incr[@]}) # the incremental kernel patches
+ ${_incr[@]} # the incremental kernel patches
+ 'https://github.com/xbianonpi/xbian-sources-kernel/commit/e23b8d3e628d7a9f2dd6237d2385f91873b050a7.patch' #Subject: [PATCH] BTRFS lz4 code Fix for 4.1.y
+ 'https://github.com/xbianonpi/xbian-sources-kernel/commit/20eb043895301c216e56021559ecfc86898bdd3b.patch' #lz4
+ )
sha256sums=('401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2'
'SKIP'
'15d9c10ede703dc06abd8ae9c68b4099637b32a27d2b2625eecd0ded317cec21'
@@ -68,7 +71,9 @@ sha256sums=('401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2'
'9e1e81d80afac6f316e53947e1b081017090081cd30e6c4c473420b77af4b52b'
'cb4d3fc91475d90179f88fe9994081b8fe37c2b6c2976778425d8e61a5a6541a'
'fd1481ed7d6a35a820bbb912d6899fbbc392b505fd1f6643c0060cd9c5f1494a'
- 'ee9869b1f354c3991f33e8bb7754b6b4143f4a44f5833da1fa0da2c1c8ac0f5c')
+ 'ee9869b1f354c3991f33e8bb7754b6b4143f4a44f5833da1fa0da2c1c8ac0f5c'
+ 'SKIP'
+ 'SKIP')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds <torvalds@linux-foundation.org>
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman (Linux kernel stable release signing key) <greg@kroah.com>
)
@@ -93,6 +98,9 @@ prepare() {
msg "Applying pf-kernel patch"
patch -Np1 < ${srcdir}/${_pfpatchname}
+ patch -Np1 -i "${srcdir}/20eb043895301c216e56021559ecfc86898bdd3b.patch"
+ patch -Np1 -i "${srcdir}/e23b8d3e628d7a9f2dd6237d2385f91873b050a7.patch"
+
if [[ ${_AUFS} = 'y' ]]; then
msg "Fetching and applying aufs3 patches"
git clone ${_aufs3git} ${_aufs3name}
@@ -342,7 +350,7 @@ build() {
#cd "${srcdir}/${_srcname}"
# Build
# Want extreme and non-sensical optimization? Uncomment the following line!
- # export KCFLAGS="-march=native -Ofast"
+ export KCFLAGS="-march=native -O2"
make ${MAKEFLAGS} LOCALVERSION= bzImage modules
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment