diff options
author | 2018-11-16 16:28:47 +0000 | |
---|---|---|
committer | 2018-11-16 16:28:47 +0000 | |
commit | f3a41cf01406bd6b7611e704f46801fb06fdb182 (patch) | |
tree | 14a91db69d80ca4a717c44a7290b9319f6e78275 | |
parent | 3a06e6c327290ce3bc8974f378198ab9609947e3 (diff) |
Add dpdk_config_options list to DEB_BUILD_OPTIONS
Allow users to pass a comma-separated list of meson configure options
via DEB_BUILD_OPTIONS
Change-Id: I1738428fef207d1e27a2059b07c80425a1609b50
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
-rwxr-xr-x | debian/rules | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 3d2be928..9c05c8d4 100755 --- a/debian/rules +++ b/debian/rules @@ -39,6 +39,15 @@ BUILD_DOCS=y endif endif +# Allow to pass specific configure flags to meson as a comma separated list +ifneq (,$(filter dpdk_config_options=%,$(DEB_BUILD_OPTIONS))) +# GNU Makefile hack: can't directly escape comma and spaces, so use variables + comma := , + space := + space += + DPDK_CONFIG_OPTIONS ?= $(subst $(comma),$(space),$(patsubst dpdk_config_options=%,%,$(filter dpdk_config_options=%,$(DEB_BUILD_OPTIONS)))) +endif + # kernel_modules can be passed via DEB_BUILD_OPTIONS to enable building the # optional binary kernel modules package. By default it will be built against # the current kernel, or ksrc can be passed with a path to the target kernel @@ -101,7 +110,7 @@ override_dh_auto_clean: dh_auto_clean override_dh_auto_configure: - dh_auto_configure -- \ + dh_auto_configure -- $(DPDK_CONFIG_OPTIONS) \ --includedir=include/dpdk \ -Dper_library_versions=false \ -Dinclude_subdir_arch=../$(DEB_HOST_MULTIARCH)/dpdk \ |