From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] Makefile: Add a message warning size change for mpc85xx boards
Date: Wed, 30 Jul 2014 15:13:45 -0700 [thread overview]
Message-ID: <53D96E19.3010802@freescale.com> (raw)
In-Reply-To: <20140730050233.EC1F2380318@gemini.denx.de>
On 07/29/2014 10:02 PM, Wolfgang Denk wrote:
> Dear York Sun,
>
> In message <1406669019-31651-1-git-send-email-yorksun@freescale.com> you wrote:
>> Some mpc85xx boards are using 768KB size u-boot image while some
>> legacy boards still use 512KB. To bring attention to users about
>> the size change, a message is printed when compiling. SPL/PBL is
>> not covered by this change.
>
> This makes no sense to me. Where are these magic image sizes coming
> from? This is highly board specific stuff at best, probably valid for
> some Freescale boards only.
This was raised by an end user who got confused by upgrading from the older
image which was 512KB to the new image 768KB. The README file described the
change, but it may be not obvious enough to a user to notice.
Kim proposed the idea to add a compiling warning (not really a warning though)
about the size change to raise attention.
>
> I think if this is useful at all (which I actually doubt) this should
> be moved to board specific code, or if you really think it fits, then
> maybe made Freescale vendor specific.
>
> But please keep such stuff out of the global Makefile.
>
I agree it should not be put into global Makefile. I am struggling to understand
the right way to move such check to arch/powerpc/cpu/mpc85xx/Makefile. Do I need
to add a new target in arch/powerpc/cpu/mpc85xx/Makefile, like
+NEW_TARGET:
+ Do something special here
and add an entry in global Makefile, like
u-boot.bin: u-boot FORCE
$(call if_changed,objcopy)
$(call DO_STATIC_RELA,$<,$@,$(CONFIG_SYS_TEXT_BASE))
$(BOARD_SIZE_CHECK)
+ $(Q)$(MAKE) $(build)=arch/powerpc/cpu/mpc85xx NEW_TARGET
Some guidance (or examples) will be appreciated.
York
prev parent reply other threads:[~2014-07-30 22:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-29 21:23 [U-Boot] [RFC] Makefile: Add a message warning size change for mpc85xx boards York Sun
2014-07-29 21:56 ` York Sun
2014-07-30 5:02 ` Wolfgang Denk
2014-07-30 22:13 ` York Sun [this message]
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=53D96E19.3010802@freescale.com \
--to=yorksun@freescale.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