From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: armv7-a: Enable mtune when CONFIG_CPU_V7A
Date: Fri, 3 Aug 2018 05:23:21 -0500 [thread overview]
Message-ID: <20180803102321.22299-1-aford173@gmail.com> (raw)
arch/arm/Makefile has a list of options for mtune, but the
entry for CONFIG_CPU_V7A is empty. By tuning for generic-armv7-a
both the size of SPL and u-boot shrink a little. For those
with limited resources in SPL, every little bit helps.
The following size changed apply to omap3_logic
Original:
text data bss dec hex filename
541198 22692 327040 890930 d9832 u-boot
text data bss dec hex filename
50964 429 67580 118973 1d0bd spl/u-boot-spl
With -mtune=generic-armv7-a
text data bss dec hex filename
540934 22692 327056 890682 d973a u-boot
text data bss dec hex filename
50972 429 67580 118981 1d0c5 spl/u-boot-spl
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index cac58bdc4d..b9f0903f9b 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -40,7 +40,7 @@ tune-$(CONFIG_CPU_SA1100) =-mtune=strongarm1100
tune-$(CONFIG_CPU_PXA) =-mcpu=xscale
tune-$(CONFIG_CPU_ARM1136) =
tune-$(CONFIG_CPU_ARM1176) =
-tune-$(CONFIG_CPU_V7A) =
+tune-$(CONFIG_CPU_V7A) =-mtune=generic-armv7-a
tune-$(CONFIG_CPU_V7R) =
tune-$(CONFIG_ARM64) =
--
2.17.1
next reply other threads:[~2018-08-03 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 10:23 Adam Ford [this message]
2018-08-03 13:56 ` [U-Boot] [PATCH] arm: armv7-a: Enable mtune when CONFIG_CPU_V7A Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180803102321.22299-1-aford173@gmail.com \
--to=aford173@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox