[klibc] Mips cross-compiling whos

Ben Hutchings ben at decadent.org.uk
Tue Aug 2 13:28:08 PDT 2022

On Tue, 2022-08-02 at 21:43 +0200, Olliver Schinagl wrote:
> > If you have a working cross-compiler then it must have a copy of the
> > kernel headers for the target architecture installed somewhere, and you
> > need to tell klibc where that is or link to it.  I don't know how
> > Alpine packages cross-tools, but this is what we do in Debian:
> > https://salsa.debian.org/kernel-team/klibc/-/blob/master/debian/rules#L58
> In alpine, you run/install everything 'nativily' usually. E.g. the 
> linux-headers package gets created once per arch, on supported arches. 
> There is no mips32 support on alpine; so I can't "just install 
> linux-headers" from mips; which means I'll figure out (what debian does) 
> to get the appropiate headers.

You will need the kernel sources available.  In the kernel source
directory, run:

make headers_install ARCH=mips INSTALL_HDR_PATH=<klibc-source-dir>/linux

Then build klibc without defining KLIBCKERNELSRC.


Ben Hutchings
Life would be so much easier if we could look at the source code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zytor.com/archives/klibc/attachments/20220802/ecaef01c/attachment.sig>

More information about the klibc mailing list