From 37f94817a390b3bc66238bccd04906a2adc75949 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 18 Jun 2022 12:02:58 +0200 Subject: [PATCH] - introduce individual packages --- make/buildsystem-helpers.mk | 9 +++++++++ package/Makefile.in | 1 + package/pkg-individual.mk | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 package/pkg-individual.mk diff --git a/make/buildsystem-helpers.mk b/make/buildsystem-helpers.mk index 8e2ebe08..0a8c82ff 100644 --- a/make/buildsystem-helpers.mk +++ b/make/buildsystem-helpers.mk @@ -152,6 +152,15 @@ endef # ----------------------------------------------------------------------------- +# individual build +define INDIVIDUAL + @$(call MESSAGE,"Individual build") + $(foreach hook,$($(PKG)_INDIVIDUAL_HOOKS),$(call $(hook))$(sep)) + $(TOUCH) +endef + +# ----------------------------------------------------------------------------- + # follow-up build define HOST_FOLLOWUP @$(call MESSAGE,"Follow-up build") diff --git a/package/Makefile.in b/package/Makefile.in index 5638855d..c6bd37d9 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -27,4 +27,5 @@ MAKEFLAGS += --no-print-directory include package/pkg-autotools.mk include package/pkg-cmake.mk +include package/pkg-individual.mk include package/pkg-python.mk diff --git a/package/pkg-individual.mk b/package/pkg-individual.mk new file mode 100644 index 00000000..f2a3184a --- /dev/null +++ b/package/pkg-individual.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# Individual packages +# +################################################################################ + +define individual-package + $(call PREPARE) + $(call INDIVIDUAL) + $(call TARGET_FOLLOWUP) +endef + +define host-individual-package + $(call PREPARE) + $(call INDIVIDUAL) + $(call HOST_FOLLOWUP) +endef