mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 06:36:34 +00:00
package: add support for post-download hooks
This will be needed for the Linux kernel package, which needs to download patches in a custom way. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
bd40fcec77
commit
c917550361
@ -234,6 +234,7 @@ ifeq ($(DL_MODE),DOWNLOAD)
|
|||||||
endif
|
endif
|
||||||
$(if $($(PKG)_SOURCE),$(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_SOURCE)))
|
$(if $($(PKG)_SOURCE),$(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_SOURCE)))
|
||||||
$(if $($(PKG)_PATCH),$(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_PATCH)))
|
$(if $($(PKG)_PATCH),$(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_PATCH)))
|
||||||
|
$(foreach hook,$($(PKG)_POST_DOWNLOAD_HOOKS),$(call $(hook))$(sep))
|
||||||
ifeq ($(DL_MODE),DOWNLOAD)
|
ifeq ($(DL_MODE),DOWNLOAD)
|
||||||
$(Q)mkdir -p $(@D)
|
$(Q)mkdir -p $(@D)
|
||||||
$(Q)touch $@
|
$(Q)touch $@
|
||||||
@ -437,6 +438,7 @@ $(2)_EXTRACT_CMDS ?= \
|
|||||||
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $$($(2)_DIR) $(TAR_OPTIONS) -)
|
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $$($(2)_DIR) $(TAR_OPTIONS) -)
|
||||||
|
|
||||||
# post-steps hooks
|
# post-steps hooks
|
||||||
|
$(2)_POST_DOWNLOAD_HOOKS ?=
|
||||||
$(2)_POST_EXTRACT_HOOKS ?=
|
$(2)_POST_EXTRACT_HOOKS ?=
|
||||||
$(2)_POST_PATCH_HOOKS ?=
|
$(2)_POST_PATCH_HOOKS ?=
|
||||||
$(2)_PRE_CONFIGURE_HOOKS ?=
|
$(2)_PRE_CONFIGURE_HOOKS ?=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user