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>
This commit is contained in:
parent
da6df879b9
commit
b83419363e
1 changed files with 2 additions and 1 deletions
|
@ -202,6 +202,7 @@ input_file() {
|
||||||
print_mtime "$1" >> ${output}
|
print_mtime "$1" >> ${output}
|
||||||
cat "$1" >> ${output}
|
cat "$1" >> ${output}
|
||||||
else
|
else
|
||||||
|
echo "$1 \\"
|
||||||
cat "$1" | while read type dir file perm ; do
|
cat "$1" | while read type dir file perm ; do
|
||||||
if [ "$type" == "file" ]; then
|
if [ "$type" == "file" ]; then
|
||||||
echo "$file \\";
|
echo "$file \\";
|
||||||
|
@ -231,7 +232,7 @@ arg="$1"
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
"-l") # files included in initramfs - used by kbuild
|
"-l") # files included in initramfs - used by kbuild
|
||||||
dep_list="list_"
|
dep_list="list_"
|
||||||
echo "deps_initramfs := \\"
|
echo "deps_initramfs := $0 \\"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
"-o") # generate compressed cpio image named $1
|
"-o") # generate compressed cpio image named $1
|
||||||
|
|
Loading…
Reference in a new issue