summaryrefslogtreecommitdiffstats
path: root/bin/env.setup-kernel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/env.setup-kernel.sh')
-rwxr-xr-xbin/env.setup-kernel.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/bin/env.setup-kernel.sh b/bin/env.setup-kernel.sh
index 78238ca..f1c6211 100755
--- a/bin/env.setup-kernel.sh
+++ b/bin/env.setup-kernel.sh
@@ -19,8 +19,25 @@ else
echo -e "[setup-kernel]\t\t Found unpacked kernel - continue."
fi
+
+ echo -e "[setup-kernel]\t\t Patch Kernel with aufs stuff."
+git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git 2>&1
+cd aufs3-standalone
+#TODO: automatic choose aufs version..
+git checkout origin/aufs3.1 2>&1
+tar c include/linux/aufs_type.h Documentation fs | tar x -C ../linux-${kernel_version}
+
+cd ../linux-${kernel_version}
+
+patch -p1 < ../aufs3-standalone/aufs3-kbuild.patch
+patch -p1 < ../aufs3-standalone/aufs3-base.patch
+patch -p1 < ../aufs3-standalone/aufs3-proc_map.patch
+
+cp ../aufs3-standalone/include/linux/aufs_type.h include/linux/
+
+
echo -e "[setup-kernel]\t\t Update Kernel config."
-cd linux-${kernel_version}
+#cd linux-${kernel_version}
cp ${ROOT_DIR}/config/kernel.config ./.config
mkdir -p $ROOT_DIR/build/log