ascii_to_lower = $(shell echo $(1) | tr '[:upper:]' '[:lower:]') CHIPARCH := $(call ascii_to_lower,$(CHIPARCH))