1 # hdw - linux CROSS-BUILD howto
3 with the toolchain concept introduced in version 0.3 of hdw-linux,
4 crosscompiling a minimal linux system - which will be used to continue with
5 native builds on the foreign architecture hardware - or even building complete
6 distributions for slow/embedded hardware should be possible.
8 here are some guidelines for people developing for aliens.
10 1) 'straight forward' crossbuilds
13 o hdw_arch to the alien target architecture
14 o hdw_arch_opt and the supported cpu optimization
15 o hdw_crossbuild to "1", so the scripts know about it
17 - hack ./scipts/Config file to fix/improve/support your alien architecture
19 - add conditional actions to the toolchain and early base packages
21 - for architecture specific patches:
22 o use -u option of diff
23 o create patches being applied in the package directory via p1
24 o put these patches to config directory with ending .patch.${hdw_arch}
26 - most important: submit your changes!
28 2) 'tricky' crossbuilds (WTF? - yes, i just dont know any better word ... )
30 what are tricky crossbuilds? as i am not able to explain that, i will
31 just give you 2 examples:
34 host system: sparc64 running 64bit kernel with 32bit userland
35 target system: sparc64 (including 64bit userland)
38 host system: ia32 i686
39 target system: ia32 i586
41 to get around some troubles here diffrent things were implemented:
43 o misc/crossbuild/fake_utsname/ - a kernel module to fake the
45 o hdw_real_build - a config parameter that will cause the
46 --build configure flag to the real host system compilers
48 as you see, crossbuilds are still devel. feel free to hack the scripts, ask
49 questions or even kill me for that braindead implementations.
56 misc/crossbuild/fake_utsname/*