[dpdk-dev] Shared compilation issue - mempool/octeontx: add build and log infrastructure
santosh.shukla at caviumnetworks.com
Sat Oct 14 17:27:43 CEST 2017
On Saturday 14 October 2017 11:37 AM, Hemant Agrawal wrote:
> Your patch "mempool/octeontx: add build and log infrastructure" is causing shared build failure for NXP's patch "event/dpaa2: support event eth adapter", which is still under review.
> In your patch, you have added mempool to be dependent on event, which is not correct.
> "+DEPDIRS-mempool := bus event"
Yes, Octeontx needed mbox definitions and it was defined at event area.
But You are right that adding event dependency in mempool may create issues
for future feature like you mentioned.
> Ideally, if you have common code, you should put that in bus or mempool . This way you can make event, net or sec etc dependent on bus or mempool and not the otherway around.
Proposed change for makefile will be:
diff --git a/drivers/Makefile b/drivers/Makefile
index 3a5b22342..0467250aa 100644
@@ -32,13 +32,13 @@
DIRS-y += bus
-DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += event
-DEPDIRS-event := bus
DIRS-y += mempool
-DEPDIRS-mempool := bus event
+DEPDIRS-mempool := bus
DIRS-y += net
DEPDIRS-net := bus mempool
DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto
DEPDIRS-crypto := bus mempool
+DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += event
+DEPDIRS-event := bus mempool
Can you give it a try and let me know your feedback.
More information about the dev