# No ccache
$(ALMALINUX_TAGS): CC=cc

# DJGPP is very special
djgpp\:12.2.0: ENV_VARS=CROSS_COMPILE=i586-pc-msdosdjgpp- AR=i586-pc-msdosdjgpp-ar RANLIB=i586-pc-msdosdjgpp-ranlib
djgpp\:12.2.0: CC=ccache i586-pc-msdosdjgpp-gcc
djgpp\:12.2.0: STRIP=i586-pc-msdosdjgpp-strip
djgpp\:12.2.0: LIBS_BASE=../
djgpp\:12.2.0: MAKEARGS+=HAS_LIBPCI=yes CONFIG_LIBPCI_LDFLAGS=-lpci
djgpp\:12.2.0: MAKEARGS+=strip WARNERROR=no
djgpp\:12.2.0: MESONCMD=

# No libftdi1
NO_LIBFTDI1_TAGS := \
	$(ALMALINUX_TAGS) \

$(NO_LIBFTDI1_TAGS): MAKEARGS+=CONFIG_FT2232_SPI=no CONFIG_USBBLASTER_SPI=no

# No libgpiod
NO_LIBGPIOD_TAGS := \
	$(filter %\:8, $(ALMALINUX_TAGS)) \

$(NO_LIBGPIOD_TAGS): MAKEARGS+=CONFIG_LINUX_GPIO_SPI=no

# No libjaylink
NO_LIBJAYLINK_TAGS := \
	$(ALMALINUX_TAGS) \
	$(filter alpine\:%, $(MULTIARCH_TAGS)) \

$(NO_LIBJAYLINK_TAGS): MAKEARGS+=CONFIG_JLINK_SPI=no

# Additionally install Clang
CLANG_TAGS := \
	debian-debootstrap\:armhf-bullseye debian-debootstrap\:i386-bullseye \
	arm64v8/debian\:bookworm amd64/debian\:bookworm \
	amd64/alpine\:3.21 \

$(addsuffix -build,$(CLANG_TAGS)): DOCKER_BUILD_ARGS+=--build-arg ADDITIONAL_PACKAGES=clang
