1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| rm -rf ../arm64-devel-3.18.31/
mkdir -p ../arm64-devel-3.18.31/
find . -path "./out" -prune -o \( -type f -name "Makefile*" -o -name "Kconfig*" \) -type f -print | xargs -i cp --parents {} ../arm64-devel-3.18.31/
cp out/Module.symvers ../arm64-devel-3.18.31/
cp out/System.map ../arm64-devel-3.18.31/
if [ -s out/Module.markers ]; then
cp out/Module.markers ../arm64-devel-3.18.31/
fi
rm -rf ../arm64-devel-3.18.31/scripts
rm -rf ../arm64-devel-3.18.31/include
cp out/.config ../arm64-devel-3.18.31/
cp -a scripts ../arm64-devel-3.18.31/
cp -a out/scripts ../arm64-devel-3.18.31/
rm -f ../arm64-devel-3.18.31/scripts/*.o
rm -f ../arm64-devel-3.18.31/scripts/*/*.o
cp -a --parents include ../arm64-devel-3.18.31/
cp -a --parents arch ../arm64-devel-3.18.31/
cp -a out/arch/arm64/include/generated ../arm64-devel-3.18.31/arch/arm64/include/
cp -a out/include/config ../arm64-devel-3.18.31/include/
cp -a out/include/generated ../arm64-devel-3.18.31/include/
ln -s ../arm64-devel-3.18.31/include/generated/uapi/linux/version.h ../arm64-devel-3.18.31/include/linux/version.h
touch -r ../arm64-devel-3.18.31/Makefile ../arm64-devel-3.18.31/include/generated/uapi/linux/version.h
touch -r ../arm64-devel-3.18.31/.config ../arm64-devel-3.18.31/include/generated/autoconf.h
cp ../arm64-devel-3.18.31/.config ../arm64-devel-3.18.31/include/config/auto.conf
|