Skip to content

Instantly share code, notes, and snippets.

@enakai00
Last active December 28, 2015 20:39
Show Gist options
  • Save enakai00/7558519 to your computer and use it in GitHub Desktop.
Save enakai00/7558519 to your computer and use it in GitHub Desktop.
--- kernel.spec.orig 2013-11-21 11:33:16.194683545 +0900
+++ kernel.spec 2013-11-21 11:32:40.377181703 +0900
@@ -16,6 +16,7 @@
# by setting the define to ".local" or ".bz123456"
#
# % define buildid .local
+%define buildid .tmpfshacked
%define rhel 1
%if %{rhel}
@@ -946,6 +947,17 @@
# Any further pre-build tree manipulations happen here.
+echo "####### Applying ad-hoc patches ########"
+pushd /tmp
+rm -f shmem.c.patch
+rm -f shmem_fs.h.patch
+wget https://gist.github.com/enakai00/7558460/raw/4b905b113b58373bd86d974be75ba415dde5b7a5/shmem.c.patch
+wget https://gist.github.com/enakai00/7558482/raw/a107b3da74defc8086f0937e1f5a9a5c667eee4e/shmem_fs.h.patch
+popd
+patch -p1 mm/shmem.c </tmp/shmem.c.patch
+patch -p1 include/linux/shmem_fs.h </tmp/shmem_fs.h.patch
+echo "####### Done ########"
+
chmod +x scripts/checkpatch.pl
# only deal with configs if we are going to build for the arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment