Makefile (681e4a5e13c1c8315694eb4f44e0cdd84c9082d2) | Makefile (472ab9ee15c6a28adbac65a543af58461b49a947) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for bootable kernel images 4# |
|
1 | 5 |
6targets += vmlinux.bin |
|
2 | 7 |
3ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""' 4BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_OPENRISC_BUILTIN_DTB)).dtb.o 5else 6BUILTIN_DTB := 7endif 8obj-y += $(BUILTIN_DTB) 9 10clean-files := *.dtb.S 11 12#DTC_FLAGS ?= -p 1024 13 14$(obj)/%.dtb: $(src)/dts/%.dts FORCE 15 $(call if_changed_dep,dtc) | 8OBJCOPYFLAGS_vmlinux.bin := -O binary 9$(obj)/vmlinux.bin: vmlinux FORCE 10 $(call if_changed,objcopy) |