- $(call Build/Configure/Target,$(UBOOT_CONFIG))
- $(call Build/Configure/Target,$(UBOOT_CONFIG)_ramboot)
+ $(call Build/Configure/Target,$(UBOOT_TARGET))
+ifeq ($(CONFIG_UBOOT_RAMBOOT),y)
+ $(call Build/Configure/Target,$(UBOOT_TARGET)_ramboot)
+endif