If condition in Makefile not evaluating

Solution 1:

You have:

ifeq ($(OS_ARCH),"arm64")

If OS_ARCH is set to arm64 this evaluates to:

ifeq (arm64,"arm64")

and the string arm64 is not the same as the string "arm64" because the latter has quotes and the former doesn't.

Use:

ifeq ($(OS_ARCH),arm64)