From patchwork Thu Nov 26 19:59:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Branden X-Patchwork-Id: 7708851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6A90B9F401 for ; Thu, 26 Nov 2015 20:03:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 973C72065E for ; Thu, 26 Nov 2015 20:03:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD1A22065B for ; Thu, 26 Nov 2015 20:03:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a22io-0005vZ-3S; Thu, 26 Nov 2015 20:00:50 +0000 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a22iV-0005Oj-Ki for linux-arm-kernel@lists.infradead.org; Thu, 26 Nov 2015 20:00:32 +0000 X-IronPort-AV: E=Sophos;i="5.20,347,1444719600"; d="scan'208";a="81697760" Received: from irvexchcas07.broadcom.com (HELO IRVEXCHCAS07.corp.ad.broadcom.com) ([10.9.208.55]) by mail-gw2-out.broadcom.com with ESMTP; 26 Nov 2015 12:34:09 -0800 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.3.235.1; Thu, 26 Nov 2015 12:00:11 -0800 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.235.1; Thu, 26 Nov 2015 12:00:11 -0800 Received: from mail.broadcom.com (unknown [10.136.13.65]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 42F9640FEF; Thu, 26 Nov 2015 11:56:49 -0800 (PST) From: Scott Branden To: "Yann E. MORIN" Subject: [PATCH 1/1] kconfig: add CPU endian selection beconfig and leconfig Date: Thu, 26 Nov 2015 11:59:55 -0800 Message-ID: <1448567995-8784-2-git-send-email-sbranden@broadcom.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1448567995-8784-1-git-send-email-sbranden@broadcom.com> References: <1448567995-8784-1-git-send-email-sbranden@broadcom.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151126_120031_779091_887C8B62 X-CRM114-Status: GOOD ( 12.53 ) X-Spam-Score: -5.2 (-----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Add support for switching defconfig between big and little endian CPU. Various CPU types have ability to select big and little endian CPU in the kernel configuration. "make beconfig" will set CONFIG_CPU_BIG_ENDIAN "make leconfig" will unset CONFIG_CPU_BIG_ENDIAN Signed-off-by: Scott Branden --- kernel/configs/be.config | 1 + kernel/configs/le.config | 1 + scripts/kconfig/Makefile | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 kernel/configs/be.config create mode 100644 kernel/configs/le.config diff --git a/kernel/configs/be.config b/kernel/configs/be.config new file mode 100644 index 0000000..c5cdc99 --- /dev/null +++ b/kernel/configs/be.config @@ -0,0 +1 @@ +CONFIG_CPU_BIG_ENDIAN=y diff --git a/kernel/configs/le.config b/kernel/configs/le.config new file mode 100644 index 0000000..be479cf --- /dev/null +++ b/kernel/configs/le.config @@ -0,0 +1 @@ +# CONFIG_CPU_BIG_ENDIAN is not set diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index d79cba4..2e8007e 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -126,6 +126,14 @@ PHONY += tinyconfig tinyconfig: $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config +PHONY += beconfig +beconfig: be.config + @: + +PHONY += leconfig +leconfig: le.config + @: + # Help text used by make help help: @echo ' config - Update current config utilising a line-oriented program' @@ -151,6 +159,8 @@ help: @echo ' kvmconfig - Enable additional options for kvm guest kernel support' @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support' @echo ' tinyconfig - Configure the tiniest possible kernel' + @echo ' beconfig - Update current config to use big endian CPU' + @echo ' leconfig - Update current config to use little endian CPU' # lxdialog stuff check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh