diff options
Diffstat (limited to 'target/sh')
-rw-r--r-- | target/sh/Makefile | 14 | ||||
-rw-r--r-- | target/sh/kernel.config | 22 | ||||
-rw-r--r-- | target/sh/sys-available/qemu-sh4 (renamed from target/sh/sys-available/qemu-sh) | 7 | ||||
-rw-r--r-- | target/sh/sys-available/qemu-sh4eb | 14 |
4 files changed, 37 insertions, 20 deletions
diff --git a/target/sh/Makefile b/target/sh/Makefile index 86570eaeb..5cf42b342 100644 --- a/target/sh/Makefile +++ b/target/sh/Makefile @@ -11,9 +11,15 @@ KERNEL:=$(LINUX_DIR)/arch/sh/boot/zImage ifeq ($(ADK_TARGET_FS),archive) imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL) - @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL} - @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}' @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)" +ifneq ($(ADK_HARDWARE_QEMU),) + @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL) + @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}' + @echo "Use following command to create a QEMU Image:" + @echo "./scripts/create.sh +g qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)" + @echo "Start qemu with following options:" + @echo 'qemu-system-${CPU_ARCH} -M r2d -kernel $(BIN_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img' +endif endif ifeq ($(ADK_TARGET_FS),initramfs) imageinstall: $(BIN_DIR)/$(INITRAMFS) @@ -22,7 +28,7 @@ imageinstall: $(BIN_DIR)/$(INITRAMFS) @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}' ifeq ($(ADK_TARGET_SYSTEM_QEMU_SH),y) @echo "Start qemu with following command line:" - @echo 'qemu-system-sh4 -M r2d -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}' + @echo 'qemu-system-${CPU_ARCH} -M r2d -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}' endif endif ifeq ($(ADK_TARGET_FS),initramfs-piggyback) @@ -31,6 +37,6 @@ imageinstall: createinitramfs @echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}' ifeq ($(ADK_TARGET_SYSTEM_QEMU_SH),y) @echo "Start qemu with following command line:" - @echo 'qemu-system-sh4 -M r2d -kernel $(BIN_DIR)/$(TARGET_KERNEL)' + @echo 'qemu-system-{CPU_ARCH} -M r2d -kernel $(BIN_DIR)/$(TARGET_KERNEL)' endif endif diff --git a/target/sh/kernel.config b/target/sh/kernel.config index 8767d7ecd..85fbc2e4b 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 @@ -769,12 +769,8 @@ CONFIG_ETHERNET=y # CONFIG_NET_PACKET_ENGINE is not set # CONFIG_NET_VENDOR_QLOGIC is not set CONFIG_NET_VENDOR_REALTEK=y -# CONFIG_8139CP is not set -CONFIG_8139TOO=y -# CONFIG_8139TOO_PIO is not set -# CONFIG_8139TOO_TUNE_TWISTER is not set -# CONFIG_8139TOO_8129 is not set -# CONFIG_8139_OLD_RX_RESET is not set +CONFIG_8139CP=y +# CONFIG_8139TOO is not set # CONFIG_R8169 is not set # CONFIG_NET_VENDOR_RDC is not set # CONFIG_NET_VENDOR_SEEQ is not set diff --git a/target/sh/sys-available/qemu-sh b/target/sh/sys-available/qemu-sh4 index 4ea65fb3b..54f13fb65 100644 --- a/target/sh/sys-available/qemu-sh +++ b/target/sh/sys-available/qemu-sh4 @@ -1,7 +1,8 @@ -config ADK_TARGET_SYSTEM_QEMU_SH - bool "Qemu Emulator" +config ADK_TARGET_SYSTEM_QEMU_SH4 + bool "Qemu Emulator (Little Endian)" select ADK_sh - select ADK_qemu_sh + select ADK_little + select ADK_qemu_sh4 select ADK_CPU_SH4 select ADK_HARDWARE_QEMU select ADK_TARGET_WITH_VGA diff --git a/target/sh/sys-available/qemu-sh4eb b/target/sh/sys-available/qemu-sh4eb new file mode 100644 index 000000000..70365d7d4 --- /dev/null +++ b/target/sh/sys-available/qemu-sh4eb @@ -0,0 +1,14 @@ +config ADK_TARGET_SYSTEM_QEMU_SH4EB + bool "Qemu Emulator (Big Endian)" + select ADK_sh + select ADK_big + select ADK_qemu_sh4 + select ADK_CPU_SH4 + select ADK_KERNEL_CPU_BIG_ENDIAN + select ADK_HARDWARE_QEMU + select ADK_TARGET_WITH_VGA + select ADK_TARGET_WITH_INPUT + select ADK_TARGET_WITH_USB + help + Support for Qemu Emulator (superh). + |