Add Architecture Aliases
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user