mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Stafford Horne
parent
5c8fe583cc
commit
472ab9ee15
@@ -24,6 +24,10 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
|
|||||||
|
|
||||||
KBUILD_CFLAGS += -pipe -ffixed-r10 -D__linux__
|
KBUILD_CFLAGS += -pipe -ffixed-r10 -D__linux__
|
||||||
|
|
||||||
|
all: vmlinux.bin
|
||||||
|
|
||||||
|
boot := arch/$(ARCH)/boot
|
||||||
|
|
||||||
ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y)
|
ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y)
|
||||||
KBUILD_CFLAGS += $(call cc-option,-mhard-mul)
|
KBUILD_CFLAGS += $(call cc-option,-mhard-mul)
|
||||||
else
|
else
|
||||||
@@ -49,3 +53,11 @@ else
|
|||||||
BUILTIN_DTB := n
|
BUILTIN_DTB := n
|
||||||
endif
|
endif
|
||||||
core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/
|
core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/
|
||||||
|
|
||||||
|
PHONY += vmlinux.bin
|
||||||
|
|
||||||
|
vmlinux.bin: vmlinux
|
||||||
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
||||||
|
|
||||||
|
archclean:
|
||||||
|
$(Q)$(MAKE) $(clean)=$(boot)
|
||||||
|
2
arch/openrisc/boot/.gitignore
vendored
Normal file
2
arch/openrisc/boot/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
vmlinux.bin
|
10
arch/openrisc/boot/Makefile
Normal file
10
arch/openrisc/boot/Makefile
Normal file
@@ -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)
|
Reference in New Issue
Block a user