File tree 3 files changed +30
-0
lines changed 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ MICROPY_MICROPYTHON=../unix/micropython.mipseb ./run-tests "$@"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ OPENWRT_SDK=~ /toolchain/OpenWrt-SDK-atheros-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2
4
+
5
+ GCC_PATH=$OPENWRT_SDK /staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/bin
6
+ export STAGING_DIR=$OPENWRT_SDK /staging_dir/target-mips_mips32_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=mips-openwrt-linux- libffi
14
+
15
+ make CROSS_COMPILE=mips-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=" -lcurses -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
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ OPENWRT_SDK=~ /toolchain/OpenWrt-SDK-atheros-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2
4
+
5
+ qemu-mips -L $OPENWRT_SDK /staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2 \
6
+ -E LD_LIBRARY_PATH=$OPENWRT_SDK /staging_dir/target-mips_mips32_uClibc-0.9.33.2/usr/lib \
7
+ $( dirname $0 ) /micropython " $@ "
You can’t perform that action at this time.
0 commit comments