diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-08-30 13:31:03 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:52:44 +0900 |
commit | dc004c01a71dacbb7c5a65c27f00dd0f6b1320ac (patch) | |
tree | a7a4a869c42f5bb41eca16649b6e023c53f4b672 | |
parent | add7549f057b9147f5cd64f60917d47dc8eb209d (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-x | build-kernel-exynos5433.sh | 11 | ||||
-rw-r--r-- | packaging/linux-exynos-tm2.spec | 2 | ||||
-rwxr-xr-x | tools/dtc | bin | 222045 -> 0 bytes | |||
-rwxr-xr-x | tools/mkimage.i686 (renamed from tools/mkimage) | bin | 133237 -> 114684 bytes | |||
-rwxr-xr-x | tools/mkimage.x86_64 | bin | 0 -> 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 Binary files differdeleted file mode 100755 index a9b0b885ed34..000000000000 --- a/tools/dtc +++ /dev/null diff --git a/tools/mkimage b/tools/mkimage.i686 Binary files differindex 7e94c446e849..718c6e94ef20 100755 --- a/tools/mkimage +++ b/tools/mkimage.i686 diff --git a/tools/mkimage.x86_64 b/tools/mkimage.x86_64 Binary files differnew file mode 100755 index 000000000000..5ba346351369 --- /dev/null +++ b/tools/mkimage.x86_64 |