Browse Source

- add $(PKG_MODE)

master
vanhofen 3 years ago
parent
commit
a41e60f8ea
  1. 2
      package/pkg-autotools.mk
  2. 2
      package/pkg-cmake.mk
  3. 2
      package/pkg-generic.mk
  4. 2
      package/pkg-individual.mk
  5. 1
      package/pkg-kernel-module.mk
  6. 2
      package/pkg-meson.mk
  7. 1
      package/pkg-python.mk
  8. 4
      package/pkg-utils.mk

2
package/pkg-autotools.mk

@ -92,6 +92,7 @@ endef
# -----------------------------------------------------------------------------
define autotools-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call TARGET_CONFIGURE)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call TARGET_MAKE))
@ -148,6 +149,7 @@ endef
# -----------------------------------------------------------------------------
define host-autotools-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call HOST_CONFIGURE)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call HOST_MAKE))

2
package/pkg-cmake.mk

@ -62,6 +62,7 @@ endef
# -----------------------------------------------------------------------------
define cmake-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call TARGET_CMAKE)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call TARGET_MAKE))
@ -108,6 +109,7 @@ endef
# -----------------------------------------------------------------------------
define host-cmake-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call HOST_CMAKE)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call HOST_MAKE))

2
package/pkg-generic.mk

@ -37,6 +37,7 @@ endef
# -----------------------------------------------------------------------------
define generic-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call TARGET_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call TARGET_MAKE_INSTALL))
@ -78,6 +79,7 @@ endef
# -----------------------------------------------------------------------------
define host-generic-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call HOST_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call HOST_MAKE_INSTALL))

2
package/pkg-individual.mk

@ -12,6 +12,7 @@ endef
# -----------------------------------------------------------------------------
define individual-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call INDIVIDUAL)
$(call TARGET_FOLLOWUP)
@ -20,6 +21,7 @@ endef
# -----------------------------------------------------------------------------
define host-individual-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call INDIVIDUAL)
$(call HOST_FOLLOWUP)

1
package/pkg-kernel-module.mk

@ -28,6 +28,7 @@ endef
# -----------------------------------------------------------------------------
define kernel-module
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call KERNEL_MODULE_BUILD)
$(call LINUX_RUN_DEPMOD)

2
package/pkg-meson.mk

@ -78,6 +78,7 @@ endef
# -----------------------------------------------------------------------------
define meson-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call TARGET_MESON_CONFIGURE)
$(call TARGET_NINJA_BUILD)
@ -122,6 +123,7 @@ endef
# -----------------------------------------------------------------------------
define host-meson-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call HOST_MESON_CONFIGURE)
$(call HOST_NINJA)

1
package/pkg-python.mk

@ -31,6 +31,7 @@ endef
# -----------------------------------------------------------------------------
define host-python3-package
$(eval PKG_MODE = $(pkg-mode))
$(call PREPARE,$(1))
$(call HOST_PYTHON3_BUILD)
$(call HOST_PYTHON3_INSTALL)

4
package/pkg-utils.mk

@ -129,6 +129,10 @@ pkg-check-variables = $(call PKG_CHECK_VARIABLES)
# -----------------------------------------------------------------------------
pkg-mode = $(call UPPERCASE,$(firstword $(subst -, ,$(subst host-,,$(0)))))
# -----------------------------------------------------------------------------
# PKG "control-flag" variables
PKG_NO_EXTRACT = pkg-no-extract
PKG_NO_PATCHES = pkg-no-patches

Loading…
Cancel
Save