]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
Fix the missing file, initramfs_data.S, from the 2.6.30 merge xilinx_v2.6.30
authorJohn Linn <linnj@xaqlinnj41.(none)>
Fri, 19 Jun 2009 17:05:01 +0000 (11:05 -0600)
committerJohn Linn <linnj@xaqlinnj41.(none)>
Fri, 19 Jun 2009 17:11:18 +0000 (11:11 -0600)
Somehow the file got deleted during the merge of 2.6.30. This commit
adds the file back in. Without this file the kernel won't build. This
problem doesn't seem to show up til a new clone of the tree is done.

Signed-off-by: John Linn <john.linn@xilinx.com>
usr/initramfs_data.S [new file with mode: 0644]

diff --git a/usr/initramfs_data.S b/usr/initramfs_data.S
new file mode 100644 (file)
index 0000000..7c6973d
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+  initramfs_data includes the compressed binary that is the
+  filesystem used for early user space.
+  Note: Older versions of "as" (prior to binutils 2.11.90.0.23
+  released on 2001-07-14) dit not support .incbin.
+  If you are forced to use older binutils than that then the
+  following trick can be applied to create the resulting binary:
+
+
+  ld -m elf_i386  --format binary --oformat elf32-i386 -r \
+  -T initramfs_data.scr initramfs_data.cpio.gz -o initramfs_data.o
+   ld -m elf_i386  -r -o built-in.o initramfs_data.o
+
+  initramfs_data.scr looks like this:
+SECTIONS
+{
+       .init.ramfs : { *(.data) }
+}
+
+  The above example is for i386 - the parameters vary from architectures.
+  Eventually look up LDFLAGS_BLOB in an older version of the
+  arch/$(ARCH)/Makefile to see the flags used before .incbin was introduced.
+
+  Using .incbin has the advantage over ld that the correct flags are set
+  in the ELF header, as required by certain architectures.
+*/
+
+.section .init.ramfs,"a"
+.incbin "usr/initramfs_data.cpio"
+