[Buildroot] [PATCH 1/3] Makefile.package.in: Makes it possible to override the default extract commands
Daniel Nyström
daniel.nystrom at timeterminal.se
Tue May 10 07:08:24 UTC 2011
2011/5/10 Allan W. Nielsen <a at awn.dk>:
> +# Unpack the archive using custom commands
> +$(BUILD_DIR)/%/.stamp_custom_extracted:
> + @$(call MESSAGE,"Extracting - custom")
> + $(Q)mkdir -p $(@D)
> + $($(PKG)_EXTRACT_CMDS)
> + $(foreach hook,$($(PKG)_POST_EXTRACT_HOOKS),$(call $(hook))$(sep))
> + $(Q)touch $@
> +
> +# Unpack the archive using default commands
> $(BUILD_DIR)/%/.stamp_extracted:
> - @$(call MESSAGE,"Extracting")
> + @$(call MESSAGE,"Extracting - default")
> $(Q)mkdir -p $(@D)
> $(Q)$(if $($(PKG)_SOURCE),$(INFLATE$(suffix $($(PKG)_SOURCE))) $(DL_DIR)/$($(PKG)_SOURCE) | \
> $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -)
What's the point of having a specific stamp target for custom
extration? Why not just merge them both under .stamp_extracted?
More information about the buildroot
mailing list