Changeset cebab351 in mainline


Ignore:
Timestamp:
2008-08-15T15:38:29Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3d7e19f
Parents:
874a0e8
Message:

Enable booting from FAT on ia32.

Location:
boot/arch/ia32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ia32/Makefile.inc

    r874a0e8 rcebab351  
    3333        $(USPACEDIR)/srv/devmap/devmap \
    3434        $(USPACEDIR)/srv/rd/rd \
    35         $(USPACEDIR)/srv/vfs/vfs \
    36         $(USPACEDIR)/srv/fs/tmpfs/tmpfs
     35        $(USPACEDIR)/srv/vfs/vfs
     36ifeq ($(RDFMT),tmpfs)
     37        INIT_TASKS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs
     38endif
     39ifeq ($(RDFMT),fat)
     40        INIT_TASKS += $(USPACEDIR)/srv/fs/fat/fat
     41endif
    3742
    3843RD_TASKS = \
     
    5257        mkdir -p arch/$(ARCH)/iso/boot/grub
    5358        cp arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/iso/boot/grub/
    54         cp arch/$(ARCH)/grub/menu.lst arch/$(ARCH)/iso/boot/grub/
     59ifneq ($(RDFMT),tmpfs)
     60        cat arch/$(ARCH)/grub/menu.lst | grep -v "tmpfs" >arch/$(ARCH)/iso/boot/grub/menu.lst
     61endif
     62ifneq ($(RDFMT),fat)
     63        cat arch/$(ARCH)/grub/menu.lst | grep -v "fat" >arch/$(ARCH)/iso/boot/grub/menu.lst
     64endif
    5565        cp $(KERNELDIR)/kernel.bin arch/$(ARCH)/iso/boot/
    5666        for task in $(INIT_TASKS) ; do \
     
    6070                cp $$task $(USPACEDIR)/dist/sbin/ ; \
    6171        done
     72ifeq ($(RDFMT),tmpfs)
    6273        $(BASE)/tools/mktmpfs.py $(USPACEDIR)/dist/ arch/$(ARCH)/iso/boot/initrd.fs
     74endif
     75ifeq ($(RDFMT),fat)
     76        $(BASE)/tools/mkfat.sh $(USPACEDIR)/dist/ arch/$(ARCH)/iso/boot/initrd.fs
     77endif
    6378        $(BASE)/tools/mkhord.py 4096 arch/$(ARCH)/iso/boot/initrd.fs arch/$(ARCH)/iso/boot/initrd.img
    6479        rm arch/$(ARCH)/iso/boot/initrd.fs
  • boot/arch/ia32/grub/menu.lst

    r874a0e8 rcebab351  
    1111        module /boot/vfs
    1212        module /boot/tmpfs
     13        module /boot/fat
    1314        module /boot/loader
    1415        module /boot/initrd.img
Note: See TracChangeset for help on using the changeset viewer.