Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1640881

[PATCH] kbuild: add ARM support for tar-pkg

From Sascha Silbe <x-linux@infra-silbe.de>
Newsgroups linux.kernel
Subject [PATCH] kbuild: add ARM support for tar-pkg
Date 2017-05-13 13:40 +0200
Message-ID <tGDyV-31W-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The fallback code for "unknown" architectures doesn't work on ARM
because for ARM (and a couple of other architectures) KBUILD_IMAGE
contains only the file name, not the full path. Having an explicit
rule also avoids printing the warning for unknown architectures.

Signed-off-by: Sascha Silbe <x-linux@infra-silbe.de>
---
 scripts/package/buildtar | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index e046bff33589..cbcc4496c025 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -108,6 +108,11 @@ case "${ARCH}" in
 			cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
 		fi
 		;;
+	arm)
+		if [ -f "${objtree}/arch/${ARCH}/boot/${KBUILD_IMAGE}" ]; then
+			cp -v -- "${objtree}/arch/${ARCH}/boot/${KBUILD_IMAGE}" "${tmpdir}/boot/${KBUILD_IMAGE}-${KERNELRELEASE}"
+		fi
+		;;
 	*)
 		[ -f "${KBUILD_IMAGE}" ] && cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinux-kbuild-${KERNELRELEASE}"
 		echo "" >&2
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] kbuild: add ARM support for tar-pkg Sascha Silbe <x-linux@infra-silbe.de> - 2017-05-13 13:40 +0200
  Re: [PATCH] kbuild: add ARM support for tar-pkg Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-05-13 17:30 +0200
    Re: [PATCH] kbuild: add ARM support for tar-pkg Sascha Silbe <x-linux@infra-silbe.de> - 2017-05-14 19:00 +0200
    [PATCH v2] kbuild: add explicit ARM support for tar-pkg Sascha Silbe <x-linux@infra-silbe.de> - 2017-05-14 19:20 +0200

csiph-web