File tree 1 file changed +22
-0
lines changed 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments