From 1918c8b56471b366ceacd3e00b9f02183fabfc7e Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Fri, 20 May 2016 10:28:23 +0900 Subject: 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 --- build-kernel-exynos5433.sh | 15 +++++++++------ tools/dtbtool | Bin 42204 -> 0 bytes tools/dtc | Bin 0 -> 222045 bytes tools/mkbootimg | Bin 29016 -> 0 bytes tools/mkimage | Bin 0 -> 133237 bytes usr/ramdisk.img | Bin 4096 -> 0 bytes 6 files changed, 9 insertions(+), 6 deletions(-) delete mode 100755 tools/dtbtool create mode 100755 tools/dtc delete mode 100755 tools/mkbootimg create mode 100755 tools/mkimage delete mode 100644 usr/ramdisk.img 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 diff --git a/tools/dtbtool b/tools/dtbtool deleted file mode 100755 index 863e71c17dd6..000000000000 Binary files a/tools/dtbtool and /dev/null differ diff --git a/tools/dtc b/tools/dtc new file mode 100755 index 000000000000..a9b0b885ed34 Binary files /dev/null and b/tools/dtc differ diff --git a/tools/mkbootimg b/tools/mkbootimg deleted file mode 100755 index a5ff61720c93..000000000000 Binary files a/tools/mkbootimg and /dev/null differ diff --git a/tools/mkimage b/tools/mkimage new file mode 100755 index 000000000000..7e94c446e849 Binary files /dev/null and b/tools/mkimage differ diff --git a/usr/ramdisk.img b/usr/ramdisk.img deleted file mode 100644 index 08e7df176454..000000000000 Binary files a/usr/ramdisk.img and /dev/null differ -- cgit v1.2.3