* changed pyproject-metadata build priority (400.000 -> 109.007)
[t2sde.git] / architecture / hppa / boot / boot.in
blob083114c3a421bbf320dfde23b048e095a297683b
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/hppa/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/usr/share/palo/iplboot $isofsdir/boot/
15         palo_label=0
18 arch_boot_cd_add() {
19         # Note: palo only supports one config, one kernel/initrd :-/
20         [ $((palo_label++)) != 0 ] &&
21                 echo_warning "Palo only support one config, skipped!" &&
22                 return
24         # ISO boot
25         cat > $build_toolchain/palo.sh <<-EOT
26 $build_toolchain/cross/bin/palo -f /dev/null \
27         --init-cdrom="\$2" \
28         -b $isofsdir/boot/iplboot \
29         -k $isofsdir/$4 -r $isofsdir/$5 \
30         -c "0/${4##*/} initrd=0/${5##*/}"
31 EOT
32         chmod +x $build_toolchain/palo.sh
34         # Net boot
35         $build_toolchain/cross/bin/palo -f /dev/null \
36                 --init-tape=$isofsdir/boot/lifimage${4#*/vmlinu?} \
37                 -b $isofsdir/boot/iplboot \
38                 -k $isofsdir/$4 -r $isofsdir/$5 \
39                 -c "0/${4##*/} initrd=0/${5##*/}"
42 arch_boot_cd_post() {
43         echo_status "Creating isofs_arch.txt file .."
45         cat > $build_toolchain/isofs_arch.txt <<- EOT
46 DISK1   $isofsdir/ /
47 SCRIPT  $build_toolchain/palo.sh
48 EOT