Skip to contentSkip to conversation

crosscompiling udev

DISCUSSION Jonas Meyer 4 participants 6 messages Aug 22, 2006

lore
Share & tools
lore
#0 lore raw

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&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 5 lines · Jonas Meyer

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&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Jonas Meyer
Quoted 11 lines · Jonas Meyer

Am Montag, den 21.08.2006, 19:18 -0700 schrieb Greg KH:

Quoted 10 lines · Jonas Meyer
Quoted 5 lines

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.

Quoted 8 lines

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&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Jonas Meyer

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&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to Jonas Meyer
Quoted 3 lines · Jonas Meyer

Hello
make CROSS_COMPILE=arm-uclibc-linux-
works fine.

this declares CROSS_COMPILE as a make variable

Quoted 4 lines

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&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#5 lore raw
In reply to Jonas Meyer
Quoted 3 lines · Jonas Meyer

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

Quoted 4 lines

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&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel