[oss-devel] Oss cross-build for different architecture
Hannu Savolainen
hannu at opensound.com
Tue Oct 9 17:39:04 EEST 2007
KokHow.Teh at infineon.com kirjoitti:
> Hi;
> I have downloaded oss-v4.0-build1007-src-gpl and I need to know
> how, if it is possible to cross-build it for a different architecture,
> which is MIPS in my case.
Some hacks to the configure script may be needed before cross compiling
is possible. I have not done this yet because I don't have any
environment wehere I could test it.
> Os_linux.h hard-code the ix86 assembly
> instructions which make cross-compilation a nightmare. In order to
> change it, we need to know the base addresss to access the port in those
> routines.
> Any insight is appreciated.
>
You can put the INB/OUTB/etc macros (and the inline asm routines above
them) inside an #ifdef i386/#endif block. Then define these macros for
Mips. The __inb/etc routines are identical to the inb/etc routines used
in Linux. You can copy the mips specific macros from asm-mips.
What kind of audio device you use?
Best regards,
Hannu
More information about the oss-devel
mailing list