initramfs fix
PATCH 1/1 initramfs fix
Hi,
I have had a little problem with initramfs, Finally I have
found out that the problem is that when I make a flash image I do an objcopy of the kernel image to get something which can be flashed. Unfortunately objcopy thinks that the .init.initramfs is a useless section and throws it away because it does not have the alloc flag set. Here is a fix.
/Brian
Index: usr/Makefile
===================================================================
RCS file: /home/cvs/linux/usr/Makefile,v
retrieving revision 1.1
Makefile +1 -0
@@ -17,6 +17,7 @@ $(OBJCOPY) $(ARCHBLOBLFLAGS) \ --only-section=.init.initramfs \ --add-section=.init.initramfs=$(obj)/initramfs_data.cpio.gz \ + --set-section-flags .init.initramfs=alloc \ $(obj)/empty.o $(obj)/initramfs_data.o $(STRIP) -s $(obj)/initramfs_data.o