[POWERPC] Remove QE header files from lite5200.c
[powerpc.git] / scripts / gen_initramfs_list.sh
index 56b3bed..4c723fd 100644 (file)
@@ -158,7 +158,7 @@ unknown_option() {
 }
 
 list_header() {
-       echo "deps_initramfs := \\"
+       :
 }
 
 header() {
@@ -200,7 +200,11 @@ input_file() {
                        print_mtime "$1" >> ${output}
                        cat "$1"         >> ${output}
                else
-                       grep ^file "$1" | cut -d ' ' -f 3
+                       cat "$1" | while read type dir file perm ; do
+                               if [ "$type" == "file" ]; then
+                                       echo "$file \\";
+                               fi
+                       done
                fi
        elif [ -d "$1" ]; then
                dir_filelist "$1"
@@ -223,6 +227,7 @@ arg="$1"
 case "$arg" in
        "-l")   # files included in initramfs - used by kbuild
                dep_list="list_"
+               echo "deps_initramfs := \\"
                shift
                ;;
        "-o")   # generate gzipped cpio image named $1