summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-01 18:11:35 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-01 18:11:35 +0200
commit0f96a0f56c74580d580b5d695499cf4df6bad520 (patch)
treecae485dc49b51c1734d2c915e245a21616c09a36 /target
parent1bad8cf3c967cac8fb149217878b56f9cec03c8b (diff)
add support for glibc/eglibc qemu-sh systems
Diffstat (limited to 'target')
-rw-r--r--target/config/Config.in4
-rw-r--r--target/config/Config.in.runtime5
-rw-r--r--target/linux/config/Config.in.input2
-rw-r--r--target/linux/config/Config.in.usb4
-rw-r--r--target/sh/kernel.config14
-rw-r--r--target/sh/sys-available/qemu-sh4 (renamed from target/sh/sys-available/qemu-sh)4
6 files changed, 19 insertions, 14 deletions
diff --git a/target/config/Config.in b/target/config/Config.in
index 6a7c05d82..bb86ae471 100644
--- a/target/config/Config.in
+++ b/target/config/Config.in
@@ -482,7 +482,7 @@ config ADK_TARGET_CPU_ARCH
default "avr32" if ADK_LINUX_AVR32
default "sparc" if ADK_LINUX_SPARC
default "sparc64" if ADK_LINUX_SPARC64
- default "sh" if ADK_LINUX_SH
+ default "sh4" if ADK_LINUX_SH
default "cris" if ADK_CPU_CRIS_V10
default "crisv32" if ADK_CPU_CRIS_V32
default "ppc" if ADK_CPU_PPC
@@ -602,6 +602,7 @@ config ADK_TARGET_LIB_EGLIBC
ADK_LINUX_MIPS64EL || \
ADK_LINUX_PPC || \
ADK_LINUX_PPC64 || \
+ ADK_LINUX_SH || \
ADK_LINUX_SPARC || \
ADK_LINUX_SPARC64 || \
ADK_LINUX_X86 || \
@@ -622,6 +623,7 @@ config ADK_TARGET_LIB_GLIBC
ADK_LINUX_MIPS64EL || \
ADK_LINUX_PPC || \
ADK_LINUX_PPC64 || \
+ ADK_LINUX_SH || \
ADK_LINUX_SPARC || \
ADK_LINUX_SPARC64 || \
ADK_LINUX_X86 || \
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index ddd0e3d2a..4be07a2c1 100644
--- a/target/config/Config.in.runtime
+++ b/target/config/Config.in.runtime
@@ -23,6 +23,7 @@ config ADK_RUNTIME_PASSWORD
config ADK_RUNTIME_TMPFS_SIZE
string "size of /tmp in memory (kB)"
default "16384" if ADK_TARGET_SYSTEM_IBM_X40
+ default "16384" if ADK_TARGET_SYSTEM_RASPBERRY_PI
default "2048"
help
Size of /tmp in memory in Kilobyte.
@@ -35,8 +36,8 @@ config ADK_RUNTIME_TIMEZONE
choice
prompt "Console output on embedded system"
-default ADK_RUNTIME_CONSOLE_BOTH if ADK_TARGET_WITH_VGA && !ADK_TARGET_SYSTEM_RASPBERRY_PI
-default ADK_RUNTIME_CONSOLE_VGA if ADK_TARGET_SYSTEM_RASPBERRY_PI
+default ADK_RUNTIME_CONSOLE_BOTH if ADK_TARGET_WITH_VGA && !ADK_TARGET_SYSTEM_RASPBERRY_PI && !ADK_TARGET_SYSTEM_QEMU_SH4
+default ADK_RUNTIME_CONSOLE_VGA if ADK_TARGET_SYSTEM_RASPBERRY_PI || ADK_TARGET_SYSTEM_QEMU_SH4
default ADK_RUNTIME_CONSOLE_SERIAL
config ADK_RUNTIME_CONSOLE_VGA
diff --git a/target/linux/config/Config.in.input b/target/linux/config/Config.in.input
index a4079c37b..587a7f2c9 100644
--- a/target/linux/config/Config.in.input
+++ b/target/linux/config/Config.in.input
@@ -5,6 +5,7 @@ config ADK_KERNEL_INPUT
boolean
default y if ADK_TARGET_SYSTEM_QEMU_I686
default y if ADK_TARGET_SYSTEM_QEMU_X86_64
+ default y if ADK_TARGET_SYSTEM_QEMU_SH4
default y if ADK_TARGET_SYSTEM_ARANYM_M68K
default y if ADK_TARGET_SYSTEM_VBOX_I686
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
@@ -143,6 +144,7 @@ config ADK_KPACKAGE_KMOD_USB_HID
depends on !ADK_TARGET_SYSTEM_FOXBOARD_LX
depends on ADK_TARGET_WITH_USB
default y if ADK_TARGET_SYSTEM_RASPBERRY_PI
+ default y if ADK_TARGET_SYSTEM_QEMU_SH4
default n
config ADK_KPACKAGE_KMOD_KEYBOARD_ATKBD
diff --git a/target/linux/config/Config.in.usb b/target/linux/config/Config.in.usb
index fa0c3171f..1459039b6 100644
--- a/target/linux/config/Config.in.usb
+++ b/target/linux/config/Config.in.usb
@@ -31,7 +31,7 @@ config ADK_KPACKAGE_KMOD_USB
select ADK_KERNEL_NLS
depends on !ADK_KERNEL_USB
default y if ADK_TARGET_SYSTEM_QEMU_I686
- default y if ADK_TARGET_SYSTEM_QEMU_SH
+ default y if ADK_TARGET_SYSTEM_QEMU_SH4
default y if ADK_TARGET_SYSTEM_QEMU_X86_64
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX1C
default y if ADK_TARGET_SYSTEM_PCENGINES_ALIX2D2
@@ -116,7 +116,7 @@ config ADK_KPACKAGE_KMOD_USB_OHCI_HCD
default y if ADK_TARGET_SYSTEM_INTEL_ATOM
default y if ADK_NATIVE_SYSTEM_INTEL_ATOM
default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
- default y if ADK_TARGET_SYSTEM_QEMU_SH
+ default y if ADK_TARGET_SYSTEM_QEMU_SH4
default n
help
The Open Host Controller Interface (OHCI) is a standard for accessing
diff --git a/target/sh/kernel.config b/target/sh/kernel.config
index 8767d7ecd..787edeb34 100644
--- a/target/sh/kernel.config
+++ b/target/sh/kernel.config
@@ -101,7 +101,7 @@ CONFIG_UIDGID_CONVERTED=y
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
-# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_EXPERT=y
@@ -132,7 +132,7 @@ CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_PCI_QUIRKS=y
-CONFIG_COMPAT_BRK=y
+# CONFIG_COMPAT_BRK is not set
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
@@ -278,7 +278,7 @@ CONFIG_ZONE_DMA_FLAG=0
CONFIG_NR_QUICK=1
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
-CONFIG_CROSS_MEMORY_ATTACH=y
+# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_CLEANCACHE is not set
@@ -350,11 +350,11 @@ CONFIG_SH_CLK_CPG_LEGACY=y
#
# Kernel features
#
-# CONFIG_HZ_100 is not set
-CONFIG_HZ_250=y
+CONFIG_HZ_100=y
+# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
-CONFIG_HZ=250
+CONFIG_HZ=100
# CONFIG_SCHED_HRTICK is not set
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
@@ -385,7 +385,7 @@ CONFIG_BOOT_LINK_OFFSET=0x00800000
CONFIG_ENTRY_OFFSET=0x00001000
CONFIG_CMDLINE_OVERWRITE=y
# CONFIG_CMDLINE_EXTEND is not set
-CONFIG_CMDLINE="console=ttySC1 console=tty0"
+CONFIG_CMDLINE="console=tty0"
#
# Bus options
diff --git a/target/sh/sys-available/qemu-sh b/target/sh/sys-available/qemu-sh4
index 4ea65fb3b..7932ffac6 100644
--- a/target/sh/sys-available/qemu-sh
+++ b/target/sh/sys-available/qemu-sh4
@@ -1,7 +1,7 @@
-config ADK_TARGET_SYSTEM_QEMU_SH
+config ADK_TARGET_SYSTEM_QEMU_SH4
bool "Qemu Emulator"
select ADK_sh
- select ADK_qemu_sh
+ select ADK_qemu_sh4
select ADK_CPU_SH4
select ADK_HARDWARE_QEMU
select ADK_TARGET_WITH_VGA