diff --git a/iopsys-ramips/Makefile b/iopsys-ramips/Makefile
index 5edf60859da322b990c1aac3305291d93a24e6f5..a0ca4d2c3707ce5554dfff912e7201674808925b 100644
--- a/iopsys-ramips/Makefile
+++ b/iopsys-ramips/Makefile
@@ -19,6 +19,8 @@ include $(INCLUDE_DIR)/target.mk
 DEFAULT_PACKAGES += \
 	kmod-leds-gpio kmod-gpio-button-hotplug wpad-mini swconfig
 
+CFLAGS += -DCONFIG_TARGET_iopsys_ramips
+
 define Target/Description
 	Build firmware images for Mediatek boards with drivers from the Mediatek STK.
 endef