Browse Source

- add "control-flag" variables

master
vanhofen 3 years ago
parent
commit
9bfd712200
  1. 4
      make/buildsystem-helpers.mk
  2. 12
      package/pkg-autotools.mk
  3. 12
      package/pkg-cmake.mk
  4. 12
      package/pkg-generic.mk
  5. 6
      package/pkg-individual.mk
  6. 2
      package/pkg-kernel-module.mk
  7. 4
      package/pkg-meson.mk
  8. 8
      package/pkg-utils.mk

4
make/buildsystem-helpers.mk

@ -164,8 +164,8 @@ define PREPARE
$(call STARTUP)
$(call DEPENDENCIES)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(if $(filter $(1),$(PKG_NO_EXTRACT)),,$(call EXTRACT,$(BUILD_DIR)))
$(if $(filter $(1),$(PKG_NO_PATCHES)),,$(call APPLY_PATCHES,$(PKG_PATCHES_DIR)))
endef
# -----------------------------------------------------------------------------

12
package/pkg-autotools.mk

@ -81,10 +81,10 @@ endef
# -----------------------------------------------------------------------------
define autotools-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call TARGET_CONFIGURE)
$(call TARGET_MAKE)
$(call TARGET_MAKE_INSTALL)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call TARGET_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call TARGET_MAKE_INSTALL))
$(call TARGET_FOLLOWUP)
endef
@ -123,9 +123,9 @@ endef
# -----------------------------------------------------------------------------
define host-autotools-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call HOST_CONFIGURE)
$(call HOST_MAKE)
$(call HOST_MAKE_INSTALL)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call HOST_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call HOST_MAKE_INSTALL))
$(call HOST_FOLLOWUP)
endef

12
package/pkg-cmake.mk

@ -60,10 +60,10 @@ endef
# -----------------------------------------------------------------------------
define cmake-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call TARGET_CMAKE)
$(call TARGET_MAKE)
$(call TARGET_MAKE_INSTALL)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call TARGET_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call TARGET_MAKE_INSTALL))
$(call TARGET_FOLLOWUP)
endef
@ -104,9 +104,9 @@ endef
# -----------------------------------------------------------------------------
define host-cmake-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call HOST_CMAKE)
$(call HOST_MAKE)
$(call HOST_MAKE_INSTALL)
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call HOST_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call HOST_MAKE_INSTALL))
$(call HOST_FOLLOWUP)
endef

12
package/pkg-generic.mk

@ -33,9 +33,9 @@ endef
# -----------------------------------------------------------------------------
define generic-package
$(call PREPARE)
$(call TARGET_MAKE)
$(call TARGET_MAKE_INSTALL)
$(call PREPARE,$(1))
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call TARGET_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call TARGET_MAKE_INSTALL))
$(call TARGET_FOLLOWUP)
endef
@ -82,8 +82,8 @@ endef
# -----------------------------------------------------------------------------
define host-generic-package
$(call PREPARE)
$(call HOST_MAKE)
$(call HOST_MAKE_INSTALL)
$(call PREPARE,$(1))
$(if $(filter $(1),$(PKG_NO_BUILD)),,$(call HOST_MAKE))
$(if $(filter $(1),$(PKG_NO_INSTALL)),,$(call HOST_MAKE_INSTALL))
$(call HOST_FOLLOWUP)
endef

6
package/pkg-individual.mk

@ -5,14 +5,14 @@
################################################################################
define INDIVIDUAL
@$(call MESSAGE,"Individual build")
@$(call MESSAGE,"Individual build and/or install")
$(foreach hook,$($(PKG)_INDIVIDUAL_HOOKS),$(call $(hook))$(sep))
endef
# -----------------------------------------------------------------------------
define individual-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call INDIVIDUAL)
$(call TARGET_FOLLOWUP)
endef
@ -20,7 +20,7 @@ endef
# -----------------------------------------------------------------------------
define host-individual-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call INDIVIDUAL)
$(call HOST_FOLLOWUP)
endef

2
package/pkg-kernel-module.mk

@ -28,7 +28,7 @@ endef
# -----------------------------------------------------------------------------
define kernel-module
$(call PREPARE)
$(call PREPARE,$(1))
$(call KERNEL_MODULE_BUILD)
$(call LINUX_RUN_DEPMOD)
$(call TARGET_FOLLOWUP)

4
package/pkg-meson.mk

@ -78,7 +78,7 @@ endef
# -----------------------------------------------------------------------------
define meson-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call TARGET_MESON_CONFIGURE)
$(call TARGET_NINJA_BUILD)
$(call TARGET_NINJA_INSTALL)
@ -122,7 +122,7 @@ endef
# -----------------------------------------------------------------------------
define host-meson-package
$(call PREPARE)
$(call PREPARE,$(1))
$(call HOST_MESON_CONFIGURE)
$(call HOST_NINJA)
$(call HOST_NINJA_INSTALL)

8
package/pkg-utils.mk

@ -15,6 +15,14 @@ PKG_PATCHES_DIR = $(PACKAGE_DIR)/$(subst host-,,$(pkgname))/patches
# -----------------------------------------------------------------------------
# PKG "control-flag" variables
PKG_NO_EXTRACT = pkg-no-extract
PKG_NO_PATCHES = pkg-no-patches
PKG_NO_BUILD = pkg-no-build
PKG_NO_INSTALL = pkg-no-install
# -----------------------------------------------------------------------------
# Compatibility variables (marked to remove)
PKG_DIR = $($(PKG)_DIR)/$($(PKG)_SUBDIR)
PKG_SOURCE = $($(PKG)_SOURCE)

Loading…
Cancel
Save