lkml.org 
[lkml]   [2022]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v2 5/7] objtool: Enable objtool to run only on files with ftrace enabled
    Date
    From: Sathvika Vasireddy <sv@linux.ibm.com>

    This patch makes sure objtool runs only on the object files
    that have ftrace enabled, instead of running on all the object
    files.

    Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
    Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
    Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
    ---
    scripts/Makefile.build | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/scripts/Makefile.build b/scripts/Makefile.build
    index 2e0c3f9c1459..06ceffd92921 100644
    --- a/scripts/Makefile.build
    +++ b/scripts/Makefile.build
    @@ -258,8 +258,8 @@ else
    # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file
    # 'OBJECT_FILES_NON_STANDARD_foo.o := 'n': override directory skip for a file

    -$(obj)/%.o: objtool-enabled = $(if $(filter-out y%, \
    - $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n),y)
    +$(obj)/%.o: objtool-enabled = $(and $(if $(filter-out y%, $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n),y), \
    + $(if $(findstring $(strip $(CC_FLAGS_FTRACE)),$(_c_flags)),y),y)

    endif

    --
    2.35.3
    \
     
     \ /
      Last update: 2022-05-24 15:19    [W:6.595 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site