mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add Xilinx bootgen to build environment
This commit is contained in:
@@ -703,6 +703,21 @@ install_rkbin_tools()
|
||||
fi
|
||||
}
|
||||
|
||||
compile_xilinx_bootgen()
|
||||
{
|
||||
# Compile and install only if git commit hash changed
|
||||
cd "${SRC}"/cache/sources/xilinx-bootgen || exit
|
||||
# need to check if /usr/local/bin/bootgen 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/bootgen ]]; then
|
||||
display_alert "Compiling" "xilinx-bootgen" "info"
|
||||
make -s clean >/dev/null
|
||||
make -s -j$(nproc) bootgen >/dev/null
|
||||
mkdir -p /usr/local/bin/
|
||||
install bootgen /usr/local/bin >/dev/null 2>&1
|
||||
improved_git rev-parse @ 2>/dev/null > .commit_id
|
||||
fi
|
||||
}
|
||||
|
||||
grab_version()
|
||||
{
|
||||
local ver=()
|
||||
|
||||
@@ -427,9 +427,12 @@ fetch_from_repo "https://github.com/MarvellEmbeddedProcessors/binaries-marvell"
|
||||
fetch_from_repo "https://github.com/armbian/odroidc2-blobs" "odroidc2-blobs" "branch:master"
|
||||
fetch_from_repo "https://github.com/armbian/testings" "testing-reports" "branch:master"
|
||||
fetch_from_repo "https://github.com/LibreELEC/amlogic-boot-fip" "amlogic-boot-fip" "branch:master"
|
||||
fetch_from_repo "https://github.com/Xilinx/bootgen.git" "xilinx-bootgen" "branch:master"
|
||||
fetch_from_repo "https://github.com/tparys/xilinx-fsbl-blobs" "xilinx-fsbl" "branch:master"
|
||||
|
||||
compile_sunxi_tools
|
||||
install_rkbin_tools
|
||||
compile_xilinx_bootgen
|
||||
|
||||
for option in $(tr ',' ' ' <<< "$CLEAN_LEVEL"); do
|
||||
[[ $option != sources ]] && cleaning "$option"
|
||||
|
||||
Reference in New Issue
Block a user