8000 build-mipsel.sh: Build script for MIPS using OpenWRT SDK. · lable/micropython@68dd5f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68dd5f0

Browse files
committed
build-mipsel.sh: Build script for MIPS using OpenWRT SDK.
1 parent 7901741 commit 68dd5f0

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)
0