Skip to content

Commit 6f76327

Browse files
committed
build-mipsel.sh: Build script for MIPS using OpenWRT SDK.
1 parent cbef0db commit 6f76327

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

unix/build-mipsel.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
OPENWRT_SDK=~/toolchain/OpenWrt-SDK-brcm47xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2
4+
5+
GCC_PATH=$OPENWRT_SDK/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/bin
6+
export STAGING_DIR=$OPENWRT_SDK/staging_dir/target-mipsel_uClibc-0.9.33.2
7+
export PATH=$GCC_PATH:$PATH
8+
9+
# Don't even generate .pdr
10+
# CFLAGS_EXTRA="-Wa,-mno-pdr"
11+
#-march=24kc -DNDEBUG -mips16
12+
13+
make CROSS_COMPILE=mipsel-openwrt-linux- deplibs
14+
15+
make CROSS_COMPILE=mipsel-openwrt-linux- CWARN="-Wall" \
16+
COPT="-Os" \
17+
CFLAGS_EXTRA="-DMICROPY_GCREGS_SETJMP=1 -DMICROPY_NLR_SETJMP=1 -DMICROPY_EMIT_X64=0" \
18+
LDFLAGS_EXTRA="-static-libgcc" \
19+
STRIPFLAGS_EXTRA="--remove-section=.pdr -R .comment -R .gnu.version -R .gnu.version_r \
20+
-R .gnu.attributes -R .reginfo -R .mdebug.abi32" \
21+
MICROPY_STANDALONE=1 \
22+
V=1 -B

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy