[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: Re: [microblaze-uclinux] [PATCH] microblaze: clean LDFLAGS to build kernel]
Thomas Chou wrote:
> Hi Michal,
>
> Could you add this patch to linux-2.6-microblaze ?
BTW: Your patch is for petalinux kernel not any mainline version.
Or should I
> regenerate a new patch for every branch in it ?
No definitely not. The best solution is send patch base on linus tree (linus-head branch)
or for-linus(for merge window)/fixes-for-linus(for changes between rc) branch.
I hope I will be able to merge master/nommu/mmu branch together soon.
>
> Regards,
> Thomas
>
> -------- Original Message --------
> Subject: Re: [microblaze-uclinux] [PATCH] microblaze: clean LDFLAGS to
> build kernel
> Date: Mon, 18 May 2009 10:02:18 +1000
> From: John Williams <john.williams@xxxxxxxxxxxxx>
> Reply-To: microblaze-uclinux@xxxxxxxxxxxxxx
> To: microblaze-uclinux@xxxxxxxxxxxxxx
> CC: Thomas Chou <thomas@xxxxxxxxxxxxx>
>
> applied to svn, thanks
>
>
> On Fri, May 15, 2009 at 4:24 PM, Thomas Chou <thomas@xxxxxxxxxxxxx> wrote:
>> Extra LDFLAGS from user space building may cause kernel failed
>> to compile. The patch fixes the error to build initramfs kernel
>> on nommu.
I don't have this LDflags in Makefile and I don't have any problem
to build initramfs kernel on nommu.
What is your fault?
Michal
>>
>> Signed-off-by: Thomas Chou <thomas@xxxxxxxxxxxxx>
>> ---
>> .../linux-2.6.x-petalogix/arch/microblaze/Makefile | 3 +++
>> .../vendors/PetaLogix/common/common.mak | 2 +-
>> 2 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/software/linux-2.6.x-petalogix/arch/microblaze/Makefile
>> b/software/linux-2.6.x-petalogix/arch/microblaze/Makefile
>> index 8b2fa3b..f8db479 100644
>> --- a/software/linux-2.6.x-petalogix/arch/microblaze/Makefile
>> +++ b/software/linux-2.6.x-petalogix/arch/microblaze/Makefile
>> @@ -6,6 +6,9 @@ UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\"
>> CROSS_COMPILE = microblaze-uclinux-
>> endif
>>
>> +LDFLAGS :=
>> +LDFLAGS_vmlinux :=
>> +
>> # What CPU vesion are we building for, and crack it open
>> # as major.minor.rev
>> CPU_VER=$(subst ",,$(CONFIG_XILINX_MICROBLAZE0_HW_VER) )
>> diff --git
>> a/software/petalinux-dist/vendors/PetaLogix/common/common.mak
>> b/software/petalinux-dist/vendors/PetaLogix/common/common.mak
>> index 38a26e6..f4eac8a 100644
>> --- a/software/petalinux-dist/vendors/PetaLogix/common/common.mak
>> +++ b/software/petalinux-dist/vendors/PetaLogix/common/common.mak
>> @@ -386,7 +386,7 @@ $(INITRAMFSIMG):
>> petalinux-gen-initrd
>>
>> # relink the kernel to build in the image
>> - make -C $(ROOTDIR)/$(LINUXDIR) linux.bin
>> + $(MAKEARCH_KERNEL) -C $(ROOTDIR)/$(LINUXDIR) linux.bin
>>
>> # Copy the initramfs image into images dir
>> cp $(ROOTDIR)/$(LINUXDIR)/arch/microblaze/boot/linux.bin
>> $(LINUXBIN)
>> --
>> 1.6.2.2
>>
>> ___________________________
>> microblaze-uclinux mailing list
>> microblaze-uclinux@xxxxxxxxxxxxxx
>> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>> Mailing List Archive :
>> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>>
>>
>
>
>
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/