lkml.org 
[lkml]   [2013]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] kbuild: Do not overwrite include/config/kernel.release needlessly
    Date
    Use filechk to detect if the content changed or not.

    Signed-off-by: Michal Marek <mmarek@suse.cz>
    ---
    Makefile | 7 +++++--
    1 file changed, 5 insertions(+), 2 deletions(-)

    diff --git a/Makefile b/Makefile
    index 4e3575c..3aa232f 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -794,10 +794,13 @@ PHONY += $(vmlinux-dirs)
    $(vmlinux-dirs): prepare scripts
    $(Q)$(MAKE) $(build)=$@

    +define filechk_kernel.release
    + echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
    +endef
    +
    # Store (new) KERNELRELEASE string in include/config/kernel.release
    include/config/kernel.release: include/config/auto.conf FORCE
    - $(Q)rm -f $@
    - $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@
    + $(call filechk,kernel.release)


    # Things we need to do before we recursively start building the kernel
    --
    1.8.1.4


    \
     
     \ /
      Last update: 2013-08-27 16:21    [W:4.894 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site