From patchwork Mon Jan 22 23:17:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Derald D. Woods" X-Patchwork-Id: 864489 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YlnyOkG2"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zQS5F733Kz9s0g for ; Tue, 23 Jan 2018 10:17:36 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 3AA97C21E78; Mon, 22 Jan 2018 23:17:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 49CC2C21E78; Mon, 22 Jan 2018 23:17:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5738EC21E78; Mon, 22 Jan 2018 23:17:24 +0000 (UTC) Received: from mail-io0-f195.google.com (mail-io0-f195.google.com [209.85.223.195]) by lists.denx.de (Postfix) with ESMTPS id CB0DCC21DDF for ; Mon, 22 Jan 2018 23:17:23 +0000 (UTC) Received: by mail-io0-f195.google.com with SMTP id f34so11250112ioi.13 for ; Mon, 22 Jan 2018 15:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pbKf3W1DhNxlN6fUHFRUekrO86soXxez2o4IrGRz4e0=; b=YlnyOkG2JbZhuCjpG31tQrYEYpMKdLcHWkRY9DolTdfOlI/npWhMtaD0u/yCqaz+yk krIejnjNIPyaXk1kU3kQ4RG0lGe2LT2e8NikDYIXcJiTdbNAYCqc/6ZK6QvqpTFDSY0d utXfuFl8/4dOnsIEYDYU3FgcuRUvDfD0wsf1nShfxfu3LQzWXjCoX27MKrNS9zePsT70 T59UeMUmpyu7VqOE25fc8HniIUEBBjR/mRIhTyODdBKQ/YbypGYLB3MF8Mn6QmdfJ6vM 3GWwEv2Aw4G9Pa25sjI2ZMapMtmzpTVZkp0J5DcVBzTdQevJFgjpYQzZ0/ucII+Vioow nwFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pbKf3W1DhNxlN6fUHFRUekrO86soXxez2o4IrGRz4e0=; b=awpf/df3H3mWk0TyoE4oZeEvNK1k1dZpYlJCY2H92INvq1nOG0KD6MijGs4esIMixO PVFD9w2khEEKWNDeuxwZtTCCi1cEKY3EmZMKjXulXezg7MUuiiIeLzf41zGkHLvdx5Et FqmTCr3m97i9tY6nwAoBA9Q069yNKPsiQaPYutlz8TlZ3kWFjo2BztaFtzICALVdg7kg C9HOzec1Au2WGUfhM3qShj4XWcR15vNHMMuHTTP1KP17FosBzwRksDC/UEC6qnp0gk9F 6/0OqFU2AxmDkr9ilT7DpQShup4SF1YNX42U4InHtUxuY9NhBdaok88NHjqJgspzYEU3 BGOA== X-Gm-Message-State: AKwxytcbXTVGqwW8+S1ZmswYh6eqGSVDLexhkxBl/5MuObch8iJUf0wN XEmaaLlXYl4BgUunRNYHxV97Cg== X-Google-Smtp-Source: AH8x224D/mCNV+LmGJrAFBTsTiV483kg33eLNpZU++bLKAYPAFHwyAHk/yZem3hy1N+U7tE78SMVPQ== X-Received: by 10.107.178.78 with SMTP id b75mr943421iof.202.1516663042169; Mon, 22 Jan 2018 15:17:22 -0800 (PST) Received: from ethiopia.woodsts.org (c-73-74-196-48.hsd1.il.comcast.net. [73.74.196.48]) by smtp.gmail.com with ESMTPSA id f207sm4315309ita.26.2018.01.22.15.17.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jan 2018 15:17:21 -0800 (PST) From: "Derald D. Woods" To: u-boot@lists.denx.de Date: Mon, 22 Jan 2018 17:17:10 -0600 Message-Id: <20180122231710.6912-1-woods.technical@gmail.com> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20171228072513.1068-1-woods.technical@gmail.com> References: <20171228072513.1068-1-woods.technical@gmail.com> Cc: trini@konsulko.com Subject: [U-Boot] [PATCH v2] Convert CONFIG_SYS_BOOT_GET_{CMDLINE, KBD} to Kconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This converts the following to Kconfig: CONFIG_SYS_BOOT_GET_CMDLINE CONFIG_SYS_BOOT_GET_KBD Signed-off-by: Derald D. Woods --- v2: - Drop selection for ARM --- Kconfig | 12 ++++++++++++ arch/Kconfig | 4 ++++ arch/m68k/include/asm/config.h | 2 -- arch/powerpc/include/asm/config.h | 2 -- scripts/config_whitelist.txt | 2 -- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Kconfig b/Kconfig index 9b8a807799..f713c6a9b1 100644 --- a/Kconfig +++ b/Kconfig @@ -83,6 +83,18 @@ config DISTRO_DEFAULTS Select this to enable various options and commands which are suitable for building u-boot for booting general purpose Linux distributions. +config SYS_BOOT_GET_CMDLINE + bool "Enable kernel command line setup" + help + Enables allocating and saving kernel cmdline in space between + "bootm_low" and "bootm_low" + BOOTMAPSZ. + +config SYS_BOOT_GET_KBD + bool "Enable kernel board information setup" + help + Enables allocating and saving a kernel copy of the bd_info in + space between "bootm_low" and "bootm_low" + BOOTMAPSZ. + config SYS_MALLOC_F bool "Enable malloc() pool before relocation" default y if DM diff --git a/arch/Kconfig b/arch/Kconfig index 762230cd56..5d57d6da2c 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -26,6 +26,8 @@ config ARM config M68K bool "M68000 architecture" select HAVE_PRIVATE_LIBGCC + select SYS_BOOT_GET_CMDLINE + select SYS_BOOT_GET_KBD config MICROBLAZE bool "MicroBlaze architecture" @@ -53,6 +55,8 @@ config PPC bool "PowerPC architecture" select HAVE_PRIVATE_LIBGCC select SUPPORT_OF_CONTROL + select SYS_BOOT_GET_CMDLINE + select SYS_BOOT_GET_KBD config RISCV bool "riscv architecture" diff --git a/arch/m68k/include/asm/config.h b/arch/m68k/include/asm/config.h index 9c4d3fb8fd..fd0b5513ee 100644 --- a/arch/m68k/include/asm/config.h +++ b/arch/m68k/include/asm/config.h @@ -11,7 +11,5 @@ #define CONFIG_LMB #define CONFIG_SYS_BOOT_RAMDISK_HIGH -#define CONFIG_SYS_BOOT_GET_CMDLINE -#define CONFIG_SYS_BOOT_GET_KBD #endif diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h index 6aec815c71..67e4b48a96 100644 --- a/arch/powerpc/include/asm/config.h +++ b/arch/powerpc/include/asm/config.h @@ -31,8 +31,6 @@ #define CONFIG_LMB #define CONFIG_SYS_BOOT_RAMDISK_HIGH -#define CONFIG_SYS_BOOT_GET_CMDLINE -#define CONFIG_SYS_BOOT_GET_KBD #ifndef CONFIG_MAX_MEM_MAPPED #if defined(CONFIG_E500) || \ diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index c98f262079..6e9750eb16 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -2273,8 +2273,6 @@ CONFIG_SYS_BOOTM_LEN CONFIG_SYS_BOOTPARAMS_LEN CONFIG_SYS_BOOTSZ CONFIG_SYS_BOOT_BLOCK -CONFIG_SYS_BOOT_GET_CMDLINE -CONFIG_SYS_BOOT_GET_KBD CONFIG_SYS_BOOT_RAMDISK_HIGH CONFIG_SYS_BR0_64M CONFIG_SYS_BR0_8M