DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC PATCH] ci: reduce examples built for static builds
@ 2020-03-16 17:09 Bruce Richardson
  2020-03-16 17:36 ` Aaron Conole
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bruce Richardson @ 2020-03-16 17:09 UTC (permalink / raw)
  To: dev; +Cc: aconole, ruifeng.wang, thomas, david.marchand, Bruce Richardson

Static builds can take a lot of space, so reduce the number of examples
built when doing those static builds.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 .ci/linux-build.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index d500c4c00..2e0971dee 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -42,9 +42,15 @@ if [ "$BUILD_32BIT" = "1" ]; then
     export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
 fi
 
+if [ "$DEF_LIB" = "static" ] ; then
+    OPTS="$OPTS -Dexamples=l2fwd,l3fwd"
+else
+    OPTS="$OPTS -Dexamples=all"
+fi
+
 OPTS="$OPTS --default-library=$DEF_LIB"
 OPTS="$OPTS --buildtype=debugoptimized"
-meson build --werror -Dexamples=all $OPTS
+meson build --werror $OPTS
 ninja -C build
 
 if [ "$AARCH64" != "1" ]; then
-- 
2.24.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-17 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-16 17:09 [dpdk-dev] [RFC PATCH] ci: reduce examples built for static builds Bruce Richardson
2020-03-16 17:36 ` Aaron Conole
2020-03-17 10:44   ` David Marchand
2020-03-17 12:48     ` Aaron Conole
2020-03-16 18:37 ` Thomas Monjalon
2020-03-18  9:45   ` Bruce Richardson
2020-04-17 21:58 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).