Changeset 961ae24c5508a1de642c674609c379dd3202f9c7

Show
Ignore:
Timestamp:
10/19/09 13:24:28 (2 years ago)
Author:
Erwan Velu <erwan.velu@…>
Children:
18d726587536701801d2109396f8c74f5d33f3c1, c45ffb669e96ed42d563831d13f3d113f7e18ebf
Parents:
a2ad377aa2804a7988aa098e40855454090f3b43
git-committer:
Erwan Velu <erwan.velu@free.fr> / 2009-10-19T15:24:28Z+0200
Message:

hdt: Adding hdt.iso target

Impact: It's now possible to generate a bootable iso

make hdt.iso now generates a bootable iso

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/hdt/Makefile

    ra2ad37 r961ae2  
    3232MODULES_PCIMAP_FILE     ?= /lib/modules/$(KERNEL_VERSION)/modules.pcimap 
    3333PCI_IDS_FILE            ?= $(PWD)/floppy/pci.ids 
     34ISO_DIR                 ?= iso/isolinux 
    3435 
    3536all: $(MODULES) $(TESTFILES) 
     
    5051        MTOOLSRC=$(PWD)/floppy/mtools.conf $(MCOPY) floppy/hdt.cfg a:syslinux.cfg 
    5152 
     53hdt.iso: hdt.c32 $(topdir)/core/isolinux.bin floppy/hdt.cfg 
     54        rm -rf $(ISO_DIR) 
     55        rm -rf hdt.iso 
     56        mkdir -p $(ISO_DIR) 
     57        cp $(topdir)/core/isolinux.bin $(ISO_DIR) 
     58        cp floppy/hdt.cfg $(ISO_DIR)/isolinux.cfg 
     59        cp hdt.c32 $(ISO_DIR) 
     60        -[ ! -f $(PCI_IDS_FILE) ] && cp /usr/share/hwdata/pci.ids $(ISO_DIR) 
     61        -[ ! -f $(PCI_IDS_FILE) ] && cp /usr/share/pci.ids $(ISO_DIR) 
     62        -[ -f $(MODULES_ALIAS_FILE) ] && cp $(MODULES_ALIAS_FILE) $(ISO_DIR) 
     63        -[ -f $(MODULES_PCIMAP_FILE) ] && cp $(MODULES_PCIMAP_FILE) $(ISO_DIR) 
     64        -[ ! -f $(ISO_DIR)/pci.ids ] && printf "\nThe floppy/pci.ids file is missing and can be downloaded from http://pciids.sourceforge.net and put in\nthe ./com32/hdt/floppy directory of the extracted Syslinux source.\n\n" 
     65        mkisofs -o hdt.iso -b isolinux/isolinux.bin -c isolinux/boot.cat \ 
     66                -no-emul-boot -boot-load-size 4 -boot-info-table \ 
     67                iso/ 
     68 
    5269tidy dist: 
    5370        rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp 
     
    5774 
    5875spotless: clean 
    59         rm -f *.lss *.c32 *.com hdt.img 
     76        rm -f *.lss *.c32 *.com hdt.img hdt.iso 
    6077        rm -f *~ \#* 
    6178