[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH] support/build: add support for .tar.bz2 archives
Thanks a lot! Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> On 15.01.20 11:12, Hugo Lefeuvre wrote: Signed-off-by: Hugo Lefeuvre <hugo.lefeuvre@xxxxxxxxx> diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules index d60c6d9..228446b 100644 --- a/support/build/Makefile.rules +++ b/support/build/Makefile.rules @@ -279,6 +279,14 @@ $(BUILD_DIR)/$(1)/.origin: $(2) $(TOUCH) $(BUILD_DIR)/$(1)/.origin) endef+define _extracttoorigin_tgz_bz2 =+$(BUILD_DIR)/$(1)/.origin: $(2) + $(call verbose_cmd,UNTAR,$(1)':' $(notdir $(2)), \ + $(TAR) -xjf $(2) \ + -C $(BUILD_DIR)/$(1)/origin && \ + $(TOUCH) $(BUILD_DIR)/$(1)/.origin) +endef + define _extracttoorigin_zip = $(BUILD_DIR)/$(1)/.origin: $(2) $(call verbose_cmd,UNZIP,$(1)':' $(notdir $(2)), \ @@ -313,9 +321,10 @@ endef define unarchive = $(if $(filter %.tar.gz %.tgz,$(2)),$(call _extracttoorigin_tgz,$(1),$(2)),\ $(if $(filter %.tar.xz %.txz,$(2)),$(call _extracttoorigin_tgz_xz,$(1),$(2)),\ +$(if $(filter %.tar.bz2 %.tbz2,$(2)),$(call _extracttoorigin_tgz_bz2,$(1),$(2)),\ $(if $(filter %.zip,$(2)),$(call _extracttoorigin_zip,$(1),$(2)),\ $(error $(2): missing extraction rule for archive type)\ -))) +)))) UK_FETCH-y += $(BUILD_DIR)/$(1)/.origin \ $(eval $(call vprefix_lib,$(1),ORIGIN) = $(BUILD_DIR)/$(1)/origin) $(call mk_sub_build_dir,$(1)/origin) _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |