Root/userspace/boot/mkthreadlist

1#!/bin/bash
2cat << EOF
3    .globl init_start
4    .globl thread_start
5    .set noreorder
6    .balign 0x1000
7EOF
8
9for i in "$@" ; do
10    cat << EOF
11${i##*/}:
12    .incbin "fs/${i##*/}.elf"
13    .balign 0x1000
14EOF
15done
16
17cat << EOF
18end_threads:
19init_start:
20thread_start:
21EOF
22
23for i in "$@" ; do
24    cat << EOF
25    .word ${i##*/}
26EOF
27done
28
29cat << EOF
30    .word end_threads
31    .word 0
32EOF
33

Archive Download this file

Branches:
master



interactive