Commit 6766a582 authored by Wookey's avatar Wookey

Get the distro/vendor detection logic working

parent 8151227a
......@@ -16,19 +16,19 @@ VER_BINUTILS := $(shell dpkg-parsechangelog -l/usr/src/binutils/debian/chang
BINUTILS_DIR := /usr/src/binutils
# We know the HOST and TARGET arches for Debian dna Ubuntu, but not others.
ifeq ($(DEB_VENDOR),)
DISTRO= $(shell dpkg-vendor --query Vendor)
# We know the HOST and TARGET arches for Debian and Ubuntu, but not others.
ifeq ($(strip $(DISTRO)),)
$(error cannot detect distro. Giving up. Set DEB_VENDOR=Debian or Ubuntu)
else ifeq ($(DISTRO),Debian)
TARGET_LIST ?= armhf armel arm64 mips mipsel mips64el ppc64 powerpc i386 amd64
HOST_LIST ?= amd64 i386 arm64
else ifeq ($(DISTRO),Ubuntu)
TARGET_LIST ?= armhf armel arm64
HOST_LIST ?= amd64 i386
else
ifeq ($(DISTRO),Debian)
TARGET_LIST ?= armhf armel arm64 mips mipsel mips64el ppc64 powerpc i386 amd64
HOST_LIST ?= amd64 i386 arm64
endif
ifeq($(DISTRO),Ubuntu)
TARGET_LIST ?= armhf armel arm64
HOST_LIST ?= amd64 i386 arm64
endif
$(error unknown distro $DEB_VENDOR. Nothing will be built.)
$(error unknown distro "$(DISTRO)". Nothing will be built.)
endif
# Don't try to build the HOST=TARGET (ie. non-cross) combination for this arch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment