mirror of
git://projects.qi-hardware.com/iris.git
synced 2024-12-29 02:39:53 +02:00
33 lines
349 B
Bash
Executable File
33 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
cat << EOF
|
|
.globl init_start
|
|
.globl thread_start
|
|
.set noreorder
|
|
.balign 0x1000
|
|
EOF
|
|
|
|
for i in "$@" ; do
|
|
cat << EOF
|
|
${i##*/}:
|
|
.incbin "fs/${i##*/}.elf"
|
|
.balign 0x1000
|
|
EOF
|
|
done
|
|
|
|
cat << EOF
|
|
end_threads:
|
|
init_start:
|
|
thread_start:
|
|
EOF
|
|
|
|
for i in "$@" ; do
|
|
cat << EOF
|
|
.word ${i##*/}
|
|
EOF
|
|
done
|
|
|
|
cat << EOF
|
|
.word end_threads
|
|
.word 0
|
|
EOF
|