File tree Expand file tree Collapse file tree 2 files changed +49
-11
lines changed Expand file tree Collapse file tree 2 files changed +49
-11
lines changed Original file line number Diff line number Diff line change 3333# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
3434# OF THE POSSIBILITY OF SUCH DAMAGE.
3535#
36- exec " $( dirname " $0 " ) " /do-configure mips-zephyr-elf -Dtests=true -Dtests-enable-posix-io=false " $@ "
36+ exec " $( dirname " $0 " ) " /do-configure mips-zephyr-elf -Dtests=true -Dposix-console=true " $@ "
Original file line number Diff line number Diff line change @@ -46,24 +46,62 @@ if file "$elf" | grep -q LSB; then
4646 qemu=" qemu-system-mipsel"
4747fi
4848
49- # Disable monitor
49+ cpu=24Kf
5050
51- mon=none
51+ # Map stdio to a multiplexed character device so we can use it
52+ # for the monitor and semihosting output
5253
53- # Point serial port at new chardev
54+ chardev=stdio,mux=on,id=stdio0
5455
55- serial=stdio
56+ # Point the semihosting driver at our new chardev
5657
57- cpu=24Kf
58+ cmdline=" program-name"
59+ input=" "
60+ done=0
61+
62+ while [ " $done " != " 1" ]; do
63+ case " $1 " in
64+ --)
65+ shift
66+ done=1
67+ ;;
68+ -s|" " )
69+ done=1
70+ ;;
71+ * )
72+ cmdline=" $cmdline $1 "
73+ case " $input " in
74+ " " )
75+ input=" $1 "
76+ ;;
77+ * )
78+ input=" $input $1 "
79+ ;;
80+ esac
81+ shift
82+ ;;
83+ esac
84+ done
85+
86+ semi=enable=on,chardev=stdio0,arg=" $cmdline "
87+
88+ # Point the monitor at the new chardev too
89+
90+ mon=none
91+
92+ # Disable the serial port
93+
94+ serial=none
5895
59- " $dir " /monitor-e9 $qemu \
60- -chardev stdio,id=con,mux=on \
96+ echo " $input " | $qemu \
97+ -chardev $chardev \
98+ -semihosting-config " $semi " \
6199 -machine malta \
62100 -cpu $cpu \
63101 -serial null \
64102 -serial null \
65- -serial chardev:con \
66- -mon chardev=con,mode=readline \
103+ -serial " $serial " \
104+ -monitor " $mon " \
67105 -net none \
68106 -nographic \
69- -kernel " $elf " " $@ " < /dev/null
107+ -kernel " $elf " " $@ "
You can’t perform that action at this time.
0 commit comments