build: add support for x86_64 host 78/85978/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 30 Aug 2016 04:31:03 +0000 (13:31 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 30 Aug 2016 04:31:09 +0000 (13:31 +0900)
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>
build-kernel-exynos5433.sh
packaging/linux-exynos-tm2.spec
tools/dtc [deleted file]
tools/mkimage [deleted file]
tools/mkimage.i686 [new file with mode: 0755]
tools/mkimage.x86_64 [new file with mode: 0755]

index 62d592f885fd534a67e5d8e54c7f346c87d64b20..686874d3a6f4f34a8a20626d668b2af08b3effb9 100755 (executable)
@@ -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}'`
index 58d1bad153d1d54a64dd72e84a464bec45035356..c6dd68de3b2c288db09a319920945e50897da76c 100644 (file)
@@ -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 (executable)
index a9b0b88..0000000
Binary files a/tools/dtc and /dev/null differ
diff --git a/tools/mkimage b/tools/mkimage
deleted file mode 100755 (executable)
index 7e94c44..0000000
Binary files a/tools/mkimage and /dev/null differ
diff --git a/tools/mkimage.i686 b/tools/mkimage.i686
new file mode 100755 (executable)
index 0000000..718c6e9
Binary files /dev/null and b/tools/mkimage.i686 differ
diff --git a/tools/mkimage.x86_64 b/tools/mkimage.x86_64
new file mode 100755 (executable)
index 0000000..5ba3463
Binary files /dev/null and b/tools/mkimage.x86_64 differ