Add Architecture Aliases

This commit is contained in:
2020-04-17 15:06:16 +02:00
parent cb45e375bc
commit 10b70710dc
2 changed files with 43 additions and 6 deletions
+40
View File
@@ -0,0 +1,40 @@
#
# Makefile.conf.aliases
#
ARCHS += armv6
ARCHS += armv8
ARCHS += alpine
ARCH := $(filter $(ARCHS),$(MAKECMDGOALS))
MAKECMDGOALS := $(filter-out $(ARCH),$(MAKECMDGOALS))
# ARMv6 Defaults to Raspbian jessie
ifeq ($(ARCH),armv6)
ARCH := armv6-jessie
.PHONY: armv6
armv6: $(ARCH)
endif
# ARMv8 Defaults to Raspbian stretch
ifeq ($(ARCH),armv8)
ARCH := armv8-stretch
.PHONY: armv8
armv8: $(ARCH)
endif
# Alpine defaults to x86_64 alpine
ifeq ($(ARCH),alpine)
ARCH := x86_64-alpine
.PHONY: alpine
alpine: $(ARCH)
endif
# Default is x86_64
ifeq ($(ARCH),)
ARCH := x86_64
endif