build: build-root/Makefile rm of install tree 79/22579/2
authorBurt Silverman <[email protected]>
Mon, 30 Sep 2019 13:50:42 +0000 (09:50 -0400)
committerAndrew Yourtchenko <[email protected]>
Fri, 11 Oct 2019 11:45:49 +0000 (11:45 +0000)
commit63f2b46a8cc0779e4a4778e47e769349c044a2a8
tree4b95c300eafed05db0500081268b8608e3a3b9a9
parent340a3b1e49adf32d55080b5c95a09ea173df7ed0
build: build-root/Makefile rm of install tree

Type: fix

The scenario is touch of a dpdk source file in places like
<TOP>/build-root/build-vpp-native/external/dpdk-19.08/.  The subsequent
build will trigger an rm -rf $(PACKAGE_INSTALL_DIR) by
build-root/Makefile at around line 709.  Because the package in
question, "external", consists of various "sub" packages, all of which
are controlled with files like .quicly.install.ok located in
build-root/build-vpp[_debug]-native/external, we end up not handling the
.*.install.ok files to reflect the removal of that PACKAGE_INSTALL_DIR.
This fix will correct that, at least for the case of touching/changing
dpdk files. A better long term solution would be to change the "sub"
packages to be full fledged build system packages, as Dave Barach points
out.

Signed-off-by: Burt Silverman <[email protected]>
Change-Id: Ia94ccaa2795cbf354b5921c3001a7141313b66be
(cherry picked from commit 839a7bce3872f992f4807ee6d6a76f9b361151dc)
build/external/packages/dpdk.mk