buildtar: Add ARCH to the archive name
authorBorislav Petkov <bp@suse.de>
Wed, 6 Mar 2013 08:05:47 +0000 (09:05 +0100)
committerMichal Marek <mmarek@suse.cz>
Mon, 8 Apr 2013 14:04:28 +0000 (16:04 +0200)
When dealing with multiple sub-arches (like 32- and 64-bit on x86, for
example) generating a bunch of kernel tar archives with the same name
but for different sub-arches could get confusing and error-prone. Also,
the build process could overwrite otherwise unrelated builds and you
probably don't want that. So, add the architecture to the archive name
for more clarity and less shoot-yourself-in-the-foot practices.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/buildtar

index 62d8234f87876c30f3c78138db7edbeb0685f8c5..cdd9bb909bcda05efd16ba21f6700316194f6116 100644 (file)
@@ -16,7 +16,7 @@ set -e
 # Some variables and settings used throughout the script
 #
 tmpdir="${objtree}/tar-install"
-tarball="${objtree}/linux-${KERNELRELEASE}.tar"
+tarball="${objtree}/linux-${KERNELRELEASE}-${ARCH}.tar"
 
 
 #