From c5695a15cc4ffa899b132aea74e3d6bdc9909d6b Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Fri, 8 Dec 2017 21:13:25 -0800 Subject: crossdev-examples.txt: add mipsel hardened musl example, update layman.xml Signed-off-by: Steve Arnold --- configs/crossdev-examples.txt | 14 ++++++++++++++ configs/layman.xml | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/configs/crossdev-examples.txt b/configs/crossdev-examples.txt index 20fe41c..15b74f3 100644 --- a/configs/crossdev-examples.txt +++ b/configs/crossdev-examples.txt @@ -89,3 +89,17 @@ PORTDIR_OVERLAY="/usr/local/portage/cross-avr" \ EXTRA_ECONF="--enable-libstdcxx-time=no" \ crossdev --g 4.9.4-r1 --b 2.25.1-r1 -t avr -s4 \ --ex-gdb --show-fail-log -v + + +Hardened mipsel with musl, for that Onion thing (mips abi is a guess) + +Note: cross-musl gets contaminated with host cflags/ldflags so you need +to pass -march and -mtune to match your tatget: + +PORTDIR_OVERLAY="/usr/local/mips32r2" \ + USE="-graphite hardened multitarget -multilib -vtv -openmp -jit -fortran -sanitize" \ + EXTRA_ECONF="--with-mips-plt --with-arch=mips32r2 --with-tune=24kec" \ + crossdev -t mipsel-unknown-linux-musl --abis "o32" \ + --lenv 'CFLAGS="-march=mips32r2 -mtune=24kec -O2 -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="${CFLAGS}"' \ + -v -b --without-headers --ex-gdb + diff --git a/configs/layman.xml b/configs/layman.xml index 211f0c7..db39ceb 100644 --- a/configs/layman.xml +++ b/configs/layman.xml @@ -5,9 +5,9 @@ https://github.com/gentoo/arm - - - steev@gentoo.org + + + arm@gentoo.org git://github.com/gentoo/arm.git https://github.com/gentoo/arm.git -- cgit v1.2.3-65-gdbad