summaryrefslogtreecommitdiff
path: root/target/h8300
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-07-03 18:41:26 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-03 18:41:47 -0500
commit8e636decd8dd783f383ea98d8581f0e64c9e7a34 (patch)
treefeb42d8984dce24ffc930f7c994a94f4cbf8b748 /target/h8300
parent8179203e58e6473ee9b9451e7b91709fd08da394 (diff)
rework serial support for h8300 sim and qemu support
Diffstat (limited to 'target/h8300')
-rw-r--r--target/h8300/Makefile12
-rw-r--r--target/h8300/kernel/sim-h8300h2
2 files changed, 9 insertions, 5 deletions
diff --git a/target/h8300/Makefile b/target/h8300/Makefile
index f335b2a0a..e0a15cbba 100644
--- a/target/h8300/Makefile
+++ b/target/h8300/Makefile
@@ -8,6 +8,7 @@ include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
KERNEL:=$(LINUX_DIR)/vmlinux
+OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
# target helper text
ifeq ($(ADK_TARGET_FS),initramfs)
@@ -25,15 +26,20 @@ targethelp:
@echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
ifeq ($(ADK_TARGET_SIM),y)
@echo "Run the simulator via:"
- @echo '$(TARGET_CROSS)run $(FW_DIR)/$(TARGET_KERNEL) "earlyprintk=h8300-sim console=ttySC0"'
+ @echo '$(TARGET_CROSS)gdb $(FW_DIR)/$(TARGET_KERNEL)'
+ @echo 'target sim'
+ @echo 'sim intmode 1'
+ @echo 'sim sci pty'
+ @echo 'load'
+ @echo 'run earlyprintk=h8300-sim console=ttySC0'
endif
endif
kernel-strip:
- @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+ $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
kernel-install: kernel-strip
- @cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
+ @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
# filesystem specific targets
ifeq ($(ADK_TARGET_FS),initramfs)
diff --git a/target/h8300/kernel/sim-h8300h b/target/h8300/kernel/sim-h8300h
index fc28f02f8..493d228f9 100644
--- a/target/h8300/kernel/sim-h8300h
+++ b/target/h8300/kernel/sim-h8300h
@@ -1,4 +1,2 @@
CONFIG_H8300H_SIM=y
CONFIG_H8300_BUILTIN_DTB="h8300h_sim"
-CONFIG_SERIAL_SH_SCI=y
-CONFIG_SERIAL_SH_SCI_CONSOLE=y