summaryrefslogtreecommitdiff
path: root/sys/src/boot
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-06-18 18:23:22 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-06-18 18:23:22 +0000
commit7bae48c452c75115a965aa13243c886a99cbf192 (patch)
tree5c86305ab61ac6794d11dd5ac14a2cfb02bcaba4 /sys/src/boot
parentff7aa0671d8bcb65bc33df25f99b1c886c672df5 (diff)
generate boot.scr in /sys/src/boot/reform
Diffstat (limited to 'sys/src/boot')
-rw-r--r--sys/src/boot/reform/boot.txt2
-rw-r--r--sys/src/boot/reform/mkfile7
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/src/boot/reform/boot.txt b/sys/src/boot/reform/boot.txt
new file mode 100644
index 000000000..738fd305d
--- /dev/null
+++ b/sys/src/boot/reform/boot.txt
@@ -0,0 +1,2 @@
+load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} ${prefix}9reform.u
+bootm ${kernel_addr_r}
diff --git a/sys/src/boot/reform/mkfile b/sys/src/boot/reform/mkfile
index 17d4326dc..52cd5058e 100644
--- a/sys/src/boot/reform/mkfile
+++ b/sys/src/boot/reform/mkfile
@@ -1,9 +1,12 @@
-FILES=flash.bin
+FILES=flash.bin boot.scr
-all:V: flash.bin
+all:V: $FILES
clean:V:
rm -f $FILES
flash.bin:
hget -o flash.bin 'https://source.mnt.re/reform/reform-boundary-uboot/-/jobs/artifacts/v3/raw/flash.bin?job=build'
+
+boot.scr: boot.txt
+ aux/txt2uimage -o $target $prereq