Skip to content

Commit

Permalink
kbuild: Include gen_initramfs_list.sh and the file list in the .d file
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
jgunthorpe authored and michal42 committed Mar 23, 2010
1 parent da6df87 commit b834193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/gen_initramfs_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ input_file() {
print_mtime "$1" >> ${output}
cat "$1" >> ${output}
else
echo "$1 \\"
cat "$1" | while read type dir file perm ; do
if [ "$type" == "file" ]; then
echo "$file \\";
Expand Down Expand Up @@ -231,7 +232,7 @@ arg="$1"
case "$arg" in
"-l") # files included in initramfs - used by kbuild
dep_list="list_"
echo "deps_initramfs := \\"
echo "deps_initramfs := $0 \\"
shift
;;
"-o") # generate compressed cpio image named $1
Expand Down

0 comments on commit b834193

Please sign in to comment.