annotate sources/targets/sh4 @ 1601:e958c89076c1

Prep work for linux-3.10.
author Rob Landley <rob@landley.net>
date Tue, 04 Jun 2013 07:48:16 -0500
parents 0b1022dc9a36
children f0c3f8456602
rev   line source
rob@1400 1 DESCRIPTION="
rob@1400 2 Hitachi developed the 4th iteration of the SuperH processor for the Dreamcast game console in 1998.
rob@1400 3 The design remains popular in Japan (especially the automotive industry), and is these days owned
rob@1400 4 by Renesas, a joint venture between Hitachi, NEC, and Mitsubishi.
rob@1400 5
rob@1400 6 There's a wiki about it at http://linux-sh.org.
rob@1400 7 "
rob@1400 8
rob@1400 9 KARCH=sh
rob@1400 10 KERNEL_PATH=arch/${KARCH}/boot/zImage
rob@1400 11 GCC_FLAGS= #"--with-cpu=m4-nofpu"
rob@1400 12 BINUTILS_FLAGS=
rob@1400 13 QEMU_TEST=$KARCH
rob@1400 14 CROSS_TARGET=sh-superh-linux
rob@1400 15
rob@1400 16 ROOT=sda
rob@1400 17 CONSOLE="ttySC1 noiotrap"
rob@1400 18
rob@1400 19 UCLIBC_CONFIG="
rob@1400 20 TARGET_sh=y
rob@1400 21 ARCH_WANTS_LITTLE_ENDIAN=y
rob@1400 22 UCLIBC_HAS_FPU=y
rob@1400 23 "
rob@1400 24
rob@1400 25 # This needs some massive cleanup, but part of the problem is arch/sh4/Kconfig forces on EXPERT
rob@1400 26 # which requies re-selecting a bunch of standard features. Apparently sh is not meant to be
rob@1400 27 # used by normal people, it's "special".
rob@1400 28
rob@1400 29 LINUX_CONFIG="
rob@1400 30 CONFIG_HOTPLUG=y
rob@1400 31 CONFIG_PRINTK=y
rob@1400 32 CONFIG_BUG=y
rob@1400 33 CONFIG_ELF_CORE=y
rob@1400 34 CONFIG_BASE_FULL=y
rob@1400 35 CONFIG_SHMEM=y
rob@1400 36 CONFIG_AIO=y
rob@1400 37 CONFIG_PCI_QUIRKS=y
rob@1400 38 CONFIG_BLOCK=y
rob@1400 39 CONFIG_CPU_SUBTYPE_SH7751R=y
rob@1400 40 CONFIG_MMU=y
rob@1400 41 CONFIG_MEMORY_START=0x0c000000
rob@1400 42 CONFIG_VSYSCALL=y
rob@1400 43 CONFIG_FLATMEM_MANUAL=y
rob@1400 44 CONFIG_SH_FPU=y
rob@1400 45 CONFIG_SH_RTS7751R2D=y
rob@1400 46 CONFIG_RTS7751R2D_PLUS=y
rob@1400 47 CONFIG_SH_TIMER_TMU=y
rob@1400 48 CONFIG_HW_PERF_EVENTS=y
rob@1400 49 CONFIG_STANDALONE=y
rob@1400 50 CONFIG_MISC_DEVICES=y
rob@1400 51 CONFIG_SCSI_PROC_FS=y
rob@1400 52 CONFIG_ATA=y
rob@1400 53 CONFIG_SATA_PMP=y
rob@1400 54 CONFIG_ATA_SFF=y
rob@1400 55 CONFIG_ATA_BMDMA=y
rob@1400 56 CONFIG_PATA_PLATFORM=y
rob@1400 57 CONFIG_UNIX98_PTYS=y
rob@1400 58 CONFIG_LEGACY_PTYS=y
rob@1400 59 CONFIG_DEVKMEM=y
rob@1400 60 CONFIG_SERIAL_8250=y
rob@1400 61 CONFIG_SERIAL_8250_PCI=y
rob@1400 62 CONFIG_SERIAL_SH_SCI=y
rob@1400 63 CONFIG_SERIAL_SH_SCI_CONSOLE=y
rob@1400 64 CONFIG_SPI=y
rob@1400 65 CONFIG_SPI_SH_SCI=y
rob@1400 66 CONFIG_MFD_SUPPORT=y
rob@1400 67 CONFIG_MFD_SM501=y
rob@1400 68 CONFIG_RTC_DRV_R9701=y
rob@1400 69 CONFIG_FILE_LOCKING=y
rob@1400 70 CONFIG_PROC_FS=y
rob@1400 71 CONFIG_PROC_SYSCTL=y
rob@1400 72 CONFIG_PROC_PAGE_MONITOR=y
rob@1400 73 CONFIG_SYSFS=y
rob@1400 74 CONFIG_CRC_T10DIF=y
rob@1400 75 "
rob@1400 76
rob@1400 77 emulator_command()
rob@1400 78 {
rob@1400 79 echo qemu-system-sh4 -M r2d $(qemu_defaults "$@") -monitor null -serial null -serial stdio
rob@1400 80 }
rob@1400 81
rob@1400 82 # qemu-system-sh4 -m 512 -nographic -monitor null -serial null -serial stdio -append 'earlyprintk=sh-sci.1 root=/dev/sda rw init=/bin/ash'