mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: add core extension c-plus-plus-compiler which hostdeps on g++-aarch64-linux-gnu and enable it in JetHub family
This commit is contained in:
@@ -13,6 +13,12 @@ elif [[ "$BOARD" == "jethubj100" ]]; then
|
|||||||
OFFSET=126
|
OFFSET=126
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# JetHub builds userspace tooling with c++ (gpp) toolchain in buildjethomecmds() below.
|
||||||
|
# The C++ compiler is no longer included by default in the Armbian build system.
|
||||||
|
# Enable the extension that brings includes it. It could've been an inline extension (eg: the function right here),
|
||||||
|
# but having a core extension allows it to be pre-included in the Dockerfile generation and thus in the Docker images.
|
||||||
|
enable_extension "c-plus-plus-compiler"
|
||||||
|
|
||||||
uboot_custom_postprocess() {
|
uboot_custom_postprocess() {
|
||||||
if [[ "$BOARD" == "jethubj80" ]]; then
|
if [[ "$BOARD" == "jethubj80" ]]; then
|
||||||
uboot_gxl_postprocess_ng "$SRC/cache/sources/amlogic-boot-fip/jethub-j80"
|
uboot_gxl_postprocess_ng "$SRC/cache/sources/amlogic-boot-fip/jethub-j80"
|
||||||
|
|||||||
7
extensions/c-plus-plus-compiler.sh
Normal file
7
extensions/c-plus-plus-compiler.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# The C++ compiler is no longer included by default in prepare-host.sh.
|
||||||
|
# Enable this extension if you need a C++ compiler during the build.
|
||||||
|
|
||||||
|
function add_host_dependencies__add_arm64_c_plus_plus_compiler() {
|
||||||
|
display_alert "Adding arm64 c++ compiler to host dependencies" "g++" "debug"
|
||||||
|
export EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} g++-aarch64-linux-gnu" # @TODO: convert to array later
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user