fpga: Add option to build IP only
Original-commit: adcca0acd995a75fb2dede4d6a86641821e49e3d
This commit is contained in:
+5
-2
@@ -23,10 +23,12 @@ DEFS += BUILD_SEED=$(BUILD_SEED)
|
|||||||
|
|
||||||
# Set build option (check RTL, run synthesis, or do a full build)
|
# Set build option (check RTL, run synthesis, or do a full build)
|
||||||
ifndef TARGET
|
ifndef TARGET
|
||||||
ifdef CHECK
|
ifeq ($(CHECK), 1)
|
||||||
TARGET = rtl
|
TARGET = rtl
|
||||||
else ifdef SYNTH
|
else ifeq ($(SYNTH), 1)
|
||||||
TARGET = synth
|
TARGET = synth
|
||||||
|
else ifeq ($(IP_ONLY), 1)
|
||||||
|
TARGET = viv_ip
|
||||||
else
|
else
|
||||||
TARGET = bin
|
TARGET = bin
|
||||||
endif
|
endif
|
||||||
@@ -114,6 +116,7 @@ help: ##Show this help message.
|
|||||||
##GUI=1 Launch the build in the Vivado GUI.
|
##GUI=1 Launch the build in the Vivado GUI.
|
||||||
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
||||||
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
||||||
|
##IP_ONLY=1 Launch the build but stop after IP generation.
|
||||||
##SYNTH=1 Launch the build but stop after synthesis.
|
##SYNTH=1 Launch the build but stop after synthesis.
|
||||||
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
||||||
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
||||||
|
|||||||
+5
-2
@@ -26,10 +26,12 @@ AA_DEFS=SFP_AURORA=1 BUILD_AURORA=1 $(OPTIONS) BUILD_SEED=$(BUILD_SEED)
|
|||||||
|
|
||||||
# Set build option (check RTL, run synthesis, or do a full build)
|
# Set build option (check RTL, run synthesis, or do a full build)
|
||||||
ifndef TARGET
|
ifndef TARGET
|
||||||
ifdef CHECK
|
ifeq ($(CHECK), 1)
|
||||||
TARGET = rtl
|
TARGET = rtl
|
||||||
else ifdef SYNTH
|
else ifeq ($(SYNTH), 1)
|
||||||
TARGET = synth
|
TARGET = synth
|
||||||
|
else ifeq ($(IP_ONLY), 1)
|
||||||
|
TARGET = viv_ip
|
||||||
else
|
else
|
||||||
TARGET = bin
|
TARGET = bin
|
||||||
endif
|
endif
|
||||||
@@ -106,6 +108,7 @@ help: ##Show this help message.
|
|||||||
##GUI=1 Launch the build in the Vivado GUI.
|
##GUI=1 Launch the build in the Vivado GUI.
|
||||||
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
||||||
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
||||||
|
##IP_ONLY=1 Launch the build but stop after IP generation.
|
||||||
##SYNTH=1 Launch the build but stop after synthesis.
|
##SYNTH=1 Launch the build but stop after synthesis.
|
||||||
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
||||||
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
||||||
|
|||||||
+5
-2
@@ -49,10 +49,12 @@ N320AA_DEFAULTS:=DEFAULT_RFNOC_IMAGE_CORE_FILE=$(abspath n320_bist_image_core.v)
|
|||||||
|
|
||||||
# Set build option (check RTL, run synthesis, or do a full build)
|
# Set build option (check RTL, run synthesis, or do a full build)
|
||||||
ifndef TARGET
|
ifndef TARGET
|
||||||
ifdef CHECK
|
ifeq ($(CHECK), 1)
|
||||||
TARGET = rtl
|
TARGET = rtl
|
||||||
else ifdef SYNTH
|
else ifeq ($(SYNTH), 1)
|
||||||
TARGET = synth
|
TARGET = synth
|
||||||
|
else ifeq ($(IP_ONLY), 1)
|
||||||
|
TARGET = viv_ip
|
||||||
else
|
else
|
||||||
TARGET = bin
|
TARGET = bin
|
||||||
endif
|
endif
|
||||||
@@ -209,6 +211,7 @@ help: ##Show this help message.
|
|||||||
##GUI=1 Launch the build in the Vivado GUI.
|
##GUI=1 Launch the build in the Vivado GUI.
|
||||||
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
||||||
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
||||||
|
##IP_ONLY=1 Launch the build but stop after IP generation.
|
||||||
##SYNTH=1 Launch the build but stop after synthesis.
|
##SYNTH=1 Launch the build but stop after synthesis.
|
||||||
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
||||||
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
||||||
|
|||||||
+5
-2
@@ -35,10 +35,12 @@ XA_DEFS=BUILD_10G=1 BUILD_AURORA=1 SFP0_10GBE=1 SFP1_AURORA=1 $(OPTIONS) BUILD_S
|
|||||||
|
|
||||||
# Set build option (check RTL, run synthesis, or do a full build)
|
# Set build option (check RTL, run synthesis, or do a full build)
|
||||||
ifndef TARGET
|
ifndef TARGET
|
||||||
ifdef CHECK
|
ifeq ($(CHECK), 1)
|
||||||
TARGET = rtl
|
TARGET = rtl
|
||||||
else ifdef SYNTH
|
else ifeq ($(SYNTH), 1)
|
||||||
TARGET = synth
|
TARGET = synth
|
||||||
|
else ifeq ($(IP_ONLY), 1)
|
||||||
|
TARGET = viv_ip
|
||||||
else
|
else
|
||||||
TARGET = bin
|
TARGET = bin
|
||||||
endif
|
endif
|
||||||
@@ -155,6 +157,7 @@ help: ##Show this help message.
|
|||||||
##GUI=1 Launch the build in the Vivado GUI.
|
##GUI=1 Launch the build in the Vivado GUI.
|
||||||
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
||||||
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
||||||
|
##IP_ONLY=1 Launch the build but stop after IP generation.
|
||||||
##SYNTH=1 Launch the build but stop after synthesis.
|
##SYNTH=1 Launch the build but stop after synthesis.
|
||||||
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
||||||
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
||||||
|
|||||||
+5
-2
@@ -99,10 +99,12 @@ X440_1600_D_DEFAULTS := DEFAULT_RFNOC_IMAGE_CORE_FILE=x440_1600_d_rfnoc_image_c
|
|||||||
|
|
||||||
# Option to stop after RTL elaboration. Use this flag as a synthesis check.
|
# Option to stop after RTL elaboration. Use this flag as a synthesis check.
|
||||||
ifndef TARGET
|
ifndef TARGET
|
||||||
ifdef CHECK
|
ifeq ($(CHECK), 1)
|
||||||
TARGET = rtl
|
TARGET = rtl
|
||||||
else ifdef SYNTH
|
else ifeq ($(SYNTH), 1)
|
||||||
TARGET = synth
|
TARGET = synth
|
||||||
|
else ifeq ($(IP_ONLY), 1)
|
||||||
|
TARGET = viv_ip
|
||||||
else
|
else
|
||||||
TARGET = bin
|
TARGET = bin
|
||||||
endif
|
endif
|
||||||
@@ -333,6 +335,7 @@ help: ##Show this help message.
|
|||||||
##GUI=1 Launch the build in the Vivado GUI.
|
##GUI=1 Launch the build in the Vivado GUI.
|
||||||
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
##PROJECT=1 Save Vivado project file, otherwise it's created in memory.
|
||||||
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
##CHECK=1 Launch the syntax checker instead of building a bitfile.
|
||||||
|
##IP_ONLY=1 Launch the build but stop after IP generation.
|
||||||
##SYNTH=1 Launch the build but stop after synthesis.
|
##SYNTH=1 Launch the build but stop after synthesis.
|
||||||
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
##BUILD_SEED=<N> Build seed to used to affect build results. (Default is 0)
|
||||||
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
##TOP=<module> Specify a top module for syntax checking. (Default is the bitfile top)
|
||||||
|
|||||||
Reference in New Issue
Block a user