From patchwork Thu Oct 19 08:26:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 116345 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp3170215edb; Thu, 19 Oct 2017 01:30:16 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QbZWx9Y/BIBh7rD7Dcal8U97QpQcM6kpwe3a9CJAjL3bg5qwxxVg7Z8icUOaVM0cPtcpUs X-Received: by 10.80.141.15 with SMTP id s15mr1468184eds.241.1508401698493; Thu, 19 Oct 2017 01:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508401698; cv=none; d=google.com; s=arc-20160816; b=YAQGSyVjx9ltWcAKOdMhh/kCuCNHrXDljaug3+ftoyVh3s9LxIzRdTI2O+PSjkEIcp 8K0NbQQinMAdXH5KBiBDSXhEwYpnEQROSHiQEDZusxFTnITfqWHdoAZ8yGEwr456y2l4 1rDH71E7RAQIiDlsbL7J30qZ8wJn2tAQJMcyRW6WgHB9e3HD9DmzFzntoTNNXJmhPYxt zKpKVm8C+oi09oVuroWj0bvCAkl9n444Ta17VICLPr3eumxCb/JdvmRKeE2WEXyEejfc eBQ/MDX6LiP7bwA88suIcdwwO0Lgmld401ZuHl8iMQc2yrEeiJEJ6zfUsgtCEjVQIjwb g8zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=Mta1iWAzAw7oVdFa14POzzhoxRi8eEDB1O1FyiPcbh4=; b=0fQn8k9KlE1jcn+33yUv6/RhlC42udObFcbb9euWDLM1F94UBVtlOQxebAp9yUxE5D 3dEjAI0m0ZC2o0tcUC6VnRlhFC0c0Qno9V5s7Cj6H/Jh7hd0BQ10tFo5AsVFnDbd5Gjp AsML05Ua1djaGRKG/3ZIVYHDnshAlpvbf8lSUN5x83cZYmjvnhnnziagb4BHydUOTjh3 A4QwOgzFA6wrca2pfgfArQEuiUdWIz03VEuFlAlD1tBaiCtbnQZlUqrmZb5xTOdzwW7i qAv1wGCK9+MNjx0jSqTObm8Hi4uVKk2zob/sFX2g2ukufcjsX21fIkopOzhhcxK/WH6v +PRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id r20si771214edl.297.2017.10.19.01.28.18; Thu, 19 Oct 2017 01:28:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 03718C21F3D; Thu, 19 Oct 2017 08:27:23 +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=none 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 3FE9BC21F3D; Thu, 19 Oct 2017 08:27:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B476DC21F25; Thu, 19 Oct 2017 08:27:09 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id DD1A7C21E7C for ; Thu, 19 Oct 2017 08:27:04 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 66A3120871; Thu, 19 Oct 2017 10:27:03 +0200 (CEST) Received: from localhost (unknown [185.94.189.190]) by mail.free-electrons.com (Postfix) with ESMTPSA id F0F0C20788; Thu, 19 Oct 2017 10:26:52 +0200 (CEST) From: Maxime Ripard To: Tom Rini Date: Thu, 19 Oct 2017 10:26:47 +0200 Message-Id: <20171019082649.27819-2-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171019082649.27819-1-maxime.ripard@free-electrons.com> References: <20171019082649.27819-1-maxime.ripard@free-electrons.com> Cc: u-boot@lists.denx.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH 1/3] ARM: sunxi: Disable USB host options by 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 USB keyboard and USB storage support are non-essential from an architecture-wide sense. Remove the selection so that we can trim down the size of our binaries a bit. Signed-off-by: Maxime Ripard --- arch/arm/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 64e0ee43f112..0eaf54bd8ddb 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -688,7 +688,6 @@ config ARCH_SUNXI select DM select DM_ETH select DM_GPIO - select DM_KEYBOARD select DM_SERIAL select DM_USB if DISTRO_DEFAULTS select OF_BOARD_SETUP @@ -699,8 +698,6 @@ config ARCH_SUNXI select SYS_NS16550 select SPL_SYS_THUMB_BUILD if !ARM64 select USB if DISTRO_DEFAULTS - select USB_STORAGE if DISTRO_DEFAULTS - select USB_KEYBOARD if DISTRO_DEFAULTS select USE_TINY_PRINTF imply CMD_GPT imply FAT_WRITE From patchwork Thu Oct 19 08:26:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 116343 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp226498qgn; Thu, 19 Oct 2017 01:28:26 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RNsgGoJytCmMkK2Kuez8HUgQcxsdvxAsPT5V839FoLkOOwCqq52f/2NytorVBArSbD82rK X-Received: by 10.80.146.98 with SMTP id j31mr1460706eda.298.1508401706743; Thu, 19 Oct 2017 01:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508401706; cv=none; d=google.com; s=arc-20160816; b=FMmH4QLkHfAainvS4KVaU3l5Z4YIenL7ZQ/LVbliM7XADETwYN65PQ4V3zTF3UxEyT GxEQb4MqqFzEYbY3N2ul21FKKLf5oa9rwUQ7L1VLkVe+FVYNKIT6ZkOXNEKiJjX6Hsry snZGIg6laaKMeozGfJF9tNXuO2yEw7hsuut8BFC5iqsXmo46b8Ij/3D6a9Ju0qqAMT3k wV1b8ZE5W1WCHC+0asoNBbh6ssWWzgvD0dn/yaaIXlIxDyAN/o5omrC6UIWqtARYGkVT VOPB2Nyc6J540RXnoBJHuBkqxIoDOdhVuPEuVu9T8dDdjIWoMQ8z5CNG0gzlth2+m51g L7UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=gzprRxX+8KLKdRwpGIdyi2tb0FF7BV5gneG8edVN1Ek=; b=jDBgEyA7qCaX3RqqCDQOnsFpRkR65sri0EUnuZhO2R1m+0h0iX/NFYyHSaoCwkkNRf +1+dNEu7m5eOiNAX0Okm1IxnB2Hbqs+F4CronXUCgRb5HPCDqxuIxTBjtAwguwHw6Fix LtuLkCd+AjOqOp4ppwDtef1bS6VssGi1cyGcGG72yLb0Z0x+953Ltt4eJS+jMgJG4ZM/ oDP9aja3Wh4TRTXsbXrT3rJhodFJeZdTKqf5TSQsZPqsuvpTjJJSQuCYTGyXXmdXwkN2 7/Yyr+obUiMQFfXSFa8IAgbDBFAypUXyLtZlciK5VzdYDmzruH1abZc94+4m5WujLZoU KAFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id o1si869834eda.317.2017.10.19.01.28.24; Thu, 19 Oct 2017 01:28:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 5320BC21F46; Thu, 19 Oct 2017 08:27:38 +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=none 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 E6025C21F27; Thu, 19 Oct 2017 08:27:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E4E24C21F22; Thu, 19 Oct 2017 08:27:10 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id A4DBCC21F1A for ; Thu, 19 Oct 2017 08:27:06 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 2EBBC20788; Thu, 19 Oct 2017 10:27:05 +0200 (CEST) Received: from localhost (unknown [185.94.189.190]) by mail.free-electrons.com (Postfix) with ESMTPSA id B690D2082B; Thu, 19 Oct 2017 10:26:54 +0200 (CEST) From: Maxime Ripard To: Tom Rini Date: Thu, 19 Oct 2017 10:26:48 +0200 Message-Id: <20171019082649.27819-3-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171019082649.27819-1-maxime.ripard@free-electrons.com> References: <20171019082649.27819-1-maxime.ripard@free-electrons.com> Cc: u-boot@lists.denx.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH 2/3] ARM: sunxi: Disable FAT write by 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" Writing to FAT filesystems isn't a very widely used feature in U-Boot where most of the interaction would be reading from such a filesystem. Remove the imply to gain a bit of size in our binaries. Signed-off-by: Maxime Ripard --- arch/arm/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0eaf54bd8ddb..2f67ccb9df30 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -700,7 +700,6 @@ config ARCH_SUNXI select USB if DISTRO_DEFAULTS select USE_TINY_PRINTF imply CMD_GPT - imply FAT_WRITE imply PRE_CONSOLE_BUFFER imply SPL_GPIO_SUPPORT imply SPL_LIBCOMMON_SUPPORT From patchwork Thu Oct 19 08:26:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 116344 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp226611qgn; Thu, 19 Oct 2017 01:28:35 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R3c6P3Oz08fBcBfpg0DU9B5hembrwvv6rZBkl6ZeLTy1rNuFsEtBbRKW0lhD3EupgXyy4y X-Received: by 10.80.164.196 with SMTP id x4mr1428180edb.191.1508401715778; Thu, 19 Oct 2017 01:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508401715; cv=none; d=google.com; s=arc-20160816; b=Bf96CSALEffEB7a1Ezr1hyfvOYPgcJ2ZMpS+31/3djbJ/JQ7JKiZHBvdtkEIu+RESN lASHsPuBDmjTE3VRUVrPaUddonMiit4rGogejf4xJzZ7LBbhzjX03QU+r6/myTKfY3g4 fJO309/O02M4EN1MJ7bjMuuOz8ijv8exP6Y8Aawq+yh0WoBSMbOyjpGjlDxBNS5ziRDN 1ymzsMFUX87iJWKw0k5Hr4xJVnDW0pQp2OKD8HQbKhRmjAB4s7fsg4U0k/vaBTivzLt/ eYPR+wzlfnOrAjVNyCvvI+RBHe0BEgK7jpy3DdKTXvEOnHMvBQ7/m7tr0onDzcQE/CZJ P30w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=jDX30K7ZG7o6d6eWt+CtIxDIs+rTkevlHqH6iaZ3ySs=; b=fDvQ+b4o324O9XiRreEpzzNYf/ZFrwIr0Qmo02aSdLdsexy+fY4Pe/dIF+O18YwWDS bOcgilyt8UgYI960V6KuOolW8Gmbsaaqz1YfzHr5aGMTLxv3zW2TEXgsTrUU+XbUckmP ylDvsuAlA7NlTLUyidDWGMr7plSvjaeD9YfcHFs9Rq28tOe8DL+xIOkfMddtPc2ybCTO Pe4C4ev7+wmsk3cy5AxEdzXTWBFemaso8MwBNDBa+rQixxMwn0/ZqoFcD9nXGuNMIaap QY0qF91UdDXwrp2YLqa4TkoYXumd8u5EhWwpXEx2b5xB7T6JDBDNTrvKrSogOHDI4fAy Yusg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id l9si4904718edf.545.2017.10.19.01.28.35; Thu, 19 Oct 2017 01:28:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 5F75FC21F44; Thu, 19 Oct 2017 08:27:55 +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=none 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 B22BDC21D90; Thu, 19 Oct 2017 08:27:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 01D75C21F44; Thu, 19 Oct 2017 08:27:11 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 759AEC21F34 for ; Thu, 19 Oct 2017 08:27:08 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id ECA3120759; Thu, 19 Oct 2017 10:27:06 +0200 (CEST) Received: from localhost (unknown [185.94.189.190]) by mail.free-electrons.com (Postfix) with ESMTPSA id 7EE3E2084E; Thu, 19 Oct 2017 10:26:56 +0200 (CEST) From: Maxime Ripard To: Tom Rini Date: Thu, 19 Oct 2017 10:26:49 +0200 Message-Id: <20171019082649.27819-4-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171019082649.27819-1-maxime.ripard@free-electrons.com> References: <20171019082649.27819-1-maxime.ripard@free-electrons.com> Cc: u-boot@lists.denx.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi 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 EFI loader support takes around 31kB on an ARMv7 board, which makes us trip across the size limit we've had on the U-Boot binary. Since it's not an essential feature, disable it by default for ARCH_SUNXI so that we get back some extra room for user customisations. Signed-off-by: Maxime Ripard --- lib/efi_loader/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index d2b6327119b4..a80a914b2fe8 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -1,7 +1,7 @@ config EFI_LOADER bool "Support running EFI Applications in U-Boot" depends on (ARM || X86) && OF_LIBFDT - default y + default y if !ARCH_SUNXI help Select this option if you want to run EFI applications (like grub2) on top of U-Boot. If this option is enabled, U-Boot will expose EFI