[Buildroot] [RFC PATCH v5 06/11] pkg-generic: add GLOBAL_INSTRUMENTATION_HOOKS for rpath sanitation

Arnout Vandecappelle arnout at mind.be
Mon Jul 3 21:47:58 UTC 2017



On 30-06-17 10:37, Wolfgang Grandegger wrote:
> The hook calls the script "fix-rpath" at the end of the installation
> step.
> 
> Signed-off-by: Wolfgang Grandegger <wg at grandegger.com>

 Looks good to me. I'm not adding my reviewed-by yet because it will still
change when the fix-rpath arguments change.

 Regards,
 Arnout

> ---
>  package/pkg-generic.mk | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
> index 825ab0c..8812193 100644
> --- a/package/pkg-generic.mk
> +++ b/package/pkg-generic.mk
> @@ -139,6 +139,16 @@ define step_check_build_dir
>  endef
>  GLOBAL_INSTRUMENTATION_HOOKS += step_check_build_dir
>  
> +define step_sanitize_rpath
> +	$(if $(filter install-host-end,$(2)-$(1)),\
> +		support/scripts/fix-rpath "host" $($(PKG)_DIR)/.br_host_filelist)
> +	$(if $(filter install-staging-end,$(2)-$(1)),\
> +		support/scripts/fix-rpath "staging" $($(PKG)_DIR)/.br_staging_filelist)
> +	$(if $(filter install-target-end,$(2)-$(1)),\
> +		support/scripts/fix-rpath "target" $($(PKG)_DIR)/.br_target_filelist)
> +endef
> +GLOBAL_INSTRUMENTATION_HOOKS += step_sanitize_rpath
> +
>  # User-supplied script
>  ifneq ($(BR2_INSTRUMENTATION_SCRIPTS),)
>  define step_user
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF


More information about the buildroot mailing list