[Kbuild] Proper syntax for initramfs dependencies

From: H. Peter Anvin
Date: Sat May 20 2006 - 00:35:02 EST


This patch adjusts the generation of initramfs dependencies, so that the syntax stays correct when there are multiple files.

Signed-off-by: H. Peter Anvin <hpa@xxxxxxxxx> diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
index b1ebd64..2ac9490 100644
--- a/scripts/gen_initramfs_list.sh
+++ b/scripts/gen_initramfs_list.sh
@@ -178,7 +178,7 @@ input_file() {
print_mtime "$1" >> ${output}
cat "$1" >> ${output}
else
- grep ^file "$1" | cut -d ' ' -f 3
+ grep ^file "$1" | cut -d ' ' -f 3 | sed -e 's/$/ \\/'
fi
elif [ -d "$1" ]; then
dir_filelist "$1"