build/roms: rename moverom to copyrom
it copies, it doesn't move, so name it right Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
a39c95cfac
commit
309c3b1f33
2
build
2
build
|
@ -66,8 +66,6 @@ install_packages()
|
||||||
printf "You must install AUR packages: %s\n" "$aur_notice" 1>&2
|
printf "You must install AUR packages: %s\n" "$aur_notice" 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# release archives contain .gitignore, but not .git.
|
|
||||||
# xbmk can be run from xbmk.git, or an archive.
|
|
||||||
git_init()
|
git_init()
|
||||||
{
|
{
|
||||||
[ -L ".git" ] && $err "Reference .git is a symlink"
|
[ -L ".git" ] && $err "Reference .git is a symlink"
|
||||||
|
|
12
script/roms
12
script/roms
|
@ -313,7 +313,7 @@ build_seabios_roms()
|
||||||
newrom="${romdir}/seabios_${board}_${initmode}_${displaymode}"
|
newrom="${romdir}/seabios_${board}_${initmode}_${displaymode}"
|
||||||
[ "${initmode}" = "normal" ] && newrom="${romdir}/seabios" \
|
[ "${initmode}" = "normal" ] && newrom="${romdir}/seabios" \
|
||||||
&& newrom="${newrom}_${board}_${initmode}"
|
&& newrom="${newrom}_${board}_${initmode}"
|
||||||
x_ moverom "${t}" "${newrom}.rom"
|
x_ copyrom "${t}" "${newrom}.rom"
|
||||||
fi
|
fi
|
||||||
x_ rm -f "${t}"
|
x_ rm -f "${t}"
|
||||||
}
|
}
|
||||||
|
@ -377,14 +377,14 @@ build_grub_roms()
|
||||||
[ "${initmode}" = "normal" ] && \
|
[ "${initmode}" = "normal" ] && \
|
||||||
newrom="${romdir}/${payload1}_${board}_" && \
|
newrom="${romdir}/${payload1}_${board}_" && \
|
||||||
newrom="${newrom}${initmode}_${keymap}.rom"
|
newrom="${newrom}${initmode}_${keymap}.rom"
|
||||||
x_ moverom "${tmpgrubrom}" "${newrom}"
|
x_ copyrom "${tmpgrubrom}" "${newrom}"
|
||||||
if [ "${payload_seabios_grubonly}" = "y" ]; then
|
if [ "${payload_seabios_grubonly}" = "y" ]; then
|
||||||
x_ "$cbfstool" "$tmpgrubrom" add \
|
x_ "$cbfstool" "$tmpgrubrom" add \
|
||||||
-f "config/grub/bootorder" -n bootorder -t raw
|
-f "config/grub/bootorder" -n bootorder -t raw
|
||||||
x_ moverom "$tmpgrubrom" "${newrom%.rom}_grubfirst.rom"
|
x_ copyrom "$tmpgrubrom" "${newrom%.rom}_grubfirst.rom"
|
||||||
x_ "$cbfstool" "$tmpgrubrom" add-int -i 0 \
|
x_ "$cbfstool" "$tmpgrubrom" add-int -i 0 \
|
||||||
-n etc/show-boot-menu
|
-n etc/show-boot-menu
|
||||||
x_ moverom "$tmpgrubrom" "${newrom%.rom}_grubonly.rom"
|
x_ copyrom "$tmpgrubrom" "${newrom%.rom}_grubonly.rom"
|
||||||
fi
|
fi
|
||||||
x_ rm -f "${tmpgrubrom}"
|
x_ rm -f "${tmpgrubrom}"
|
||||||
done
|
done
|
||||||
|
@ -418,7 +418,7 @@ build_uboot_roms()
|
||||||
tmprom=$(mkUbootRom "${cbrom}" "fallback/payload") || \
|
tmprom=$(mkUbootRom "${cbrom}" "fallback/payload") || \
|
||||||
$err "build_uboot_roms $board: could not create tmprom"
|
$err "build_uboot_roms $board: could not create tmprom"
|
||||||
newrom="${romdir}/uboot_payload_${board}_${initmode}_${displaymode}.rom"
|
newrom="${romdir}/uboot_payload_${board}_${initmode}_${displaymode}.rom"
|
||||||
x_ moverom "${tmprom}" "${newrom}"
|
x_ copyrom "${tmprom}" "${newrom}"
|
||||||
x_ rm -f "${tmprom}"
|
x_ rm -f "${tmprom}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -441,7 +441,7 @@ mkUbootRom() {
|
||||||
printf "%s\n" "${tmprom}"
|
printf "%s\n" "${tmprom}"
|
||||||
}
|
}
|
||||||
|
|
||||||
moverom()
|
copyrom()
|
||||||
{
|
{
|
||||||
printf "Creating target image: %s\n" "$2"
|
printf "Creating target image: %s\n" "$2"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue