Add Xilinx bootgen to build environment

This commit is contained in:
tim
2021-04-10 20:23:56 -04:00
parent a761fc33a7
commit eee718649d
2 changed files with 18 additions and 0 deletions

View File

@@ -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=()

View File

@@ -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"