mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-01-22 19:16:19 +07:00
18 lines
772 B
Bash
Executable File
18 lines
772 B
Bash
Executable File
function fetch_sources_tools__sunxi_tools() {
|
|
fetch_from_repo "https://github.com/linux-sunxi/sunxi-tools" "${EXTER}/cache/sources/sunxi-tools" "branch:master"
|
|
}
|
|
|
|
function build_host_tools__compile_sunxi_tools() {
|
|
# Compile and install only if git commit hash changed
|
|
cd "${EXTER}"/cache/sources/sunxi-tools || exit
|
|
# need to check if /usr/local/bin/sunxi-fexc to detect new Docker containers with old cached sources
|
|
if [[ ! -f .commit_id || $(improved_git rev-parse @ 2>/dev/null) != $(<.commit_id) || ! -f /usr/local/bin/sunxi-fexc ]]; then
|
|
display_alert "Compiling" "sunxi-tools" "info"
|
|
make -s clean >/dev/null
|
|
make -s tools >/dev/null
|
|
mkdir -p /usr/local/bin/
|
|
make install-tools >/dev/null 2>&1
|
|
improved_git rev-parse @ 2>/dev/null >.commit_id
|
|
fi
|
|
}
|