diff options
author | Joel Stanley <joel@jms.id.au> | 2020-12-22 17:37:31 +1030 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2021-01-01 14:59:57 +0900 |
commit | 472ab9ee15c6a28adbac65a543af58461b49a947 (patch) | |
tree | 4f2cbe06d26cea384f3c7e5fc70703c4e2068484 /arch/openrisc/Makefile | |
parent | 5c8fe583cce542aa0b84adc939ce85293de36e5e (diff) | |
download | linux-472ab9ee15c6a28adbac65a543af58461b49a947.tar.gz linux-472ab9ee15c6a28adbac65a543af58461b49a947.tar.bz2 linux-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/Makefile')
-rw-r--r-- | arch/openrisc/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile index bf10141c7426..b13404f1f8bd 100644 --- a/arch/openrisc/Makefile +++ b/arch/openrisc/Makefile @@ -24,6 +24,10 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) KBUILD_CFLAGS += -pipe -ffixed-r10 -D__linux__ +all: vmlinux.bin + +boot := arch/$(ARCH)/boot + ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y) KBUILD_CFLAGS += $(call cc-option,-mhard-mul) else @@ -49,3 +53,11 @@ else BUILTIN_DTB := n endif core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/ + +PHONY += vmlinux.bin + +vmlinux.bin: vmlinux + $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ + +archclean: + $(Q)$(MAKE) $(clean)=$(boot) |