[Kbuild] Proper syntax for initramfs dependencies

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

 



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 <[email protected]>
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"

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux