Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753453AbbKZUAa (ORCPT ); Thu, 26 Nov 2015 15:00:30 -0500 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:4066 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbbKZUAL (ORCPT ); Thu, 26 Nov 2015 15:00:11 -0500 X-IronPort-AV: E=Sophos;i="5.20,347,1444719600"; d="scan'208";a="81697760" From: Scott Branden To: "Yann E. MORIN" CC: , , , Scott Branden 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 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2192 Lines: 66 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 -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/