Lines Matching +full:- +full:- +full:print +full:- +full:architecture

12 # script for x86 architecture
15 # $1 - fdimage format
16 # $2 - target image file
17 # $3 - kernel bzImage file
18 # $4 - mtools configuration file
19 # $5 - kernel cmdline
20 # $6+ - initrd image file(s)
34 set -x
38 # Exit the top-level shell with an error
45 kill -USR1 $topshell
50 if [ ! -f "$1" -o ! -r "$1" ]; then
70 declare -a FDINITRDS
75 if [ -f "$f" -a -r "$f" ]; then
84 # Read a $3-byte littleendian unsigned value at offset $2 from file $1
88 for b in $(od -A n -v -j $2 -N $3 -t u1 "$1"); do
95 # Get the EFI architecture name such that boot{name}.efi is the default
99 [ -f "$1" ] || return
100 [ $(le "$1" 0 2) -eq 23117 ] || return # MZ magic
102 [ $peoffs -ge 64 ] || return
103 [ $(le "$1" $peoffs 4) -eq 17744 ] || return # PE magic
109 [ $(le "$1" $((peoffs+4+20+68)) 2) -eq 10 ] || return # EFI app
128 for s in $(ls -lnL "$@" 2>/dev/null | awk '/^-/{ print $5; }'); do
129 t=$((t + ((s+cluster-1)/cluster)*cluster))
156 local f="$(find -L $(sharedirs syslinux isolinux) \
157 -name "$1" -readable -type f -print -quit 2>/dev/null)"
158 if [ ! -f "$f" ]; then
168 local -a names=(-false)
171 names=("${names[@]}" -or -iname "$name")
173 for f in $(find -L $(efidirs edk2 ovmf) \
174 \( "${names[@]}" \) -readable -type f \
175 -print 2>/dev/null); do
185 if [ ${#FDINITRDS[@]} -gt 0 ]; then
188 if [ -n "$efishell" ]; then
192 if [ -n "$kefiarch" ]; then
194 mcopy - "$1"startup.nsh
197 mcopy - "$1"syslinux.cfg
203 mformat -v 'LINUX_BOOT' a:
211 mformat -v 'LINUX_BOOT' v:
219 mformat -v 'LINUX_BOOT' w:
228 if [ -n "$kefiarch" ]; then
231 ptype='-T 0xef' # EFI system partition, no GPT
236 megs=$(((sizes + sizes/100 + 2*1024*1024 - 1)/(1024*1024)))
238 mpartition -I -c -s 32 -h 64 $ptype -b 64 -a p:
240 mformat -v 'LINUX_BOOT' -s 32 -h 64 -c $((cluster/512)) -t $megs h:
241 syslinux --offset $((64*512)) "$FIMAGE"
247 rm -rf "$tmp_dir"
255 genisoimage -J -r -appid 'LINUX_BOOT' -input-charset=utf-8 \
256 -quiet -o "$FIMAGE" -b isolinux.bin \
257 -c boot.cat -no-emul-boot -boot-load-size 4 \
258 -boot-info-table "$tmp_dir"
260 rm -rf "$tmp_dir"
263 rm -f "$FIMAGE"