summaryrefslogtreecommitdiff
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
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>
-rwxr-xr-xbuild-kernel-exynos5433.sh11
-rw-r--r--packaging/linux-exynos-tm2.spec2
-rwxr-xr-xtools/dtcbin222045 -> 0 bytes
-rwxr-xr-xtools/mkimage.i686 (renamed from tools/mkimage)bin133237 -> 114684 bytes
-rwxr-xr-xtools/mkimage.x86_64bin0 -> 121360 bytes
5 files changed, 11 insertions, 2 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}'`
diff --git a/packaging/linux-exynos-tm2.spec b/packaging/linux-exynos-tm2.spec
index 58d1bad153d1..c6dd68de3b2c 100644
--- a/packaging/linux-exynos-tm2.spec
+++ b/packaging/linux-exynos-tm2.spec
@@ -141,7 +141,7 @@ rm -rf System.map*
rm -rf vmlinux*
rm -rf kernel.img
rm -rf uapi-headers
-rm -f tools/mkbootimg tools/dtc
+rm -f tools/mkimage*
find %{_builddir}/linux-kernel-%{version} -name ".tmp_vmlinux*" -exec rm -f {} \;
find %{_builddir}/linux-kernel-%{version} -name ".gitignore" -exec rm -f {} \;
find %{_builddir}/linux-kernel-%{version} -name "\.*dtb*tmp" -exec rm -f {} \;
diff --git a/tools/dtc b/tools/dtc
deleted file mode 100755
index a9b0b885ed34..000000000000
--- a/tools/dtc
+++ /dev/null
Binary files differ
diff --git a/tools/mkimage b/tools/mkimage.i686
index 7e94c446e849..718c6e94ef20 100755
--- a/tools/mkimage
+++ b/tools/mkimage.i686
Binary files differ
diff --git a/tools/mkimage.x86_64 b/tools/mkimage.x86_64
new file mode 100755
index 000000000000..5ba346351369
--- /dev/null
+++ b/tools/mkimage.x86_64
Binary files differ