All of lore.kernel.org
 help / color / mirror / Atom feed
* + tools-vm-add-missing-makefile-rules.patch added to -mm tree
@ 2017-01-13 22:56 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-01-13 22:56 UTC (permalink / raw)
  To: daniel.thompson, mm-commits


The patch titled
     Subject: tools/vm: add missing Makefile rules
has been added to the -mm tree.  Its filename is
     tools-vm-add-missing-makefile-rules.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/tools-vm-add-missing-makefile-rules.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/tools-vm-add-missing-makefile-rules.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: Daniel Thompson <daniel.thompson@linaro.org>
Subject: tools/vm: add missing Makefile rules

Currently the tools/vm Makefile has a rather arbitrary implicit build
rule; page-types is the first value in TARGETS so lets just build that
one!  Additionally there is no install rule and this is needed for make -C
tools vm_install to work properly.

Provide a more sensible implicit build rule and a new install rule.

Note that the variables names used by the install rule (DESTDIR and
sbindir) are copied from prior-art in tools/power/cpupower.

Link: http://lkml.kernel.org/r/20170113165630.27541-1-daniel.thompson@linaro.org
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 tools/vm/Makefile |    8 ++++++++
 1 file changed, 8 insertions(+)

diff -puN tools/vm/Makefile~tools-vm-add-missing-makefile-rules tools/vm/Makefile
--- a/tools/vm/Makefile~tools-vm-add-missing-makefile-rules
+++ a/tools/vm/Makefile
@@ -9,6 +9,8 @@ CC = $(CROSS_COMPILE)gcc
 CFLAGS = -Wall -Wextra -I../lib/
 LDFLAGS = $(LIBS)
 
+all: $(TARGETS)
+
 $(TARGETS): $(LIBS)
 
 $(LIBS):
@@ -20,3 +22,9 @@ $(LIBS):
 clean:
 	$(RM) page-types slabinfo page_owner_sort
 	make -C $(LIB_DIR) clean
+
+sbindir ?= /usr/sbin
+
+install: all
+	install -d $(DESTDIR)$(sbindir)
+	install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)
_

Patches currently in -mm which might be from daniel.thompson@linaro.org are

tools-vm-add-missing-makefile-rules.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-13 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-13 22:56 + tools-vm-add-missing-makefile-rules.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.