aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-10-09 23:49:48 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2013-10-10 11:23:44 -0300
commit518daf4fd1f3a08e2624375079bc9fc93958ca0d (patch)
treee5dc9df364fa2b50257ecf4f40ae21e2341f5631
parent16535abe3a6823b0abd01c0dbc8f64aa43c58d16 (diff)
downloadkmod-518daf4fd1f3a08e2624375079bc9fc93958ca0d.tar.gz
Makefile.am: add mkdir testsuite
If we are note building in the existing source tree and have disabled dependency-tracking then the testsuite directory is not created during the configure phase and will not exist when the cp of ROOTFS_PRISTINE occurs, thus causing an error and fail.
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3ec70d2..1c1e5f7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -130,7 +130,7 @@ endif
ROOTFS = testsuite/rootfs
ROOTFS_PRISTINE = $(top_srcdir)/testsuite/rootfs-pristine
-CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && \
+CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && mkdir -p $(dir $(ROOTFS)) && \
cp -r $(ROOTFS_PRISTINE) $(ROOTFS) && \
touch testsuite/stamp-rootfs && \
find $(ROOTFS) -type d -exec chmod +w {} \; )