summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-12-01 19:53:29 +0100
committerSebastian Schmelzer2011-12-01 19:53:29 +0100
commit7ba2377fe81135d8e9f0fd8e97fbeacdb031d4ae (patch)
treef243b208ef7b36a82f5d65182db91cb4ae8ddc85 /bin
parentupdate rootfs (busybox 1.19.3, new squeezy libs) (diff)
downloadusb-boot-stick-7ba2377fe81135d8e9f0fd8e97fbeacdb031d4ae.tar.gz
usb-boot-stick-7ba2377fe81135d8e9f0fd8e97fbeacdb031d4ae.tar.xz
usb-boot-stick-7ba2377fe81135d8e9f0fd8e97fbeacdb031d4ae.zip
update & aufs3 stuff
Diffstat (limited to 'bin')
-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