linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* crosscompiling udev
@ 2006-08-22  0:47 Jonas Meyer
  2006-08-22  2:18 ` Greg KH
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jonas Meyer @ 2006-08-22  0:47 UTC (permalink / raw)
  To: linux-hotplug

Hi.
I just tried to crosscompile udev and noticed that in the Makefile the
CROSS_COMPILE variable is emptied. when removing that line it works. Is
there a reason for that behaviour or could that be changed in the next
version?
please reply to my email address as i'm not subscribed to the
mailinglist.
Thanks, Jonas


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: crosscompiling udev
  2006-08-22  0:47 crosscompiling udev Jonas Meyer
@ 2006-08-22  2:18 ` Greg KH
  2006-08-22  3:54 ` Greg KH
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2006-08-22  2:18 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Aug 22, 2006 at 02:47:37AM +0200, Jonas Meyer wrote:
> Hi.
> I just tried to crosscompile udev and noticed that in the Makefile the
> CROSS_COMPILE variable is emptied. when removing that line it works. Is
> there a reason for that behaviour or could that be changed in the next
> version?

What exactly did you use on the command line to build udev in this
manner?  You should be able to specify the CROSS_COMPILE variable on the
build line, and have it work properly.

thanks,

greg k-h

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: crosscompiling udev
  2006-08-22  0:47 crosscompiling udev Jonas Meyer
  2006-08-22  2:18 ` Greg KH
@ 2006-08-22  3:54 ` Greg KH
  2006-08-22 15:51 ` Jonas Meyer
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2006-08-22  3:54 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Aug 22, 2006 at 05:16:54AM +0200, Jonas Meyer wrote:
> Am Montag, den 21.08.2006, 19:18 -0700 schrieb Greg KH:
> > On Tue, Aug 22, 2006 at 02:47:37AM +0200, Jonas Meyer wrote:
> > > Hi.
> > > I just tried to crosscompile udev and noticed that in the Makefile the
> > > CROSS_COMPILE variable is emptied. when removing that line it works. Is
> > > there a reason for that behaviour or could that be changed in the next
> > > version?
> > 
> > What exactly did you use on the command line to build udev in this
> > manner?  You should be able to specify the CROSS_COMPILE variable on the
> > build line, and have it work properly.
> I used this: CROSS_COMPILE=arm-uclibc-linux- make
> and it builds just fine. but when i use file to look at the result:
>  file udevd
> udevd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
> GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux
> 2.4.1, not stripped
> 
> when I remove the CROSS_COMPILE> line in the Makefile I get arm binaries,instead.

Try:
	make CROSS_COMPILE=arm-uclibc-linux-
instead.

And please don't take email threads off of the mailing list, it's rude
to the rest of the members, and the archives.

thanks,

greg k-h

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: crosscompiling udev
  2006-08-22  0:47 crosscompiling udev Jonas Meyer
  2006-08-22  2:18 ` Greg KH
  2006-08-22  3:54 ` Greg KH
@ 2006-08-22 15:51 ` Jonas Meyer
  2006-08-22 16:10 ` Vassilis Virvilis
  2006-08-22 16:56 ` Kay Sievers
  4 siblings, 0 replies; 6+ messages in thread
From: Jonas Meyer @ 2006-08-22 15:51 UTC (permalink / raw)
  To: linux-hotplug

Hello
make CROSS_COMPILE=arm-uclibc-linux-
works fine. 
Thanks for pointing this out to me - but I don't understand why. Please
give me an idea why 
CROSS_COMPILE=arm-uclibc-linux- make
doesn't work.
Thanks, Jonas


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: crosscompiling udev
  2006-08-22  0:47 crosscompiling udev Jonas Meyer
                   ` (2 preceding siblings ...)
  2006-08-22 15:51 ` Jonas Meyer
@ 2006-08-22 16:10 ` Vassilis Virvilis
  2006-08-22 16:56 ` Kay Sievers
  4 siblings, 0 replies; 6+ messages in thread
From: Vassilis Virvilis @ 2006-08-22 16:10 UTC (permalink / raw)
  To: linux-hotplug

Jonas Meyer wrote:
> Hello
> make CROSS_COMPILE=arm-uclibc-linux-
> works fine. 

this declares CROSS_COMPILE as a make variable

> Thanks for pointing this out to me - but I don't understand why. Please
> give me an idea why 
> CROSS_COMPILE=arm-uclibc-linux- make
> doesn't work.

Now this is a CROSS_COMPILE=arm-uclibc-linux- shell variable. Make may
read it or not. IIRC there is an option that forces make to import the
hole environment.

        .bill

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: crosscompiling udev
  2006-08-22  0:47 crosscompiling udev Jonas Meyer
                   ` (3 preceding siblings ...)
  2006-08-22 16:10 ` Vassilis Virvilis
@ 2006-08-22 16:56 ` Kay Sievers
  4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2006-08-22 16:56 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Aug 22, 2006 at 05:51:59PM +0200, Jonas Meyer wrote:
> Hello
> make CROSS_COMPILE=arm-uclibc-linux-
> works fine. 

Arguments to make that are variables, overwrite the ones
from the Makefile:
  http://www.gnu.org/software/make/manual/html_node/Overriding.html#Overriding

> Thanks for pointing this out to me - but I don't understand why. Please
> give me an idea why 
> CROSS_COMPILE=arm-uclibc-linux- make
> doesn't work.

The environment variable, is imported:
  http://www.gnu.org/software/make/manual/html_node/Environment.html#Environment
but cleared by the Makefile for some reason, I don't know. We
can probably remove that empty assignment.

Kay

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-22 16:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22  0:47 crosscompiling udev Jonas Meyer
2006-08-22  2:18 ` Greg KH
2006-08-22  3:54 ` Greg KH
2006-08-22 15:51 ` Jonas Meyer
2006-08-22 16:10 ` Vassilis Virvilis
2006-08-22 16:56 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).