review: cleanup sub.mk

Cleans up core/arch/arm32/sta/sub.mk
Adds a compiler.h to provide the __unused macro to avoid warnings about
unused parameters.