summaryrefslogtreecommitdiffstats
path: root/arch/nios2/Makefile
blob: 681944f22d4ee6c50858cf90cc97ab9211bd9299 (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
CPPFLAGS += -fno-strict-aliasing -mno-hw-mul

board-$(CONFIG_GENERIC) := generic

KALLSYMS += --symbol-prefix=_

archprepare: maketools

	@$(kecho) "  SYMLINK include/nios_sopc.h -> arch/nios2/boards/$(board-y)/nios_sopc.h"
	@ln -fsn ../arch/nios2/boards/$(board-y)/nios_sopc.h include/nios_sopc.h

PHONY += maketools

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

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

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