Skip to contentSkip to conversation

Add arch/nios2/Makefile

PATCH In review [email protected] 2 participants 3 messages Mar 3, 2011 – Mar 16, 2011 NIOS2 architecture

lore
Share & tools
lore
#0 lore raw

PATCH 2/54 Add arch/nios2/Makefile

From: Franck JULLIEN <[email protected]>

Add arch/nios2/Makefile

---
 arch/nios2/Makefile |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 arch/nios2/Makefile
arch/nios2/Makefile new file +31 -0
new file mode 100644
index 0000000..9842c0b
@@ -0,0 +1,31 @@
+CPPFLAGS += -fno-strict-aliasing
+
+board-$(CONFIG_GENERIC) := generic
+cpu-$(CONFIG_NIOS2)	:= nios2
+
+KALLSYMS         += --symbol-prefix=_
+
+archprepare: maketools
+
+	@echo "  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
+
+ifneq ($(cpu-y),)
+CPU  := arch/nios2/cpu-$(cpu-y)/
+else
+CPU  :=
+endif
+
+common-y += $(BOARD)
+common-y += arch/nios2/lib/ $(CPU)
+
+lds-y += $(BOARD)/barebox.lds
+
Signature · 7 lines
1.7.3.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

arch/nios2/Makefile line 4

Quoted 5 lines · On 3/4/11 7:58 AM, [email protected] wrote:
arch/nios2/Makefile new file +4 -0
@@ -0,0 +1,31 @@
+CPPFLAGS += -fno-strict-aliasing
+
+board-$(CONFIG_GENERIC) := generic
+cpu-$(CONFIG_NIOS2)	:= nios2

Any other processor core types other than 'nios2?' Can we name it just arch/nios2/cpu/, not arch/nios2/cpu-nios2/?

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw

2011/3/16 Shinya Kuribayashi <[email protected]>

Quoted 13 lines · On 3/4/11 7:58 AM, [email protected] wrote:

arch/nios2/Makefile line 4

Quoted 7 lines
arch/nios2/Makefile new file +4 -0
@@ -0,0 +1,31 @@
+CPPFLAGS += -fno-strict-aliasing
+
+board-$(CONFIG_GENERIC) := generic
+cpu-$(CONFIG_NIOS2)    := nios2

Any other processor core types other than 'nios2?' Can we name it just arch/nios2/cpu/, not arch/nios2/cpu-nios2/?

You're right, I'll rename it.

Franck.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox