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 | |
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>
-rwxr-xr-x | build-kernel-exynos5433.sh | 15 | ||||
-rwxr-xr-x | tools/dtbtool | bin | 42204 -> 0 bytes | |||
-rwxr-xr-x | tools/dtc | bin | 0 -> 222045 bytes | |||
-rwxr-xr-x | tools/mkbootimg | bin | 29016 -> 0 bytes | |||
-rwxr-xr-x | tools/mkimage | bin | 0 -> 133237 bytes | |||
-rw-r--r-- | usr/ramdisk.img | bin | 4096 -> 0 bytes |
6 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 diff --git a/tools/dtbtool b/tools/dtbtool Binary files differdeleted file mode 100755 index 863e71c17dd6..000000000000 --- a/tools/dtbtool +++ /dev/null diff --git a/tools/dtc b/tools/dtc Binary files differnew file mode 100755 index 000000000000..a9b0b885ed34 --- /dev/null +++ b/tools/dtc diff --git a/tools/mkbootimg b/tools/mkbootimg Binary files differdeleted file mode 100755 index a5ff61720c93..000000000000 --- a/tools/mkbootimg +++ /dev/null diff --git a/tools/mkimage b/tools/mkimage Binary files differnew file mode 100755 index 000000000000..7e94c446e849 --- /dev/null +++ b/tools/mkimage diff --git a/usr/ramdisk.img b/usr/ramdisk.img Binary files differdeleted file mode 100644 index 08e7df176454..000000000000 --- a/usr/ramdisk.img +++ /dev/null |