From patchwork Sat Jun 8 16:46:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1112501 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; dmarc=none (p=none dis=none) header.from=konsulko.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45LlfP2hmYz9s4Y for ; Sun, 9 Jun 2019 02:46:35 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 0C7D4C21F41; Sat, 8 Jun 2019 16:46:28 +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=RCVD_IN_MSPIKE_H2 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 EB974C21EC9; Sat, 8 Jun 2019 16:46:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D8C90C21EC2; Sat, 8 Jun 2019 16:46:24 +0000 (UTC) Received: from mail-yb1-f193.google.com (mail-yb1-f193.google.com [209.85.219.193]) by lists.denx.de (Postfix) with ESMTPS id 4BE1EC21E9F for ; Sat, 8 Jun 2019 16:46:24 +0000 (UTC) Received: by mail-yb1-f193.google.com with SMTP id n145so2013358ybg.10 for ; Sat, 08 Jun 2019 09:46:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=0vBYXnCI936g5YNDlkUVJY+WztNmpw/pxeajR/gNNb0=; b=BGN9ivTyIPSwz0703vYpvaDHQBxFp67RO+9xqA6x4Jq7X/bpIReCCF5e0b7eCsutoj 6ZUBUX3lPCqEEXibg4s4mBHl2QQvwZ8mRKtBQHikLkDDXHk5gRNMf3htNrBzmprhJ7h6 xQM+h6XhhrobefiCEud8xrt3oe4GK9yEXbTisDpxDKHrr2c8+UVIYJelt4JkrWmWEVdf 6wrPciyLvfr9CHfuX4kVamVvyufL9snnl3frLv8yp9pUG7kqcR0HJlIb3Yhyjedo0lOC K2D70J0p1Xms50EP63fzMyBXhmQxhNz2i51hysI86g5o0YNlCSgPRnMMXZlsKvDtW7Xt soHg== X-Gm-Message-State: APjAAAU03pR71ySDgW1RTbzuYLXfcE1sZMQZCm2iuDsRMzKg54to0KYN 8Lq/tBaB29jskkcI9Oka7WQgSUKdWw== X-Google-Smtp-Source: APXvYqwM0C7sk3F3zetn1Kqm/gDcHbWQz9D+478L23q0kXa+msQZpXmWeQGK8L8JGZHq/8Qu6mXWOA== X-Received: by 2002:a25:5cc:: with SMTP id 195mr29985916ybf.69.1560012382647; Sat, 08 Jun 2019 09:46:22 -0700 (PDT) Received: from bill-the-cat.local (cpe-2606-A000-1401-82DE-9D09-BEA7-2017-66E1.dyn6.twc.com. [2606:a000:1401:82de:9d09:bea7:2017:66e1]) by smtp.gmail.com with ESMTPSA id k143sm315173ywa.75.2019.06.08.09.46.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 08 Jun 2019 09:46:21 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Sat, 8 Jun 2019 12:46:18 -0400 Message-Id: <1560012378-15053-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] configs: Make USE_TINY_PRINTF depend on SPL||TPL and be default 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" The USE_TINY_PRINTF symbol only changes things within SPL and TPL builds, so make it depend on that support. Next, make it default as within these cases we should rarely have need of more advanced print formats outside of the debug context. To do this, in a few cases we need to correct our Kconfig dependencies as we had cases of non-SPL targets select'ing this symbol. Finally, in the case of a few boards we really do need the full printf functionality. Signed-off-by: Tom Rini --- arch/arm/mach-omap2/Kconfig | 2 +- arch/arm/mach-rmobile/Kconfig.32 | 1 - configs/ls1043ardb_nand_SECURE_BOOT_defconfig | 1 + configs/ls1043ardb_nand_defconfig | 1 + configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig | 1 + configs/ls1043ardb_sdcard_defconfig | 1 + configs/sandbox_spl_defconfig | 1 + lib/Kconfig | 2 ++ 8 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index d29f1ca0b58b..2cca417e103d 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -11,7 +11,7 @@ config OMAP34XX select ARM_ERRATA_454179 select ARM_ERRATA_621766 select ARM_ERRATA_725233 - select USE_TINY_PRINTF + select USE_TINY_PRINTF if SPL imply NAND_OMAP_GPMC imply SPL_FS_EXT4 imply SPL_FS_FAT diff --git a/arch/arm/mach-rmobile/Kconfig.32 b/arch/arm/mach-rmobile/Kconfig.32 index 67f669a6fc62..1441c8069207 100644 --- a/arch/arm/mach-rmobile/Kconfig.32 +++ b/arch/arm/mach-rmobile/Kconfig.32 @@ -57,7 +57,6 @@ config TARGET_BLANCHE bool "Blanche board" select DM select DM_SERIAL - select USE_TINY_PRINTF imply CMD_DM config TARGET_GOSE diff --git a/configs/ls1043ardb_nand_SECURE_BOOT_defconfig b/configs/ls1043ardb_nand_SECURE_BOOT_defconfig index 0a8a3659a070..60c2dbc3ca06 100644 --- a/configs/ls1043ardb_nand_SECURE_BOOT_defconfig +++ b/configs/ls1043ardb_nand_SECURE_BOOT_defconfig @@ -67,6 +67,7 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +# CONFIG_USE_TINY_PRINTF is not set CONFIG_RSA=y CONFIG_SPL_RSA=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y diff --git a/configs/ls1043ardb_nand_defconfig b/configs/ls1043ardb_nand_defconfig index 6daa82ff40bd..2b0decb87f02 100644 --- a/configs/ls1043ardb_nand_defconfig +++ b/configs/ls1043ardb_nand_defconfig @@ -67,4 +67,5 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +# CONFIG_USE_TINY_PRINTF is not set CONFIG_EFI_LOADER_BOUNCE_BUFFER=y diff --git a/configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig b/configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig index 4d9138f4de6b..15a0e42558d3 100644 --- a/configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig +++ b/configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig @@ -65,6 +65,7 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +# CONFIG_USE_TINY_PRINTF is not set CONFIG_RSA=y CONFIG_SPL_RSA=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y diff --git a/configs/ls1043ardb_sdcard_defconfig b/configs/ls1043ardb_sdcard_defconfig index 9e71d0306387..81a045f470fd 100644 --- a/configs/ls1043ardb_sdcard_defconfig +++ b/configs/ls1043ardb_sdcard_defconfig @@ -65,4 +65,5 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +# CONFIG_USE_TINY_PRINTF is not set CONFIG_EFI_LOADER_BOUNCE_BUFFER=y diff --git a/configs/sandbox_spl_defconfig b/configs/sandbox_spl_defconfig index bebd78d55be5..c09852b222da 100644 --- a/configs/sandbox_spl_defconfig +++ b/configs/sandbox_spl_defconfig @@ -191,6 +191,7 @@ CONFIG_OSD=y CONFIG_SANDBOX_OSD=y CONFIG_FS_CBFS=y CONFIG_FS_CRAMFS=y +# CONFIG_USE_TINY_PRINTF is not set CONFIG_CMD_DHRYSTONE=y CONFIG_TPM=y CONFIG_LZ4=y diff --git a/lib/Kconfig b/lib/Kconfig index 416e63c1c736..50dbc34fe4b8 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -97,6 +97,8 @@ config SYS_HZ config USE_TINY_PRINTF bool "Enable tiny printf() version" + depends on SPL || TPL + default y help This option enables a tiny, stripped down printf version. This should only be used in space limited environments,