ShabbyX / RTAI

(NO LONGER MAINTAINED) Clone of RTAI from https://www.rtai.org
28 stars 17 forks source link

re-add CROSS_COMPILE support #6

Closed NTULINUX closed 10 years ago

NTULINUX commented 11 years ago

Hello. The reason I removed CROSS_COMPILE support was because of the issues it was causing after re-doing the entire autotools build system.

How do we make it so when CROSS_COMPILE is specified on the "make" command, it will apply those variables on build, recursively throughout the entire tree?

For example,

$ CROSS_COMPILE=arm-unknown-linux-gnueabi- make

I also want to implement this into Kconfig (just like the linux kernel does) but that's the really easy part.

ShabbyX commented 11 years ago

I think best way is to just add it to Kconfig. Nevertheless, overriding it from command line shouldn't be difficult. I'm a bit busy these days, but I also have to work on the compilation messages (like CC path/to/file) which is so far done only for the build of kconfig. In the meantime, you're welcome to try and reintroduce CROSS_COMPILE.

By the way, I can't for the life of me figure out why kconfig build rebuilds lxdialog objects every time. If you could figure that out, let me know.

ShabbyX commented 11 years ago

As a side note to the comment above, I fixed the rebuilding of lxdialog objects on every make menuconfig.

ShabbyX commented 10 years ago

Having reapplied the commits without the whitespace fixes, the cross compile was left intact.