Commit b83419363eff1535309df97a4bf319c42d900a9c
Committed by
Michal Marek
1 parent
da6df879b9
Exists in
master
and in
7 other branches
kbuild: Include gen_initramfs_list.sh and the file list in the .d file
Expand the dependency set used for the initrd to include the CONFIG_INITRAMFS_SOURCE file and the generator script itself. Otherwise changing the initramfs file list does not rebuild the CPIO. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
scripts/gen_initramfs_list.sh
... | ... | @@ -202,6 +202,7 @@ |
202 | 202 | print_mtime "$1" >> ${output} |
203 | 203 | cat "$1" >> ${output} |
204 | 204 | else |
205 | + echo "$1 \\" | |
205 | 206 | cat "$1" | while read type dir file perm ; do |
206 | 207 | if [ "$type" == "file" ]; then |
207 | 208 | echo "$file \\"; |
... | ... | @@ -231,7 +232,7 @@ |
231 | 232 | case "$arg" in |
232 | 233 | "-l") # files included in initramfs - used by kbuild |
233 | 234 | dep_list="list_" |
234 | - echo "deps_initramfs := \" | |
235 | + echo "deps_initramfs := $0 \" | |
235 | 236 | shift |
236 | 237 | ;; |
237 | 238 | "-o") # generate compressed cpio image named $1 |