]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.181/mips-pistachio-build-uimage.gz-by-default.patch
Linux 4.4.181
[thirdparty/kernel/stable-queue.git] / releases / 4.4.181 / mips-pistachio-build-uimage.gz-by-default.patch
CommitLineData
93bc18fa
GKH
1From e4f2d1af7163becb181419af9dece9206001e0a6 Mon Sep 17 00:00:00 2001
2From: Paul Burton <paul.burton@mips.com>
3Date: Tue, 28 May 2019 17:21:26 +0000
4Subject: MIPS: pistachio: Build uImage.gz by default
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9From: Paul Burton <paul.burton@mips.com>
10
11commit e4f2d1af7163becb181419af9dece9206001e0a6 upstream.
12
13The pistachio platform uses the U-Boot bootloader & generally boots a
14kernel in the uImage format. As such it's useful to build one when
15building the kernel, but to do so currently requires the user to
16manually specify a uImage target on the make command line.
17
18Make uImage.gz the pistachio platform's default build target, so that
19the default is to build a kernel image that we can actually boot on a
20board such as the MIPS Creator Ci40.
21
22Marked for stable backport as far as v4.1 where pistachio support was
23introduced. This is primarily useful for CI systems such as kernelci.org
24which will benefit from us building a suitable image which can then be
25booted as part of automated testing, extending our test coverage to the
26affected stable branches.
27
28Signed-off-by: Paul Burton <paul.burton@mips.com>
29Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
30Reviewed-by: Kevin Hilman <khilman@baylibre.com>
31Tested-by: Kevin Hilman <khilman@baylibre.com>
32URL: https://groups.io/g/kernelci/message/388
33Cc: stable@vger.kernel.org # v4.1+
34Cc: linux-mips@vger.kernel.org
35Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
36
37---
38 arch/mips/pistachio/Platform | 1 +
39 1 file changed, 1 insertion(+)
40
41--- a/arch/mips/pistachio/Platform
42+++ b/arch/mips/pistachio/Platform
43@@ -6,3 +6,4 @@ cflags-$(CONFIG_MACH_PISTACHIO) += \
44 -I$(srctree)/arch/mips/include/asm/mach-pistachio
45 load-$(CONFIG_MACH_PISTACHIO) += 0xffffffff80400000
46 zload-$(CONFIG_MACH_PISTACHIO) += 0xffffffff81000000
47+all-$(CONFIG_MACH_PISTACHIO) := uImage.gz