From patchwork Sun May 11 23:53:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Landley X-Patchwork-Id: 4153401 X-Patchwork-Delegate: lethal@linux-sh.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2957DBFF02 for ; Sun, 11 May 2014 23:53:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F3904201BB for ; Sun, 11 May 2014 23:53:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7C4182018A for ; Sun, 11 May 2014 23:53:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752501AbaEKXx2 (ORCPT ); Sun, 11 May 2014 19:53:28 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:59782 "EHLO mail-ob0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751614AbaEKXx1 (ORCPT ); Sun, 11 May 2014 19:53:27 -0400 Received: by mail-ob0-f169.google.com with SMTP id vb8so7279534obc.14 for ; Sun, 11 May 2014 16:53:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=Uxq6jb3bLmlbeFMZfnjfrGY4J613trlbtx8s9hHPA0s=; b=FeQR8/4YRq1amzf+nilg6bkH9f7ikNY649eavYDuizQC82hN/kv7z95Z1uvuCtW1Fy 2zhBku043bNR7v9J0YVbawFC3dJXTI7Mpj4iXYdJoWiIltq1LtqqUMS1VFNSZ/StzRcg h39Jmq4KmccXGbT/5RQLnkjiX+pn+ek8nhaCQM0h4ifyOSTME0R5clR1DijXOZB4H+ri cSce/V6tnUgoBqYbVeD4iDJamerEOmtwfpWiMaKE9kV5upe4oMfXB6WK//l+eGM2/DKA X5nLoc+0wLfr0gAkpT6csL3CTERbjk3g5+QMFWVuPPyuLR1wq2LhlDFXLXKA+wg90rbh RSow== X-Gm-Message-State: ALoCoQnZZDXsPmkWDPrdK/dl4nv1RDrqiLaZh2/03sqGV+rn3I9zpPW+/gwsopXTYpLxgA5P95Or X-Received: by 10.60.176.102 with SMTP id ch6mr3637678oec.37.1399852407209; Sun, 11 May 2014 16:53:27 -0700 (PDT) Received: from [192.168.1.11] ([70.114.134.56]) by mx.google.com with ESMTPSA id cn1sm42819000oeb.11.2014.05.11.16.53.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 May 2014 16:53:26 -0700 (PDT) Message-ID: <53700D71.1090201@landley.net> Date: Sun, 11 May 2014 18:53:21 -0500 From: Rob Landley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Building sh4 without CONFIG_EXPERT. Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I got sh4 to work under QEMU years ago as part of my aboriginal linux project, which builds the smallest Linux system capable of rebuilding itself natively from source code. (You can download and run the system images from http://landley.net/aboriginal/bin if you're curious.) One of the goals of Aboriginal is to make different architectures behave the same way, and one of the ways I do that is by having a basic kernel miniconfig file defining the config symbols common across platforms: http://landley.net/hg/aboriginal/file/1651/sources/baseconfig-linux And then append target-specific chunks, ala the LINUX_CONFIG sections from each of: http://landley.net/hg/aboriginal/file/1651/sources/targets The problem is, the sh4 target's target-specific chunk is an INSANE 45 config symbols (armv5l needs 15 symbols, powerpc needs 16, i686 needs 7, mips needs 6...) and the reason for the verbosity is that sh4 forces on CONFIG_EXPERT. As far as I can tell, the only reason sh4 is forcing on CONFIG_EXPERT is to get CONFIG_PATA_PLATFORM. The patch to make sh4 _not_ force on CONFIG_EXPERT is just: Which swaps EXPERT for HAVE_PATA_PLATFORM, so I can still provide a hard drive qemu can see as /dev/sda. The result builds, boots, and works for me in very basic smoke testing, and lets me get my sh4-specific config symbol set down to 27 symbols. (P.S. I have no idea why hitting ctrl-C kills the _emulator_ rather than passing it along to the emulated system. The other qemu targets don't do that...) Rob P.S. I'm using linux 3.14, qemu 2.0, and the sh4 cross compiler toolchain from the URL at the top of the post. I can be more explicit if you care... Acked-by: Randy Dunlap Acked-by: Geert Uytterhoeven --- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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_MAP select HAVE_MEMBLOCK