diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-05-20 10:28:23 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:50:50 +0900 |
commit | 1918c8b56471b366ceacd3e00b9f02183fabfc7e (patch) | |
tree | 5f5f26fc0bd5f40eae86aa4844e292e60ceb9cdf /build-kernel-exynos5433.sh | |
parent | ced9d08d506ed40b2ca17ba3a3a99a6a2a72f8ae (diff) |
build: add fit image build and mkimage tools to create fit image
This patch fixes local build script to make fit image also and
x86_32 prebuilt mkimage tool to create fit image.
Also boot.img style image creation and tools for boot.img are
removed.
Change-Id: I7dedb2d40a8a5c672f01271951551b660c5f7013
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'build-kernel-exynos5433.sh')
-rwxr-xr-x | build-kernel-exynos5433.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/build-kernel-exynos5433.sh b/build-kernel-exynos5433.sh index 23fa22bd0b7f..5d139abc4b3a 100755 --- a/build-kernel-exynos5433.sh +++ b/build-kernel-exynos5433.sh @@ -11,7 +11,8 @@ check_ccache() check_ccache -rm -f output/linux-*-exynos5433-arm64.tar +rm -f output/linux-*-exynos5433-arm64*.tar +rm -f arch/arm64/boot/Image if ! [ -d output ] ; then mkdir output fi @@ -22,11 +23,13 @@ fi make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs +if [ ! -f "./arch/arm64/boot/Image" ]; then + echo "Build fail" + exit 1 +fi -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 +# create fit style image from its +PATH=tools:$PATH tools/mkimage -f arch/arm64/boot/tizen-tm2.its output/kernel.img # Check kernel version from Makefile _major_version=`cat Makefile | grep "^VERSION = " | awk '{print $3}'` @@ -35,4 +38,4 @@ _extra_version=`cat Makefile | grep "^EXTRAVERSION = " | awk '{print $3}'` _version=${_major_version}.${_minor_version}${_extra_version} cd output -tar cf linux-${_version}-exynos5433-arm64.tar boot.img +tar cf linux-${_version}-exynos5433-arm64-fit.tar kernel.img |