[PATCH 1/2] scripts: buildtar fix build w/o modules v2

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

 



If build configured w/o modules script fails because lib/ is not exit.

Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>
---
 scripts/package/buildtar | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index e046bff..27a2ed3 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -17,7 +17,7 @@ set -e
 #
 tmpdir="${objtree}/tar-install"
 tarball="${objtree}/linux-${KERNELRELEASE}-${ARCH}.tar"
-
+tarball_dirs="boot"
 
 #
 # Figure out how to compress, if requested at all
@@ -58,6 +58,7 @@ mkdir -p -- "${tmpdir}/boot"
 #
 if grep -q '^CONFIG_MODULES=y' "${objtree}/.config"; then
 	make ARCH="${ARCH}" O="${objtree}" KBUILD_SRC= INSTALL_MOD_PATH="${tmpdir}" modules_install
+	tarball_dirs="${tarball_dirs} lib"
 fi
 
 
@@ -129,7 +130,7 @@ esac
 	if tar --owner=root --group=root --help >/dev/null 2>&1; then
 		opts="--owner=root --group=root"
 	fi
-	tar cf - -C "$tmpdir" boot/ lib/ $opts | ${compress} > "${tarball}${file_ext}"
+	tar cf - -C "$tmpdir" "$tarball_dirs" $opts | ${compress} > "${tarball}${file_ext}"
 )
 
 echo "Tarball successfully created in ${tarball}${file_ext}"
-- 
2.7.4

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



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux