[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arch
Subject:    Re: [PATCH 3/3] kbuild: add arch specific post-link Makefile
From:       Nicholas Piggin <npiggin () gmail ! com>
Date:       2016-08-24 13:32:08
Message-ID: 20160824233208.1b068a89 () roar ! ozlabs ! ibm ! com
[Download RAW message or body]

On Wed, 24 Aug 2016 22:29:21 +1000
Nicholas Piggin <npiggin@gmail.com> wrote:

> Allow architectures to create arch/xxx/Makefile.postlink with targets
> for vmlinux, modules.ko, and clean, which will be invoked after final
> linking of vmlinux and modules.
> 
> powerpc will use this to check vmlinux linker relocations for sanity,
> and may use it to fix up alternate instruction patch branch addresses.
> 
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>


> diff --git a/arch/Kconfig b/arch/Kconfig
> index 94138e5..c8a1677 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -424,6 +424,13 @@ config CC_STACKPROTECTOR_STRONG
>  
>  endchoice
>  
> +config BUILD_ARCH_POSTLINK
> +	bool
> +	help
> +	  Select this if the architecture wants to have a Makefile invoked
> +	  on modules and vmlinux after they are linked. The architecture
> +	  must provide arch/?/Makefile.postlink
> +
>  config THIN_ARCHIVES
>  	bool
>  	help

Argh! Sorry, this thing crept back in again. No other reference to
BUILD_ARCH_POSTLINK in the patch, so it won't invalidate testing
to just remove the hunk.

Thanks,
Nick
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic