Changeset 2125
- Timestamp:
- 10/21/07 08:45:04 (1 year ago)
- Files:
-
- branches/minimal/Makefile (modified) (2 diffs)
- branches/minimal/doc/lfscd-remastering-howto.txt (modified) (4 diffs)
- branches/minimal/isolinux/isolinux.cfg (modified) (1 diff)
- branches/minimal/packages/initramfs/Makefile (modified) (2 diffs)
- branches/minimal/packages/linux/Makefile (modified) (1 diff)
- branches/minimal/packages/linux64/Makefile (modified) (2 diffs)
- branches/minimal/packages/syslinux/Makefile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/minimal/Makefile
r2113 r2125 287 287 ch-hibernate-script ch-slang ch-mc \ 288 288 ch-fuse ch-dosfstools ch-ntfsprogs ch-libaal ch-reiser4progs \ 289 ch-bin86 ch-lilo ch-syslinux ch-scsi-firmware ch-net-firmware ch-linux32 289 ch-bin86 ch-lilo ch-syslinux ch-scsi-firmware ch-net-firmware \ 290 ch-linux32 ch-initramfs 290 291 ifeq ($(CD_ARCH),x86) 291 292 make ch-grub … … 295 296 endif 296 297 make ch-linux64 297 make ch-initramfs298 298 make update-caches 299 299 branches/minimal/doc/lfscd-remastering-howto.txt
r2052 r2125 16 16 17 17 For LFS LiveCD 6.2-x, see the old "lfscd-remastering-howto-6.2.txt" hint. 18 19 For LFS LiveCD 6.3-rX with x<2124, see the old "lfscd-remastering-howto-6.3-old.txt" hint. 18 20 19 21 HINT: … … 97 99 additional packages you want. Modify other files as necessary. 98 100 99 Check out the initramfs files: 100 svn co svn://svn.linuxfromscratch.org/livecd/trunk/packages/initramfs 101 102 Remove the "include $(ROOT)/scripts/functions" and 103 "cp initramfs_data.cpio.gz /boot/isolinux/initramfs_data.cpio.gz" lines 104 from the Makefile. Generate the initramfs image for your CD: 101 Generate initramfs images for your CD by running the create-initramfs command 102 for each kernel. This command accepts the following parameters: the LiveCD 103 version, the kernel version, and the name of the initramfs file to create. 105 104 106 105 For x86: 107 make compile-stage2 VERSION="x86-6.3-custom" LINKER=ld-linux.so.2 106 create-initramfs x86-6.3-custom 2.6.22.5 initramfs_data.cpio.gz 107 create-initramfs x86-6.3-custom 2.6.22.5-64bit initramfs_data64.cpio.gz 108 108 109 109 For x86_64: 110 make compile-stage2 VERSION="x86_64-6.3-custom" \ 111 LINKER=ld-linux-x86-64.so.2 64bit=true 110 create-initramfs x86_64-6.3-custom 2.6.22.5-64bit initramfs_data64.cpio.gz 112 111 113 112 (you can replace the "6.3-custom" with your own string). This produces the 114 initramfs_data.cpio.gz file in the current directory. Copy it to /build: 115 cp initramfs_data.cpio.gz /build 113 initramfs_data.cpio.gz and possibly initramfs_data64.cpio.gz files in the 114 current directory. Copy them to /build: 115 cp initramfs_data*.cpio.gz /build 116 116 117 117 Exit from the chroot and clean up the mounts: … … 152 152 cp -r /media/cdrom/*/ $WORK/iso 153 153 154 Replace the stock initramfs image with your own:155 cp $WORK/build/initramfs_data .cpio.gz \156 $WORK/iso/boot/isolinux/ initramfs_data.cpio.gz154 Replace the stock initramfs images with your own: 155 cp $WORK/build/initramfs_data*.cpio.gz \ 156 $WORK/iso/boot/isolinux/ 157 157 158 158 Recompress the root.ext2 file: … … 187 187 [2007-08-28] 188 188 * Updated for the final 6.3 version 189 190 [2007-10-21] 191 * Updated for the new create-initramfs script branches/minimal/isolinux/isolinux.cfg
r2113 r2125 20 20 label linux64 21 21 kernel linux64 22 append initrd=initramfs_data _cpio.gz quiet22 append initrd=initramfs_data64_cpio.gz quiet branches/minimal/packages/initramfs/Makefile
r2078 r2125 3 3 NM= initramfs 4 4 VRS= 1 5 6 WDIR= temp7 5 8 6 # Targets … … 20 18 21 19 compile-stage2: 22 mkdir -p $(WDIR)/{bin,dev,etc/udev/rules.d,lib/firmware,sbin,sys,proc} 23 ifdef 64bit 24 ln -s lib $(WDIR)/lib64 25 endif 26 cp /etc/udev/udev.conf $(WDIR)/etc/udev/udev.conf 27 cp /etc/udev/rules.d/{05-*,2*,60-*} $(WDIR)/etc/udev/rules.d 28 sed -i 's/, *GROUP="[^"]*"//' $(WDIR)/etc/udev/rules.d/* 29 echo "blacklist generic" >$(WDIR)/etc/modprobe.conf 30 echo "blacklist ata_generic" >>$(WDIR)/etc/modprobe.conf 31 sed -e s/@VERSION@/$(VERSION)/ -e s/@LINKER@/$(LINKER)/ init.in >$(WDIR)/init 32 chmod 755 $(WDIR)/init 33 cp fakecd.iso.head $(WDIR) 34 mknod -m 640 $(WDIR)/dev/console c 5 1 35 mknod -m 664 $(WDIR)/dev/null c 1 3 36 cp /bin/{sh,dd,cat,cp,killall,ls,mkdir,mount,umount,sed,sleep,ln,rm,uname} $(WDIR)/bin 37 cp /lib/{librt.so.1,libpthread.so.0} $(WDIR)/lib 38 cp /lib/{libblkid.so.1,libc.so.6,libdl.so.2,$(LINKER)} $(WDIR)/lib 39 cp /lib/{libncursesw.so.5,libreadline.so.5,libhistory.so.5} $(WDIR)/lib 40 cp /lib/{libpthread.so.0,librt.so.1,libuuid.so.1} $(WDIR)/lib 41 cp /lib/{libvolume_id.so.0,libsysfs.so.2} $(WDIR)/lib 42 cp /usr/lib/libdevmapper.so.1.02 $(WDIR)/lib 43 cp -a /lib/udev $(WDIR)/lib 44 cp -a /lib/firmware/{aic94xx-seq.fw,ql*.bin} $(WDIR)/lib/firmware 45 cp /sbin/{losetup,blockdev,udevd,udevtrigger,udevsettle,modprobe} $(WDIR)/sbin 46 cp /sbin/pcmcia-{check-broken-cis,socket-startup} $(WDIR)/sbin 47 cp /usr/bin/stat $(WDIR)/bin 48 cp /usr/sbin/dmsetup $(WDIR)/sbin 49 find /lib/modules/*/kernel/drivers/{ata,base,block,cdrom,ide,ieee1394,firewire,hid,message,scsi,pcmcia,usb/{core,host,storage}} \ 50 /lib/modules/*/kernel/fs/{mbcache.ko,ext2,ext3,ext4,jbd,jbd2,jfs,reiserfs,reiser4,xfs,fat,vfat,ntfs,isofs,udf,nls} \ 51 /lib/modules/*/kernel/lib -type f | cpio --make-directories -p $(WDIR) 52 for a in /lib/modules/* ; do ver=$${a##*/} ; depmod -b $(WDIR) $$ver ; done 53 cd $(WDIR); find . | cpio -o -H newc | gzip -9 > ../initramfs_data.cpio.gz 54 cp initramfs_data.cpio.gz /boot/isolinux/initramfs_data.cpio.gz 55 rm -rf $(WDIR) 20 mkdir -p /usr/share/initramfs 21 cp fakecd.iso.head /usr/share/initramfs 22 sed -e 's/@LINKER@/$(LINKER)/' init.in >/usr/share/initramfs/init.in 23 sed -e 's/@LINKER@/$(LINKER)/' create-initramfs.in > /usr/bin/create-initramfs 24 chmod 755 /usr/bin/create-initramfs 56 25 57 26 clean: 58 -rm -rf $(WDIR)59 -rm -f initramfs_data*60 27 61 28 .PHONY: clean chroot compile-stage2 branches/minimal/packages/linux/Makefile
r2113 r2125 79 79 make modules_install 80 80 cp -v arch/i386/boot/bzImage /boot/isolinux/linux 81 create-initramfs $(VERSION) $(VRS) /boot/isolinux/initramfs_data.cpio.gz 81 82 # both rtl8187 and rt2x00 build eeprom_93cx6.ko and thus conflict 82 83 # so we have to hack the build branches/minimal/packages/linux64/Makefile
r2113 r2125 85 85 $(CROSS_MAKE) 86 86 $(CROSS_MAKE) modules_install 87 cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux64 88 create-initramfs $(VERSION) $(VRS) /boot/isolinux/initramfs_data64.cpio.gz 87 89 # both rtl8187 and rt2x00 build eeprom_93cx6.ko and thus conflict 88 90 # so we have to hack the build … … 100 102 ifeq ($(CD_ARCH),x86) 101 103 rm /lib/modules/*-64bit/{source,build} 102 cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux64103 104 endif 104 105 ifeq ($(CD_ARCH),x86_64) 105 cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux106 106 rm -rf $(DIR2) $(DIR3) $(DIR4) $(DIR5) $(DIR6) $(DIR7) $(DIR8) $(DIR9) $(DIR10) 107 107 ../debian-style-headers.sh branches/minimal/packages/syslinux/Makefile
r2117 r2125 27 27 cp -v $(ROOT)/isolinux/{isolinux.cfg,boot.msg,splash.lss} /boot/isolinux 28 28 ifeq ($(CD_ARCH),x86_64) 29 sed -i 's/kernel linux64/kernel linux/' /boot/isolinux/isolinux.cfg 29 sed -i -e 's/kernel linux$$/kernel linux64/' \ 30 -e 's/data_cpio/data64_cpio/'/boot/isolinux/isolinux.cfg 30 31 endif 31 32
