1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2025-01-16 20:11:05 +02:00
iris/userspace/boot/mkthreadlist

33 lines
349 B
Plaintext
Raw Permalink Normal View History

2013-05-14 18:30:50 -04:00
#!/bin/bash
2012-09-26 19:03:36 +02:00
cat << EOF
.globl init_start
.globl thread_start
.set noreorder
.balign 0x1000
EOF
for i in "$@" ; do
cat << EOF
2013-05-14 18:30:50 -04:00
${i##*/}:
.incbin "fs/${i##*/}.elf"
2012-09-26 19:03:36 +02:00
.balign 0x1000
EOF
done
cat << EOF
end_threads:
init_start:
thread_start:
EOF
for i in "$@" ; do
cat << EOF
2013-05-14 18:30:50 -04:00
.word ${i##*/}
2012-09-26 19:03:36 +02:00
EOF
done
cat << EOF
2012-09-26 22:20:38 +02:00
.word end_threads
2012-09-26 19:03:36 +02:00
.word 0
EOF