git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initramfs: Use KBUILD_BUILD_TIMESTAMP for generated entries
[pandora-kernel.git]
/
scripts
/
gen_initramfs_list.sh
diff --git
a/scripts/gen_initramfs_list.sh
b/scripts/gen_initramfs_list.sh
index
4a43fe1
..
d44cf67
100644
(file)
--- a/
scripts/gen_initramfs_list.sh
+++ b/
scripts/gen_initramfs_list.sh
@@
-287,8
+287,15
@@
done
# we are carefull to delete tmp files
if [ ! -z ${output_file} ]; then
if [ -z ${cpio_file} ]; then
# we are carefull to delete tmp files
if [ ! -z ${output_file} ]; then
if [ -z ${cpio_file} ]; then
+ timestamp=
+ if test -n "$KBUILD_BUILD_TIMESTAMP"; then
+ timestamp="$(date -d"$KBUILD_BUILD_TIMESTAMP" +%s || :)"
+ if test -n "$timestamp"; then
+ timestamp="-t $timestamp"
+ fi
+ fi
cpio_tfile="$(mktemp ${TMPDIR:-/tmp}/cpiofile.XXXXXX)"
cpio_tfile="$(mktemp ${TMPDIR:-/tmp}/cpiofile.XXXXXX)"
- usr/gen_init_cpio ${cpio_list} > ${cpio_tfile}
+ usr/gen_init_cpio $
timestamp $
{cpio_list} > ${cpio_tfile}
else
cpio_tfile=${cpio_file}
fi
else
cpio_tfile=${cpio_file}
fi