All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Hogan <james.hogan@imgtec.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	Linux-MIPS <linux-mips@linux-mips.org>
Subject: Re: [PATCH] MIPS: add uImage build target
Date: Wed, 21 Aug 2013 16:44:30 +0100	[thread overview]
Message-ID: <5214E05E.7000303@imgtec.com> (raw)
In-Reply-To: <CAGVrzcZ8FVv9p00R6yDaqRMQARi64P+zVzNRsyeGpiL4UZL3Vg@mail.gmail.com>

Hi Florian,

On 21/08/13 16:08, Florian Fainelli wrote:
> 2013/8/21 James Hogan <james.hogan@imgtec.com>:
>> diff --git a/arch/mips/Makefile b/arch/mips/Makefile
>> index b2be6b8..c4f339e 100644
>> --- a/arch/mips/Makefile
>> +++ b/arch/mips/Makefile
>> @@ -284,7 +284,7 @@ vmlinux.64: vmlinux
>>  all:   $(all-y)
>>
>>  # boot
>> -vmlinux.bin vmlinux.ecoff vmlinux.srec: $(vmlinux-32) FORCE
>> +vmlinux.bin vmlinux.ecoff vmlinux.srec uImage: $(vmlinux-32) FORCE
>>         $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) arch/mips/boot/$@
>>
>>  # boot/compressed
>> @@ -327,6 +327,7 @@ define archhelp
>>         echo '  vmlinuz.ecoff        - ECOFF zboot image'
>>         echo '  vmlinuz.bin          - Raw binary zboot image'
>>         echo '  vmlinuz.srec         - SREC zboot image'
>> +       echo '  uImage               - U-Boot image (gzip)'
> 
> This is not quite accurate, since you introduce two new uImage
> targets, this should be:
> 
> +       echo '  uImage               - U-Boot image'
> +       echo '  uImage.gz               - U-Boot image (gzip)'

Only uImage is passed through to arch/mips/boot/Makefile, but yes, they
probably both should be.

> 
>>         echo
>>         echo '  These will be default as appropriate for a configured platform.'
>>  endef
>> diff --git a/arch/mips/boot/.gitignore b/arch/mips/boot/.gitignore
>> index f210b09..a73d6e2 100644
>> --- a/arch/mips/boot/.gitignore
>> +++ b/arch/mips/boot/.gitignore
>> @@ -4,3 +4,4 @@ vmlinux.*
>>  zImage
>>  zImage.tmp
>>  calc_vmlinuz_load_addr
>> +uImage
>> diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile
>> index 851261e..8169d42 100644
>> --- a/arch/mips/boot/Makefile
>> +++ b/arch/mips/boot/Makefile
>> @@ -40,3 +40,18 @@ quiet_cmd_srec = OBJCOPY $@
>>        cmd_srec = $(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $@
>>  $(obj)/vmlinux.srec: $(VMLINUX) FORCE
>>         $(call if_changed,srec)
>> +
>> +UIMAGE_LOADADDR  = $(shell $(NM) $(VMLINUX) | grep "\b_text\b"        | cut -f1 -d\ )
> 
> Is not VMLINUX_LOAD_ADDRESS suitable here?

It's only passed through to arch/mips/boot/compressed. It can always be
made to pass it to arch/mips/boot too though.

> 
>> +UIMAGE_ENTRYADDR = $(shell $(NM) $(VMLINUX) | grep '\bkernel_entry\b' | cut -f1 -d\ )
> 
> This logic already exists in arch/mips/boot/compressed/Makefile, so we
> might want to move this to arch/mips/Makefile? This could be a
> preliminary or subsequent patch, your call.

Thanks for the feedback. I'll refactor it a bit to avoid duplication.

Cheers
James

  reply	other threads:[~2013-08-21 15:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-21 14:55 [PATCH] MIPS: add uImage build target James Hogan
2013-08-21 14:55 ` James Hogan
2013-08-21 15:08 ` Florian Fainelli
2013-08-21 15:44   ` James Hogan [this message]
2013-08-21 15:59     ` Florian Fainelli

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=5214E05E.7000303@imgtec.com \
    --to=james.hogan@imgtec.com \
    --cc=f.fainelli@gmail.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.