wok-undigest diff linux/stuff/tools/aufs-patches @ rev 1217
copied linux receipt and stuff from wok-next
author | Hans-G?nter Theisgen |
---|---|
date | Fri Nov 15 16:49:43 2019 +0100 (2019-11-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux/stuff/tools/aufs-patches Fri Nov 15 16:49:43 2019 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +#!/bin/sh 1.5 +# aufs-patches: source this file in the receipt to get and apply aufs patches 1.6 + 1.7 +# Check for aufs and get source / patches if needed 1.8 +echo "Checking for aufs patches..." 1.9 +aufs_ver=$(. $WOK/aufs/receipt; echo $VERSION) 1.10 +aufs_dir="$WOK/aufs/source/aufs-$aufs_ver" 1.11 +if [ ! -d "$aufs_dir" ]; then 1.12 + aufs_tarball=$(. $WOK/aufs/receipt; echo $TARBALL) 1.13 + [ ! -f "$SRC/$aufs_tarball" ] && cook aufs --getsrc 1.14 + mkdir -p $WOK/aufs/source 1.15 + _ 'Extracting: %s' $aufs_tarball 1.16 + tar -xf $SRC/$aufs_tarball -C $WOK/aufs/source/ 1.17 +fi 1.18 + 1.19 + 1.20 +echo "Copying aufs files and patches..." 1.21 +cp -a $aufs_dir/Documentation $aufs_dir/fs $aufs_dir/include $src 1.22 + 1.23 +# Apply patches 1.24 +echo "Applying aufs patches..." 1.25 +while read patch_file; do 1.26 + [ ${patch_file:0:1} == '#' ] && continue 1.27 + if [ -f done.$patch_file ]; then 1.28 + echo "Skipping $patch_file"; continue 1.29 + fi 1.30 + echo -e "\nApply $patch_file" 1.31 + patch -p1 -i "$aufs_dir/$patch_file" || exit 1 1.32 + touch done.$patch_file 1.33 +done <<EOT 1.34 +aufs4-base.patch 1.35 +aufs4-mmap.patch 1.36 +aufs4-standalone.patch 1.37 +# aufs4-loopback.patch 1.38 +EOT