Querying DEVICE_MODEL in Makefiles

Is there a way to query the specific board when creating package makefiles? I know ARCH is set, but I'd like to query specific boards e.g. DEVICE_MODEL=ZBT-WA05 so that I can pass this on to the compiler using CONFIGURE_ARGS (there is some device-specific code where one device has different uart configurations). ARCH is set, but DEVICE_MODEL does not appear to be.

Looks like adding

include $(INCLUDE_DIR)/target.mk

To the top of the package Makefile gives me a load of useful variables I can query to discover what board is being targetted such as DEVICE_PROFILE and DEVICE_TARGET, this should give me what I need

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.