summaryrefslogtreecommitdiff
path: root/target/sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-07 07:45:07 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-07 18:31:58 +0100
commit9a79ea17c1a43534d14ccba203b6d6531ba6fbf8 (patch)
treea8bdbeca7af51de01bfec949f4b164042c32dacf /target/sh
parentc27d0b577b90648001bfa047656cc7b722d7736a (diff)
more Numato Mimas v2 J2 bits and bytes
Diffstat (limited to 'target/sh')
-rw-r--r--target/sh/Makefile5
-rw-r--r--target/sh/kernel/numato-mimasv24
-rw-r--r--target/sh/systems/numato-mimasv21
3 files changed, 9 insertions, 1 deletions
diff --git a/target/sh/Makefile b/target/sh/Makefile
index c42d6570a..70df270be 100644
--- a/target/sh/Makefile
+++ b/target/sh/Makefile
@@ -10,6 +10,7 @@ KERNEL:=$(LINUX_DIR)/vmlinux
else
KERNEL:=$(LINUX_DIR)/arch/sh/boot/zImage
endif
+OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
QEMU_ARGS:=-M r2d
QEMU_ARGS+=${ADK_QEMU_ARGS}
@@ -57,7 +58,11 @@ endif
# image creation and kernel install
kernel-strip:
+ifeq ($(ADK_TARGET_SYSTEM_NUMATO_MIMASV2),y)
+ $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+else
@cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+endif
kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}
diff --git a/target/sh/kernel/numato-mimasv2 b/target/sh/kernel/numato-mimasv2
index 60481319f..f66b31fa1 100644
--- a/target/sh/kernel/numato-mimasv2
+++ b/target/sh/kernel/numato-mimasv2
@@ -2,7 +2,9 @@ CONFIG_SUPERH=y
CONFIG_SUPERH32=y
CONFIG_CPU_SH2=y
CONFIG_0PF_FPGA=y
-CONFIG_CPU_BIG_ENDIAN=y
CONFIG_CPU_SUBTYPE_0PF=y
CONFIG_CACHE_OFF=y
CONFIG_CMDLINE_EXTEND=y
+CONFIG_SERIAL_UARTLITE=y
+CONFIG_SERIAL_UARTLITE_0PF=y
+CONFIG_SERIAL_UARTLITE_CONSOLE=y
diff --git a/target/sh/systems/numato-mimasv2 b/target/sh/systems/numato-mimasv2
index 5242c6ab7..07e234724 100644
--- a/target/sh/systems/numato-mimasv2
+++ b/target/sh/systems/numato-mimasv2
@@ -1,6 +1,7 @@
config ADK_TARGET_SYSTEM_NUMATO_MIMASV2
bool "Numato Mimas v2 FPGA"
select ADK_CPU_SH2
+ select ADK_TARGET_WITH_SERIAL
help
Support for Numato Mimas v2 FPGA with J2 Core Bitstream, sh2 architecture.