diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2014-10-31 20:33:26 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:40:33 +0900 |
commit | 1d31d24ed445f886ba08e86fd4cc51b4f6c4d7f1 (patch) | |
tree | 1846d2c9fb645e44f1af6624533eb1f901a239cd /build-kernel-exynos5433.sh | |
parent | 0a9f03c18aa02b54d6d00ff2c08d6972600359e5 (diff) |
LOCAL / tools: Add build script for Exynos5433 SoC
This patch adds build script to build the kernel for Exynos5433-based board.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'build-kernel-exynos5433.sh')
-rwxr-xr-x | build-kernel-exynos5433.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/build-kernel-exynos5433.sh b/build-kernel-exynos5433.sh new file mode 100755 index 000000000000..98864a395009 --- /dev/null +++ b/build-kernel-exynos5433.sh @@ -0,0 +1,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 |