mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
package/pkg-generic.mk: simplify step_pkg_size
Use the same trick in step_pkg_size as the one used in check_bin_arch: factorize the two $(filter ...) calls into one, checking in one step the step and whether it's the beginning or end of the step. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
ed19f4d231
commit
894d58a15c
@ -95,12 +95,12 @@ define step_pkg_size_inner
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define step_pkg_size
|
define step_pkg_size
|
||||||
$(if $(filter install-target,$(2)),\
|
$(if $(filter end-install-target,$(1)-$(2)),\
|
||||||
$(if $(filter end,$(1)),$(call step_pkg_size_inner,$(3),$(TARGET_DIR))))
|
$(call step_pkg_size_inner,$(3),$(TARGET_DIR)))
|
||||||
$(if $(filter install-staging,$(2)),\
|
$(if $(filter end-install-staging,$(1)-$(2)),\
|
||||||
$(if $(filter end,$(1)),$(call step_pkg_size_inner,$(3),$(STAGING_DIR),-staging)))
|
$(call step_pkg_size_inner,$(3),$(STAGING_DIR),-staging))
|
||||||
$(if $(filter install-host,$(2)),\
|
$(if $(filter end-install-host,$(1)-$(2)),\
|
||||||
$(if $(filter end,$(1)),$(call step_pkg_size_inner,$(3),$(HOST_DIR),-host)))
|
$(call step_pkg_size_inner,$(3),$(HOST_DIR),-host))
|
||||||
endef
|
endef
|
||||||
GLOBAL_INSTRUMENTATION_HOOKS += step_pkg_size
|
GLOBAL_INSTRUMENTATION_HOOKS += step_pkg_size
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user