summaryrefslogtreecommitdiff
path: root/arch/openrisc/boot
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2020-12-22 17:37:31 +1030
committerStafford Horne <shorne@gmail.com>2021-01-01 14:59:57 +0900
commit472ab9ee15c6a28adbac65a543af58461b49a947 (patch)
tree4f2cbe06d26cea384f3c7e5fc70703c4e2068484 /arch/openrisc/boot
parent5c8fe583cce542aa0b84adc939ce85293de36e5e (diff)
downloadlwn-472ab9ee15c6a28adbac65a543af58461b49a947.tar.gz
lwn-472ab9ee15c6a28adbac65a543af58461b49a947.zip
openrisc: Add vmlinux.bin target
Build it by default. This is commonly used by fpga targets. Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/boot')
-rw-r--r--arch/openrisc/boot/.gitignore2
-rw-r--r--arch/openrisc/boot/Makefile10
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/openrisc/boot/.gitignore b/arch/openrisc/boot/.gitignore
new file mode 100644
index 000000000000..007d6fea3145
--- /dev/null
+++ b/arch/openrisc/boot/.gitignore
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+vmlinux.bin
diff --git a/arch/openrisc/boot/Makefile b/arch/openrisc/boot/Makefile
new file mode 100644
index 000000000000..5b28538f4dd1
--- /dev/null
+++ b/arch/openrisc/boot/Makefile
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for bootable kernel images
+#
+
+targets += vmlinux.bin
+
+OBJCOPYFLAGS_vmlinux.bin := -O binary
+$(obj)/vmlinux.bin: vmlinux FORCE
+ $(call if_changed,objcopy)