linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild: Include gen_initramfs_list.sh and the file list in the .d file
@ 2010-03-22 22:49 Jason Gunthorpe
  2010-03-23 12:08 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Gunthorpe @ 2010-03-22 22:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sam Ravnborg

Expand the dependency set used for the initrd to include the
CONFIG_INITRAMFS_SOURCE file and the generator script itself.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
---
 scripts/gen_initramfs_list.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Otherwise changing the initramfs file list does not rebuild the CPIO..

diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
index 76af5f9..f3b5c05 100644
--- a/scripts/gen_initramfs_list.sh
+++ b/scripts/gen_initramfs_list.sh
@@ -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 \\";
@@ -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
-- 
1.5.4.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: Include gen_initramfs_list.sh and the file list in the .d file
  2010-03-22 22:49 [PATCH] kbuild: Include gen_initramfs_list.sh and the file list in the .d file Jason Gunthorpe
@ 2010-03-23 12:08 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2010-03-23 12:08 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: linux-kernel, Sam Ravnborg

On 22.3.2010 23:49, Jason Gunthorpe wrote:
> Expand the dependency set used for the initrd to include the
> CONFIG_INITRAMFS_SOURCE file and the generator script itself.
> 
> Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
> ---
>  scripts/gen_initramfs_list.sh |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> Otherwise changing the initramfs file list does not rebuild the CPIO..

Thanks, applied.

Michal
> 
> diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
> index 76af5f9..f3b5c05 100644
> --- a/scripts/gen_initramfs_list.sh
> +++ b/scripts/gen_initramfs_list.sh
> @@ -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 \\";
> @@ -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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-23 12:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22 22:49 [PATCH] kbuild: Include gen_initramfs_list.sh and the file list in the .d file Jason Gunthorpe
2010-03-23 12:08 ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).