summaryrefslogtreecommitdiff
path: root/build-kernel-exynos5433.sh
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2016-08-30 13:31:03 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:52:44 +0900
commitdc004c01a71dacbb7c5a65c27f00dd0f6b1320ac (patch)
treea7a4a869c42f5bb41eca16649b6e023c53f4b672 /build-kernel-exynos5433.sh
parentadd7549f057b9147f5cd64f60917d47dc8eb209d (diff)
build: add support for x86_64 host
For x86_64 host local build, this patch adds prebuilt mkimage from u-boot and local build script files uses the prebuilt mkimage as host architecture. The mkimage requires dtc also, but it is already in scripts/dtc and built as host tool during kernel build,so dtc is not required prebuilt files. Change-Id: Id3f734ee39cc1e639bcaff2a7e49ad6d6c66665a Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'build-kernel-exynos5433.sh')
-rwxr-xr-xbuild-kernel-exynos5433.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/build-kernel-exynos5433.sh b/build-kernel-exynos5433.sh
index 62d592f885fd..686874d3a6f4 100755
--- a/build-kernel-exynos5433.sh
+++ b/build-kernel-exynos5433.sh
@@ -29,8 +29,17 @@ if [ ! -f "./arch/arm64/boot/Image" ]; then
exit 1
fi
+HOST_ARCH=`uname -m`
+if [ "$HOST_ARCH" == "x86_64" ]; then
+ cp tools/mkimage.x86_64 tools/mkimage
+elif [ "$HOST_ARCH" == "i586" ] || [ "$HOST_ARCH" == "i686" ]; then
+ cp tools/mkimage.i686 tools/mkimage
+else
+ echo "Unknow HOST architecture, u-boot-tools, mkimage is required!"
+fi
+
# create fit style image from its
-PATH=tools:$PATH tools/mkimage -f arch/arm64/boot/tizen-tm2.its output/kernel.img
+PATH=scripts/dtc:$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}'`