changeset 1653:e29e0ca60d74

The sh4 kernel config shouldn't force CONFIG_EXPERT, which lets your sh4 target config set half as many symbols.
author Rob Landley <rob@landley.net>
date Sun, 11 May 2014 22:58:42 -0500
parents 3873d1b178e0
children d847359146c4
files sources/patches/linux-sh4noexpert.patch sources/targets/sh4
diffstat 2 files changed, 16 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/linux-sh4noexpert.patch	Sun May 11 22:58:42 2014 -0500
@@ -0,0 +1,15 @@
+Forcing sh4 into CONFIG_EXPERT mode just because it's sh4 is weird. Stop it.
+
+diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
+index 834b67c..7d0d44d 100644
+--- a/arch/sh/Kconfig
++++ b/arch/sh/Kconfig
+@@ -1,7 +1,7 @@
+ config SUPERH
+ 	def_bool y
+ 	select ARCH_MIGHT_HAVE_PC_PARPORT
+-	select EXPERT
++	select HAVE_PATA_PLATFORM
+ 	select CLKDEV_LOOKUP
+ 	select HAVE_IDE if HAS_IOPORT
+ 	select HAVE_MEMBLOCK
--- a/sources/targets/sh4	Thu May 08 17:40:39 2014 -0500
+++ b/sources/targets/sh4	Sun May 11 22:58:42 2014 -0500
@@ -27,16 +27,6 @@
 # used by normal people, it's "special".
 
 LINUX_CONFIG="
-CONFIG_HOTPLUG=y
-CONFIG_PRINTK=y
-CONFIG_BUG=y
-CONFIG_ELF_CORE=y
-CONFIG_BASE_FULL=y
-CONFIG_SHMEM=y
-CONFIG_AIO=y
-CONFIG_PCI_QUIRKS=y
-CONFIG_BLOCK=y
-CONFIG_TTY=y
 CONFIG_CPU_SUBTYPE_SH7751R=y
 CONFIG_MMU=y
 CONFIG_MEMORY_START=0x0c000000
@@ -47,32 +37,19 @@
 CONFIG_RTS7751R2D_PLUS=y
 CONFIG_SH_TIMER_TMU=y
 CONFIG_HW_PERF_EVENTS=y
-CONFIG_STANDALONE=y
-CONFIG_MISC_DEVICES=y
-CONFIG_SCSI_PROC_FS=y
 CONFIG_ATA=y
 CONFIG_SATA_PMP=y
 CONFIG_ATA_SFF=y
 CONFIG_ATA_BMDMA=y
 CONFIG_PATA_PLATFORM=y
-CONFIG_UNIX98_PTYS=y
-CONFIG_LEGACY_PTYS=y
-CONFIG_DEVKMEM=y
+CONFIG_SERIO_SERPORT=y
 CONFIG_SERIAL_8250=y
-CONFIG_SERIAL_8250_PCI=y
 CONFIG_SERIAL_SH_SCI=y
 CONFIG_SERIAL_SH_SCI_CONSOLE=y
 CONFIG_SPI=y
 CONFIG_SPI_SH_SCI=y
-CONFIG_MFD_SUPPORT=y
 CONFIG_MFD_SM501=y
 CONFIG_RTC_DRV_R9701=y
-CONFIG_FILE_LOCKING=y
-CONFIG_PROC_FS=y
-CONFIG_PROC_SYSCTL=y
-CONFIG_PROC_PAGE_MONITOR=y
-CONFIG_SYSFS=y
-CONFIG_CRC_T10DIF=y
 "
 
 emulator_command()