Changeset 41f7564 in mainline for boot/arch/ia32/Makefile.inc


Ignore:
Timestamp:
2006-07-17T00:53:53Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
231fcb2
Parents:
41c4444
Message:

cleanup and unify the build system

File:
1 edited

Legend:

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

    r41c4444 r41f7564  
    2727#
    2828
    29 build: image.iso
     29TASKS = \
     30        $(USPACEDIR)/init/init \
     31        $(USPACEDIR)/ns/ns \
     32        $(USPACEDIR)/pci/pci \
     33        $(USPACEDIR)/fb/fb \
     34        $(USPACEDIR)/kbd/kbd \
     35        $(USPACEDIR)/console/console \
     36        $(USPACEDIR)/tetris/tetris \
     37        $(USPACEDIR)/ipcc/ipcc \
     38        $(USPACEDIR)/klog/klog
    3039
    31 image.iso: kernel uspace
     40build: $(BASE)/image.iso
     41
     42$(BASE)/image.iso: arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/grub/menu.lst $(KERNELDIR)/kernel.bin $(TASKS)
    3243        mkdir -p arch/$(ARCH)/iso/boot/grub
    3344        cp arch/$(ARCH)/grub/stage2_eltorito arch/$(ARCH)/iso/boot/grub/
    3445        cp arch/$(ARCH)/grub/menu.lst arch/$(ARCH)/iso/boot/grub/
    3546        cp $(KERNELDIR)/kernel.bin arch/$(ARCH)/iso/boot/
    36         cp $(USPACEDIR)/init/init arch/$(ARCH)/iso/boot/
    37         cp $(USPACEDIR)/ns/ns arch/$(ARCH)/iso/boot/
    38         cp $(USPACEDIR)/pci/pci arch/$(ARCH)/iso/boot/
    39         cp $(USPACEDIR)/fb/fb arch/$(ARCH)/iso/boot/
    40         cp $(USPACEDIR)/kbd/kbd arch/$(ARCH)/iso/boot/
    41         cp $(USPACEDIR)/console/console arch/$(ARCH)/iso/boot/
    42         cp $(USPACEDIR)/tetris/tetris arch/$(ARCH)/iso/boot/
    43         cp $(USPACEDIR)/ipcc/ipcc arch/$(ARCH)/iso/boot/
    44         cp $(USPACEDIR)/klog/klog arch/$(ARCH)/iso/boot/
    45         mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o image.iso arch/$(ARCH)/iso/
     47        for task in $(TASKS) ; do \
     48                cp $$task arch/$(ARCH)/iso/boot/ ; \
     49        done
     50        mkisofs -J -r -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o $(BASE)/image.iso arch/$(ARCH)/iso/
    4651
    47 clean: clean_kernel clean_uspace
     52clean:
    4853        -rm -fr arch/$(ARCH)/iso
    49         -rm -f image.iso
    50 
    51 arch_distclean: distclean_kernel distclean_uspace
     54        -rm -f $(BASE)/image.iso
Note: See TracChangeset for help on using the changeset viewer.