* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / architecture / mips64 / boot / boot.in
bloba00aa15ea239e4d6c346eda74dbdadb1aaa31477
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/mips64/boot/boot.in
3 # Copyright (C) 2006 - 2024 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 arch_boot_cd_pre() {
13         mkdir -p $isofsdir/boot
14         cp -f $build_root/boot/arcload $isofsdir/boot/arcload
15         cp -f $build_root/boot/arcload.ecoff $isofsdir/boot/arcload2
16         echo -n "" > $isofsdir/boot/arc.cf
19 arch_boot_cd_add() {
20         local suffix=
21         [[ "$5" = *minird* ]] && suffix="-minird"
23         [ -s $isofsdir/boot/arc.cf ] ||
24         sed "s/\$ver/${2//-*/}/g" $base/architecture/$arch/boot/arc.cf > $isofsdir/boot/arc.cf
26         true || cat >> $isofsdir/boot/arc.cf <<EOT
28 install$suffix {
29         description     "$3";
30         image   system  "$4";
31         initrd  system  "$5";
33 EOT
36 arch_boot_cd_post() {
37         echo_status "Creating isofs_arch.txt file .."
39         cat > $build_toolchain/isofs_arch.txt <<- EOT
40 BOOT    -mips-boot /boot/arcload -mips-boot /boot/arcload2 -mips-boot /boot/arc.cf
41 DISK1   $isofsdir/ /
42 EOT