From: "Wang, Yalin" <Yalin.Wang@sonymobile.com>
To: "'acme@redhat.com'" <acme@redhat.com>,
"'bp@suse.de'" <bp@suse.de>,
"'mingo@kernel.org'" <mingo@kernel.org>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
"'linux-mm@kvack.org'" <linux-mm@kvack.org>,
"'linux-arm-kernel@lists.infradead.org'"
<linux-arm-kernel@lists.infradead.org>
Subject: [PATCH V2] fix build error for vm tools
Date: Tue, 9 Dec 2014 13:23:27 +0800 [thread overview]
Message-ID: <35FD53F367049845BC99AC72306C23D103E688B313FD@CNBJMBX05.corpusers.net> (raw)
In-Reply-To: <35FD53F367049845BC99AC72306C23D103E688B313FC@CNBJMBX05.corpusers.net>
This patch fix the build error when make like this:
make O=/xx/x vm
use $(OUTPUT) to generate to the right place.
Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
---
tools/vm/Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tools/vm/Makefile b/tools/vm/Makefile
index 3d907da..2847345 100644
--- a/tools/vm/Makefile
+++ b/tools/vm/Makefile
@@ -1,22 +1,24 @@
# Makefile for vm tools
#
+include ../scripts/Makefile.include
TARGETS=page-types slabinfo
LIB_DIR = ../lib/api
-LIBS = $(LIB_DIR)/libapikfs.a
+LIBS = $(OUTPUT)../lib/api/libapikfs.a
CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall -Wextra -I../lib/
LDFLAGS = $(LIBS)
+all: $(TARGETS)
$(TARGETS): $(LIBS)
$(LIBS):
- make -C $(LIB_DIR)
+ $(call descend,../lib/api libapikfs.a)
%: %.c
- $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $(OUTPUT)$@ $< $(LDFLAGS)
clean:
- $(RM) page-types slabinfo
+ $(RM) $(OUTPUT)page-types $(OUTPUT)slabinfo
make -C $(LIB_DIR) clean
--
2.1.3
WARNING: multiple messages have this Message-ID (diff)
From: "Wang, Yalin" <Yalin.Wang@sonymobile.com>
To: "'acme@redhat.com'" <acme@redhat.com>,
"'bp@suse.de'" <bp@suse.de>,
"'mingo@kernel.org'" <mingo@kernel.org>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
"'linux-mm@kvack.org'" <linux-mm@kvack.org>,
"'linux-arm-kernel@lists.infradead.org'"
<linux-arm-kernel@lists.infradead.org>
Subject: [PATCH V2] fix build error for vm tools
Date: Tue, 9 Dec 2014 13:23:27 +0800 [thread overview]
Message-ID: <35FD53F367049845BC99AC72306C23D103E688B313FD@CNBJMBX05.corpusers.net> (raw)
In-Reply-To: <35FD53F367049845BC99AC72306C23D103E688B313FC@CNBJMBX05.corpusers.net>
This patch fix the build error when make like this:
make O=/xx/x vm
use $(OUTPUT) to generate to the right place.
Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
---
tools/vm/Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tools/vm/Makefile b/tools/vm/Makefile
index 3d907da..2847345 100644
--- a/tools/vm/Makefile
+++ b/tools/vm/Makefile
@@ -1,22 +1,24 @@
# Makefile for vm tools
#
+include ../scripts/Makefile.include
TARGETS=page-types slabinfo
LIB_DIR = ../lib/api
-LIBS = $(LIB_DIR)/libapikfs.a
+LIBS = $(OUTPUT)../lib/api/libapikfs.a
CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall -Wextra -I../lib/
LDFLAGS = $(LIBS)
+all: $(TARGETS)
$(TARGETS): $(LIBS)
$(LIBS):
- make -C $(LIB_DIR)
+ $(call descend,../lib/api libapikfs.a)
%: %.c
- $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $(OUTPUT)$@ $< $(LDFLAGS)
clean:
- $(RM) page-types slabinfo
+ $(RM) $(OUTPUT)page-types $(OUTPUT)slabinfo
make -C $(LIB_DIR) clean
--
2.1.3
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Yalin.Wang@sonymobile.com (Wang, Yalin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2] fix build error for vm tools
Date: Tue, 9 Dec 2014 13:23:27 +0800 [thread overview]
Message-ID: <35FD53F367049845BC99AC72306C23D103E688B313FD@CNBJMBX05.corpusers.net> (raw)
In-Reply-To: <35FD53F367049845BC99AC72306C23D103E688B313FC@CNBJMBX05.corpusers.net>
This patch fix the build error when make like this:
make O=/xx/x vm
use $(OUTPUT) to generate to the right place.
Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
---
tools/vm/Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tools/vm/Makefile b/tools/vm/Makefile
index 3d907da..2847345 100644
--- a/tools/vm/Makefile
+++ b/tools/vm/Makefile
@@ -1,22 +1,24 @@
# Makefile for vm tools
#
+include ../scripts/Makefile.include
TARGETS=page-types slabinfo
LIB_DIR = ../lib/api
-LIBS = $(LIB_DIR)/libapikfs.a
+LIBS = $(OUTPUT)../lib/api/libapikfs.a
CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall -Wextra -I../lib/
LDFLAGS = $(LIBS)
+all: $(TARGETS)
$(TARGETS): $(LIBS)
$(LIBS):
- make -C $(LIB_DIR)
+ $(call descend,../lib/api libapikfs.a)
%: %.c
- $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+ $(CC) $(CFLAGS) -o $(OUTPUT)$@ $< $(LDFLAGS)
clean:
- $(RM) page-types slabinfo
+ $(RM) $(OUTPUT)page-types $(OUTPUT)slabinfo
make -C $(LIB_DIR) clean
--
2.1.3
next prev parent reply other threads:[~2014-12-09 5:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 3:36 [PATCH] fix build error for vm tools Wang, Yalin
2014-12-09 3:36 ` Wang, Yalin
2014-12-09 3:36 ` Wang, Yalin
2014-12-09 5:23 ` Wang, Yalin [this message]
2014-12-09 5:23 ` [PATCH V2] " Wang, Yalin
2014-12-09 5:23 ` Wang, Yalin
2014-12-09 6:39 ` [PATCH V3] " Wang, Yalin
2014-12-09 6:39 ` Wang, Yalin
2014-12-09 6:39 ` Wang, Yalin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35FD53F367049845BC99AC72306C23D103E688B313FD@CNBJMBX05.corpusers.net \
--to=yalin.wang@sonymobile.com \
--cc=acme@redhat.com \
--cc=bp@suse.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.