diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2023-02-02 13:29:28 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2023-02-08 10:13:51 +0000 |
commit | 9db6db065a78003d5105a660d3e8ddf0cf889d16 (patch) | |
tree | 9f05c8f3c82ae71c11d99f8a8341f7cfc47c0080 /build | |
parent | 11d9d02459ee3ac6ae402dd565aabbdfeea2c4fb (diff) |
build: allow skipping external-deps
Change-Id: I0e5090ec6978af0dc4baecc7654918cf40663f42
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: feature
Diffstat (limited to 'build')
-rwxr-xr-x | build/external/deb/debian/rules | 1 | ||||
-rw-r--r-- | build/external/packages.mk | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/build/external/deb/debian/rules b/build/external/deb/debian/rules index cf4b4d989b4..901d4689766 100755 --- a/build/external/deb/debian/rules +++ b/build/external/deb/debian/rules @@ -26,6 +26,7 @@ override_dh_auto_configure: override_dh_install: make $(MAKE_ARGS) install + @mkdir -p $(INSTALL_DIR) dh_install -p$(PKG) --autodest /opt override_dh_shlibdeps: diff --git a/build/external/packages.mk b/build/external/packages.mk index 99322ae3bef..b969d8fc5e7 100644 --- a/build/external/packages.mk +++ b/build/external/packages.mk @@ -101,11 +101,18 @@ define $1_config_cmds endef endif +ifneq ($(filter $1,$(VPP_SKIP_EXTERNAL)), $1) $(B)/.$1.config.ok: $(B)/.$1.patch.ok $(addsuffix -install,$($1_depends)) $$(call h1,"configuring $1 $($1_version) - log: $$($1_config_log)") @mkdir -p $$($1_build_dir) $$(call $1_config_cmds) @touch $$@ +else +$(B)/.$1.config.ok: + $$(call h1,"Skipping $1 $($1_version)") + @mkdir -p $(B) + @touch $$@ +endif .PHONY: $1-config $1-config: $(B)/.$1.config.ok @@ -120,10 +127,17 @@ define $1_build_cmds endef endif +ifneq ($(filter $1,$(VPP_SKIP_EXTERNAL)), $1) $(B)/.$1.build.ok: $(B)/.$1.config.ok $$(call h1,"building $1 $($1_version) - log: $$($1_build_log)") $$(call $1_build_cmds) @touch $$@ +else +$(B)/.$1.build.ok: + $$(call h1,"Skipping $1 $($1_version)") + @mkdir -p $(B) + @touch $$@ +endif .PHONY: $1-build $1-build: $(B)/.$1.build.ok @@ -138,10 +152,17 @@ define $1_install_cmds endef endif +ifneq ($(filter $1,$(VPP_SKIP_EXTERNAL)), $1) $(B)/.$1.install.ok: $(B)/.$1.build.ok $$(call h1,"installing $1 $($1_version) - log: $$($1_install_log)") $$(call $1_install_cmds) @touch $$@ +else +$(B)/.$1.install.ok: + $$(call h1,"Skipping $1 $($1_version)") + @mkdir -p $(B) + @touch $$@ +endif .PHONY: $1-install $1-install: $(B)/.$1.install.ok |