blob: 98864a395009718cb98d9edfa0519a0d4e1d2eb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
# Check this system has ccache
check_ccache()
{
type ccache
if [ "$?" -eq "0" ]; then
CCACHE=ccache
fi
}
check_ccache
rm output/linux-4-0-exynos5433-arm64.tar
if ! [ -d output ] ; then
mkdir output
fi
if ! [ -e .config ] ; then
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig
fi
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs
tools/dtbtool -o output/dt.img arch/arm64/boot/dts/exynos/
cp arch/arm64/boot/Image output/kernel
tools/mkbootimg --kernel output/kernel --ramdisk usr/ramdisk.img --output output/boot.img --dt output/dt.img
cd output
tar cf linux-4-0-exynos5433-arm64.tar boot.img
|