summaryrefslogtreecommitdiff
path: root/drivers/ddr/altera/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ddr/altera/Makefile')
-rw-r--r--drivers/ddr/altera/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ddr/altera/Makefile b/drivers/ddr/altera/Makefile
index 1ca705856d..bdd28722a9 100644
--- a/drivers/ddr/altera/Makefile
+++ b/drivers/ddr/altera/Makefile
@@ -8,4 +8,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
-obj-$(CONFIG_ALTERA_SDRAM) += sdram.o sequencer.o
+ifdef CONFIG_ALTERA_SDRAM
+obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += sdram.o sequencer.o
+endif