|
|
|
@ -20,19 +20,22 @@ pkg_aufs_source_file=`match_source_file -p aufs${pkg_aufs_ver}-standalone aufs`
|
|
|
|
|
if [ ! -z "$pkg_aufs_source_file" ]; then |
|
|
|
|
pkg_aufs_tempdir=$( mktemp -d ) |
|
|
|
|
tar -C $pkg_aufs_tempdir -xf $pkg_aufs_source_file |
|
|
|
|
pkg_aufs_srcdir="$( basename $( ls -1d $pkg_aufs_tempdir/* ) )" |
|
|
|
|
ln -sf $pkg_aufs_srcdir $pkg_aufs_tempdir/aufs3-standalone |
|
|
|
|
|
|
|
|
|
# patching the kernel sources |
|
|
|
|
echo_status "Including Aufs2 support (aufs package enabled)" |
|
|
|
|
var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-kbuild.patch" |
|
|
|
|
var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-base.patch" |
|
|
|
|
var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-standalone.patch" |
|
|
|
|
echo_status "Including Aufs3 support (aufs package enabled)" |
|
|
|
|
var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-kbuild.patch" |
|
|
|
|
var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-base.patch" |
|
|
|
|
var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-proc_map.patch" |
|
|
|
|
var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-standalone.patch" |
|
|
|
|
|
|
|
|
|
# copying sources into kernel source tree |
|
|
|
|
pkg_aufs_copy_source_files() { |
|
|
|
|
cp -rv $pkg_aufs_tempdir/aufs2-standalone/{Documentation,fs} . |
|
|
|
|
cp -rv $pkg_aufs_tempdir/aufs2-standalone/include/linux/aufs_type.h include/linux/ |
|
|
|
|
cp -rv $pkg_aufs_tempdir/aufs3-standalone/{Documentation,fs} . |
|
|
|
|
cp -rv $pkg_aufs_tempdir/aufs3-standalone/include/linux/aufs_type.h include/linux/ |
|
|
|
|
} |
|
|
|
|
hook_add preconf 5 "pkg_aufs_copy_source_files" |
|
|
|
|
else |
|
|
|
|
echo_warning "No matching source file found for Aufs2 support" |
|
|
|
|
echo_warning "No matching source file found for Aufs3 support" |
|
|
|
|
fi |
|
|
|
|