From 624dbec7e1f971519be9a165b09c0b95a8ee282b Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Wed, 22 Jun 2016 21:07:36 +0200 Subject: core/pkg-generic: allow packages to declare target-finalize hooks Currently, packages using target finalize hooks must remember that they need to register their hook in TARGET_FINALIZE_HOOKS conditionally (otherwise their hook will be triggered even if the package is disabled). In order to avoid this potential mistake, this commit introduces a per-package target-finalize hook variable, in which packages can register their target-finalize hooks, with the guarantee that they will only be triggered if the package is enabled. Signed-off-by: "Yann E. MORIN" Reviewed-by: Romain Naour [Thomas: rework commit log.] Signed-off-by: Thomas Petazzoni --- docs/manual/adding-packages-hooks.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/manual') diff --git a/docs/manual/adding-packages-hooks.txt b/docs/manual/adding-packages-hooks.txt index 5b5bf6a80a..d25092ac25 100644 --- a/docs/manual/adding-packages-hooks.txt +++ b/docs/manual/adding-packages-hooks.txt @@ -77,3 +77,10 @@ others, use the following variables: * +$(SRCDIR)+: the path to the overridden source directory * +$(@D)+: the path to the build directory + +==== Target-finalize hook + +Packages may also register hooks in +LIBFOO_TARGET_FINALIZE_HOOKS+. +These hooks are run after all packages are built, but before the +filesystem images are generated. They are seldom used, and your +package probably do not need them. -- cgit v1.2.3