[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: Re: [microblaze-uclinux] [PATCH] microblaze: clean LDFLAGS to build kernel]



Hi Michal,

Could you add this patch to linux-2.6-microblaze ? Or should I regenerate a new patch for every branch in it ?

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.

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/





--
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

___________________________
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/



___________________________
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/