summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/Makefile
blob: b0c8566e4e1bfac51670d6f18c97824d8905c03c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CPPFLAGS += -D__OR1K__ -ffixed-r10 -mhard-mul -mhard-div

board-$(CONFIG_GENERIC) := generic

KALLSYMS += --symbol-prefix=_

archprepare: maketools

PHONY += maketools

ifneq ($(board-y),)
BOARD  := arch/openrisc/boards/$(board-y)/
else
BOARD  :=
endif

common-y += $(BOARD)
common-y += arch/openrisc/lib/
common-y += arch/openrisc/cpu/

lds-y += arch/openrisc/cpu/barebox.lds

common-$(CONFIG_BUILTIN_DTB) += arch/openrisc/dts/

dts := arch/openrisc/dts

%.dtb: scripts
	$(Q)$(MAKE) $(build)=$(dts) $(dts)/$@