lkml.org 
[lkml]   [2004]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Weird problem when compiling kernel
On Fri, Sep 03, 2004 at 10:32:45AM -0300, Mart?n Chikilian wrote:
>
> >
> rm -rf .tmp_versions
> mkdir -p .tmp_versions
> make -f scripts/Makefile.build obj=scripts/basic
> make -f scripts/Makefile.build obj=scripts
> make -f scripts/Makefile.build obj=arch/i386/kernel
> arch/i386/kernel/asm-offsets.s
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
> make -f scripts/Makefile.build obj=init
> make -f scripts/Makefile.build obj=usr
> gcc -Wp,-MD,usr/.gen_init_cpio.d -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -o usr/gen_init_cpio usr/gen_init_cpio.c
> ./usr/gen_init_cpio > usr/initramfs_data.cpio

Here I expected gzip to be called???

> gcc -Wp,-MD,usr/.initramfs_data.o.d -nostdinc -iwithprefix include
> -D__KERNEL__ -Iinclude -D__ASSEMBLY__
> -Iinclude/asm-i386/mach-default -c -o usr/initramfs_data.o
> usr/initramfs_data.S
> ld -m elf_i386 -r -o usr/built-in.o

And this looks pretty veird to me also. I should have one inputfile listed.

> ld: no input files
> scripts/Makefile.build:229: *** [usr/built-in.o] Error 1
> Makefile:600: *** [usr] Error 2
>

Plase apply following patch and post output of:
rm usr/*o
make V=1

Apply patch using:

$ patch -p1 < my_patch

when current directory is root of kernel tree.

Sam

===== usr/Makefile 1.10 vs edited =====
--- 1.10/usr/Makefile 2004-08-10 21:42:40 +02:00
+++ edited/usr/Makefile 2004-09-03 21:22:16 +02:00
@@ -18,15 +18,20 @@
# Commented out for now
# initramfs-y := $(obj)/root/hello

+$(warning obj-y=$(obj-y))
+$(warning obj=$(obj))
+
quiet_cmd_cpio = CPIO $@
cmd_cpio = ./$< > $@

$(obj)/initramfs_data.cpio: $(obj)/gen_init_cpio $(initramfs-y) FORCE
+ @echo cpio: $@ - $^ - $?
$(call if_changed,cpio)

targets += initramfs_data.cpio

$(obj)/initramfs_data.cpio.gz: $(obj)/initramfs_data.cpio FORCE
+ @echo gzip: $@ - $^ - $?
$(call if_changed,gzip)

targets += initramfs_data.cpio.gz
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.062 / U:0.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site