From 6fe9ee8eb4f85ff85b17024e25171d36c3f062ac Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Tue, 20 Dec 2011 23:11:36 +0100 Subject: Add OpenRISC arch OpenRISC is the original flagship project of the OpenCores community. This project aims to develop a series of general purpose open source RISC CPU architectures. A team from OpenCores provided the first implementation, the OpenRISC 1200, written in the Verilog hardware description language. Even though I should have created an mach-or1200 directory, it is not necessary for now. The OpenRISC 1200 CPU is the only one available and it will be for some time. Signed-off-by: Franck Jullien Signed-off-by: Sascha Hauer --- arch/openrisc/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 arch/openrisc/Makefile (limited to 'arch/openrisc/Makefile') diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile new file mode 100644 index 0000000000..fd8bbbf4d7 --- /dev/null +++ b/arch/openrisc/Makefile @@ -0,0 +1,21 @@ +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 -- cgit v1.2.3