This commit adopts the preconfigured cross-compile prefixes for
Darwin (MacOS). It is assumed that the needed `gcc` compiler is installed
via `brew`.
Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Alexander Jung <alex@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #1034
# set cross compile
ifeq ($(call qstrip,$(CONFIG_CROSS_COMPILE)),)
+ifeq ($(HOSTOSENV),Darwin)
+ CONFIG_CROSS_COMPILE := aarch64-elf-
+else
ifneq ($(CONFIG_UK_ARCH),$(HOSTARCH))
CONFIG_CROSS_COMPILE := aarch64-linux-gnu-
endif
endif
+endif
# set cross compile
ifeq ($(call qstrip,$(CONFIG_CROSS_COMPILE)),)
+ifeq ($(HOSTOSENV),Darwin)
+ CONFIG_CROSS_COMPILE := x86_64-elf-
+else
ifneq ($(CONFIG_UK_ARCH),$(HOSTARCH))
CONFIG_CROSS_COMPILE := x86_64-linux-gnu-
endif
endif
+endif