Skip to content

Commit

Permalink
Allow user to skip updating VideoCore libraries
Browse files Browse the repository at this point in the history
Users who are running non-raspbian distributions, especially on other architectures
like arm64, may already have videocore libraries and applications compiled for arm64.
These will get overwritten unless updating the VideoCore libraries is skipped.

This implements a SKIP_VCLIBS option to allow that step to be skipped, which may be 
used alongside the SKIP_SDK option. This is also referred to in a suggestion for a
SKIP_USERLAND option here: Hexxeh#221 (comment)

Signed-off-by: Satadru Pramanik <[email protected]>
  • Loading branch information
satmandu authored Dec 12, 2019
1 parent 8abc084 commit 4b20776
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rpi-update
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ BOOT_PATH=${BOOT_PATH:-"/boot"}
WORK_PATH=${WORK_PATH:-"${ROOT_PATH}/root"}
SKIP_KERNEL=${SKIP_KERNEL:-0}
SKIP_SDK=${SKIP_SDK:-0}
SKIP_VCLIBS=${SKIP_VCLIBS:-0}
SKIP_REPODELETE=${SKIP_REPODELETE:-0}
SKIP_BACKUP=${SKIP_BACKUP:-0}
SKIP_DOWNLOAD=${SKIP_DOWNLOAD:-0}
Expand Down Expand Up @@ -151,7 +152,12 @@ function update_modules {
}

function update_vc_libs {
echo " *** Updating VideoCore libraries"
if [[ ${SKIP_VCLIBS} -eq 0 ]]; then
echo " *** Updating VideoCore libraries"
else
echo " *** As requested, not updating VideoCore libraries"
return
fi

if [[ -e ${ROOT_PATH}/bin/sh ]]; then
local ELFOUTPUT=$(readelf -a "${ROOT_PATH}/bin/sh"; readelf -h "${ROOT_PATH}/bin/sh")
Expand Down

0 comments on commit 4b20776

Please sign in to comment.