Re: [PATCH v3 2/4] Add support for LZO-compressed kernels for ARM

Russell King
2009-11-13T15:23:53Z

On Fri, Nov 13, 2009 at 03:54:00PM +0100, Albin Tonnerre wrote:
> On Fri, 13 Nov 2009 14:50 +0000, Martin Michlmayr wrote :
> > * Sebastian Andrzej Siewior <sebastian@breakpoint.cc> [2009-11-13 15:29]:
> > > > # For __aeabi_uidivmod
> > > >-lib1funcs = $(srctree)/arch/$(SRCARCH)/lib/lib1funcs.o
> > > >+lib1funcs = arch/$(SRCARCH)/lib/lib1funcs.o
> > >
> > > +lib1funcs = $(obj)/arch/$(SRCARCH)/lib/lib1funcs.o
> > >
> > > This is untested but it should refer to obj because you break out of
> > > tree builds (O=) if you don't :)
> >
> > With this I get:
> > make[4]: *** No rule to make target `arch/arm/boot/compressed/arch/arm/lib/lib1funcs.o', needed by `arch/arm/boot/compressed/vmlinux'. Stop.
>
> Sam: what's the correct way to solve this issue?

We already have something similar - with the font support. Just do this:

lib1funcs = $(obj)/lib1funcs.o

$(obj)/lib1funcs.S: $(srctree)/arch/arm/lib/lib1funcs.S FORCE
$(call cmd,shipped)

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/