Only install gcc-or1k-bin package when building images with crust-firmware support

This commit is contained in:
Gunjan Gupta
2023-06-21 15:15:41 +05:30
committed by Igor
parent 748eba0031
commit a747ba2c37
4 changed files with 38 additions and 20 deletions

View File

@@ -9,8 +9,10 @@ function add_host_dependencies__sunxi_add_32_bit_c_compiler() {
# Install gcc-or1k-elf for crust compilation
function add_host_dependencies__sunxi_add_or1k_c_compiler() {
display_alert "Adding or1k C compiler to host dependencies" "for sunxi bootloader compile" "debug"
declare -g EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} gcc-or1k-elf"
if [[ -n "$HOSTRELEASE" && "bookworm sid jammy kinetic lunar vanessa vera" == *"$HOSTRELEASE"* ]] ; then
display_alert "Adding or1k C compiler to host dependencies" "for sunxi bootloader compile" "debug"
declare -g EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} gcc-or1k-elf"
fi
}
function fetch_sources_tools__sunxi_tools() {