Though I had already acked this, I had a quick comment:

> -----Original Message-----
> From: Xu, Rosen [mailto:rosen...@intel.com]
> Sent: Friday, May 4, 2018 7:41 PM
> To: dev@dpdk.org
> Cc: rosen...@intel.com; declan.dohe...@intel.com;
> bruce.richard...@intel.com; Shreyansh Jain <shreyansh.j...@nxp.com>;
> ferruh.yi...@intel.com; konstantin.anan...@intel.com;
> tianfei.zh...@intel.com; song....@intel.com; hao...@intel.com;
> gaetan.ri...@6wind.com; Yanglong Wu <yanglong...@intel.com>
> Subject: [PATCH v7 3/5] iFPGA: Add Intel FPGA BUS Rawdev Driver
> 
> From: Rosen Xu <rosen...@intel.com>
> 
> Add Intel FPGA BUS Rawdev Driver which is based on
> librte_rawdev library.
> 
> Signed-off-by: Rosen Xu <rosen...@intel.com>
> Signed-off-by: Yanglong Wu <yanglong...@intel.com>
> Signed-off-by: Figo zhang <tianfei.zh...@intel.com>
> ---

[...]

> diff --git a/mk/rte.app.mk b/mk/rte.app.mk
> index f47bbe8..b0a994f 100644
> --- a/mk/rte.app.mk
> +++ b/mk/rte.app.mk
> @@ -253,6 +253,7 @@ endif # CONFIG_RTE_LIBRTE_EVENTDEV
> 
>  ifeq ($(CONFIG_RTE_LIBRTE_RAWDEV),y)
>  _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_SKELETON_RAWDEV) += -
> lrte_pmd_skeleton_rawdev
> +_LDLIBS-$(CONFIG_RTE_LIBRTE_IFPGA_RAWDEV)   += -lrte_ifpga_rawdev
>  endif # CONFIG_RTE_LIBRTE_RAWDEV

This driver is dependent on CONFIG_RTE_LIBRTE_IFPGA_BUS and if someone disables 
that, it would lead to build issues. I think you should enclose the 
IFPGA_RAWDEV compilation into conditional for CONFIG_RTE_LIBRTE_IFPGA_BUS=y.

Though, I do faintly remember a discussion in past that such thing should/can 
be left to individual environment configuration and it can be safely assumed 
that such erroneous configuration would be user-responsibility (at least until 
a dependency based configuration system is available in DPDK). So, it is a 
good-to-have rather a necessity.

> 
> 
> --
> 1.8.3.1

Reply via email to