I see this:
$ make O=../build/i386/linux-2.6.10-rc1 V=1
...
CHK include/linux/compile.h
make -f /usr/src/linux-2.5-import/scripts/Makefile.build obj=usr
echo Using shipped usr/initramfs_list
Using shipped usr/initramfs_list
./usr/gen_init_cpio usr/initramfs_list > usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory
because usr/Makefile is trying to access $(obj)/usr/initramfs_list
instead of $(src)/usr/initramfs_list.
Here's a (probably incorrect) patch:
Signed-off-by: Peter Chubb.
===== usr/Makefile 1.12 vs edited =====
--- 1.12/usr/Makefile 2004-10-20 18:37:03 +10:00
+++ edited/usr/Makefile 2004-10-25 21:22:23 +10:00
@@ -8,7 +8,7 @@
# If you want a different list of files in the initramfs_data.cpio
# then you can either overwrite the cpio_list in this directory
# or set INITRAMFS_LIST to another filename.
-INITRAMFS_LIST := $(obj)/initramfs_list
+INITRAMFS_LIST := $(KBUILD_SRC)/usr/initramfs_list
# initramfs_data.o contains the initramfs_data.cpio.gz image.
# The image is included using .incbin, a dependency which is not
On Mon, 2004-10-25 at 21:24 +1000, Peter Chubb wrote:
>
> I see this:
>
> $ make O=../build/i386/linux-2.6.10-rc1 V=1
> ...
> CHK include/linux/compile.h
> make -f /usr/src/linux-2.5-import/scripts/Makefile.build obj=usr
> echo Using shipped usr/initramfs_list
> Using shipped usr/initramfs_list
> ./usr/gen_init_cpio usr/initramfs_list > usr/initramfs_data.cpio
> ERROR: unable to open 'usr/initramfs_list': No such file or directory
>
> because usr/Makefile is trying to access $(obj)/usr/initramfs_list
> instead of $(src)/usr/initramfs_list.
>
> Here's a (probably incorrect) patch:
>
> Signed-off-by: Peter Chubb.
>
> ===== usr/Makefile 1.12 vs edited =====
> --- 1.12/usr/Makefile 2004-10-20 18:37:03 +10:00
> +++ edited/usr/Makefile 2004-10-25 21:22:23 +10:00
> @@ -8,7 +8,7 @@
> # If you want a different list of files in the initramfs_data.cpio
> # then you can either overwrite the cpio_list in this directory
> # or set INITRAMFS_LIST to another filename.
> -INITRAMFS_LIST := $(obj)/initramfs_list
> +INITRAMFS_LIST := $(KBUILD_SRC)/usr/initramfs_list
>
> # initramfs_data.o contains the initramfs_data.cpio.gz image.
> # The image is included using .incbin, a dependency which is not
> -
initramfs_list is modified, so it should be in the output dir. There
are a few other patches floating around that fixes this properly.
Cheers,
--
Martin Schlemmer