+ scripts-gdb-rebuild-constantspy-on-dependancy-change.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: scripts/gdb: rebuild constants.py on dependancy change
has been added to the -mm tree.  Its filename is
     scripts-gdb-rebuild-constantspy-on-dependancy-change.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/scripts-gdb-rebuild-constantspy-on-dependancy-change.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/scripts-gdb-rebuild-constantspy-on-dependancy-change.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Kieran Bingham <kieran@xxxxxxxxxxxxxxx>
Subject: scripts/gdb: rebuild constants.py on dependancy change

The autogenerated constants.py file was only being built on the initial
call, and if the constants.py.in file changed.  As we are utilising the
CPP hooks, we can successfully use the call if_changed_dep rules to
determine when to rebuild the file based on it's inclusions.

Link: http://lkml.kernel.org/r/1467127337-11135-3-git-send-email-kieran@xxxxxxxxxxx
Signed-off-by: Kieran Bingham <kieran@xxxxxxxxxxx>
Reported-by: Jan Kiszka <jan.kiszka@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 scripts/gdb/linux/Makefile |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff -puN scripts/gdb/linux/Makefile~scripts-gdb-rebuild-constantspy-on-dependancy-change scripts/gdb/linux/Makefile
--- a/scripts/gdb/linux/Makefile~scripts-gdb-rebuild-constantspy-on-dependancy-change
+++ a/scripts/gdb/linux/Makefile
@@ -13,8 +13,9 @@ quiet_cmd_gen_constants_py = GEN     $@
 	$(CPP) -E -x c -P $(c_flags) $< > $@ ;\
 	sed -i '1,/<!-- end-c-headers -->/d;' $@
 
-$(obj)/constants.py: $(SRCTREE)/$(obj)/constants.py.in
-	$(call if_changed,gen_constants_py)
+targets += constants.py
+$(obj)/constants.py: $(SRCTREE)/$(obj)/constants.py.in FORCE
+	$(call if_changed_dep,gen_constants_py)
 
 build_constants_py: $(obj)/constants.py
 	@:
_

Patches currently in -mm which might be from kieran@xxxxxxxxxxxxxxx are

scripts-gdb-silence-nothing-to-do-message.patch
scripts-gdb-rebuild-constantspy-on-dependancy-change.patch
revert-scripts-gdb-add-a-radix-tree-parser.patch
revert-scripts-gdb-add-documentation-example-for-radix-tree.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]
  Powered by Linux