mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-30 18:18:37 +00:00
Backend - improve u-boot multibuild install
This commit is contained in:
parent
668e764357
commit
fe357e40e2
1 changed files with 5 additions and 5 deletions
|
@ -91,14 +91,14 @@ write_uboot()
|
||||||
{
|
{
|
||||||
local loop=$1 revision
|
local loop=$1 revision
|
||||||
display_alert "Writing U-boot bootloader" "$loop" "info"
|
display_alert "Writing U-boot bootloader" "$loop" "info"
|
||||||
mkdir -p /tmp/u-boot/
|
TEMP_DIR=$(mktemp -d || exit 1)
|
||||||
|
chmod 700 ${TEMP_DIR}
|
||||||
revision=${REVISION}
|
revision=${REVISION}
|
||||||
[[ -n $UPSTREM_VER ]] && revision=${UPSTREM_VER}
|
[[ -n $UPSTREM_VER ]] && revision=${UPSTREM_VER}
|
||||||
dpkg -x "${DEB_STORAGE}/${CHOSEN_UBOOT}_${revision}_${ARCH}.deb" /tmp/u-boot/
|
dpkg -x "${DEB_STORAGE}/${CHOSEN_UBOOT}_${revision}_${ARCH}.deb" ${TEMP_DIR}/
|
||||||
write_uboot_platform "/tmp/u-boot/usr/lib/${CHOSEN_UBOOT}_${revision}_${ARCH}" "$loop"
|
write_uboot_platform "${TEMP_DIR}/usr/lib/${CHOSEN_UBOOT}_${revision}_${ARCH}" "$loop"
|
||||||
[[ $? -ne 0 ]] && exit_with_error "U-boot bootloader failed to install" "@host"
|
[[ $? -ne 0 ]] && exit_with_error "U-boot bootloader failed to install" "@host"
|
||||||
rm -r /tmp/u-boot/
|
rm -rf ${TEMP_DIR}
|
||||||
sync
|
|
||||||
} #############################################################################
|
} #############################################################################
|
||||||
|
|
||||||
customize_image()
|
customize_image()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue