xfs
[Top] [All Lists]

[PATCH 1/1] Fix the ltp Makefile to allow for installation of all non-c

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/1] Fix the ltp Makefile to allow for installation of all non-c (scripts) files
From: Akshay Lal <akshaylal@xxxxxxxxxx>
Date: Fri, 1 Jul 2011 13:52:43 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1309553595; bh=/F4LpsdaHV1PPuU53Fuzt73xKJE=; h=MIME-Version:Reply-To:From:Date:Message-ID:Subject:To: Content-Type; b=ACUPzKVEIKTY83UkD8hwiyEB490o0pZqAIvCOo3+k3PJQa9KtjRnrr0RZHeAvC4Ub HjAEf5MZb0n2HM4+LikyA==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; bh=0TcFf1MrFBubdVmqL3V1/O/NsDf21Jr1jE5ZmStjQXc=; b=aPkCmRJsFWkpy0yDwsKzRssAbERQRLuw//mlMbzhohHa/k5vkQH2DMH6/EmGH01Z3G GTcSI7NKJNqCkmIDHusw==
Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:mime-version:reply-to:from:date:message-id: subject:to:content-type:x-system-of-record; b=mUYzY35ngJ4kjiZf68jk1unGwKXnI+3WXFUfp69sUlE1SzB2fzqWs5nmPHl5BVTAT 6rdubnHD6qaG/L7LdZUdg==
Reply-to: alal@xxxxxxxxxx
Current the Makefile only builds the .c files and installs
them in the $INSTALL path. However, the ltp directory contains a shell script,
which doen't get copied over (installed) when a "make install"is invoked.

This behaviour causes test 080 to fail since it requires rwtest.sh to be
present in the ltp/ directory.

Tested: Updated the Makefile and ran a static build script & test
080.

Signed-off-by: Akshay Lal <akshaylal@xxxxxxxxxx>
---
 ltp/Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ltp/Makefile b/ltp/Makefile
index 32cd380..d47247b 100644
--- a/ltp/Makefile
+++ b/ltp/Makefile
@@ -6,6 +6,7 @@ TOPDIR = ..
 include $(TOPDIR)/include/builddefs

 TARGETS = doio fsstress fsx growfiles iogen
+SCRIPTS = rwtest.sh
 CFILES = $(TARGETS:=.c)
 HFILES = doio.h
 LDIRT = $(TARGETS)
@@ -44,5 +45,6 @@ $(TARGETS): $(LIBTEST)
 install: default
       $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/ltp
       $(INSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/ltp
+       $(INSTALL) -m 755 $(SCRIPTS) $(PKG_LIB_DIR)/ltp

 -include .dep
--
1.7.3.1

<Prev in Thread] Current Thread [Next in Thread>