Re: [PATCH 2/8] kbuild: Support for Symbols.list creation

From: Joao Moreira
Date: Mon Sep 04 2017 - 03:23:47 EST




On 08/31/2017 12:24 PM, Joe Lawrence wrote:
Hi Joao,

Hi Joe and Josh,

Thanks for the quick feedback, I'll be looking forward for your comments once you have the change to dig deeper :). I'll apply all typo-fixes, add klpclean to the PHONY targets and change the quiet_cmd invocation as suggested in v2.

For identifying livepatches during the build process, a flag variable
LIVEPATCH_$(basetarget).o is considered in scripts/Makefile.build. This
way, set this flag for the livepatch sample Makefile in
samples/livepatch/Makefile.

I've never tried building a livepatch out of tree (is that even
possible?) but does this make it any more/less harder?

Tbh, I never had tried it before, so I just emulated the process and it was simple and successful. All it required in addition to what is regular, was the introduction of the "LIVEPATCH_($bastarget).o := y" into the Makefile. All else was implicitly handled by Kbuild.

Best,
Joao