[Toybox] [PATCH] Pass cflags and hostcc in mkroot.

Denys Nykula nykula at ukr.net
Thu Sep 26 13:19:47 PDT 2019


To build working armv7l binaries natively, I set march, mfpu and
mfloat-abi CFLAGS specific for the device. Otherwise they can't run,
illegal instruction.

Binaries in generated/, kconfig/ and root/airlock/toybox/ are
dynamically linked by default, so to bootstrap a musl root with a
downloaded musl toolchain from a glibc host without its own toolchain, I
append -static to both CFLAGS and full compiler path in HOSTCC.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Pass-cflags-and-hostcc-in-mkroot.patch
Type: application/x-patch
Size: 1622 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190926/a4fbc33c/attachment-0002.bin>


More information about the Toybox mailing list