SimpleOS

LXR

Navigation



Site hébergé par : enix

The LXR Cross Referencer for SOS

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Article:1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 6.5 ] [ 7 ] [ 7.5 ] [ 8 ] [ 9 ] [ 9.5 ]

Diff markup

Differences between /extra/dot.mkvars (Article 9.5) and /extra/dot.mkvars (Article 3)


001 # For cross-compilation and/or installations w    001 # For cross-compilation and/or installations without grub available,
002 # copy this file as .mkvars to the root direct    002 # copy this file as .mkvars to the root directory of the SOS sources,
003 # and customize the CC/LD/... variables. You s    003 # and customize the CC/LD/... variables. You still need the mtools
004 # installed and running                           004 # installed and running
005                                                   005 
006 CC := i586-pc-elf-gcc                          !! 006 CC := i586-gnu-gcc
007 LD := i586-pc-elf-ld                           !! 007 LD := i586-gnu-ld
008 OBJCOPY := i586-pc-elf-objcopy                 !! 008 OBJCOPY := i586-gnu-objcopy
009 STRIP := i586-pc-elf-strip                     !! 009 CFLAGS += -O3
010 CFLAGS += -g -O                                << 
011 LIBGCC := $(shell $(CC) -print-libgcc-file-nam << 
012                                                   010 
013 # Configuration of mtools                         011 # Configuration of mtools
014 MTOOLSRC = extra/mtoolsrc                         012 MTOOLSRC = extra/mtoolsrc
015 export MTOOLSRC                                   013 export MTOOLSRC
016                                                   014 
017 $(MULTIBOOT_IMAGE): $(KERNEL_OBJ) menu.txt        015 $(MULTIBOOT_IMAGE): $(KERNEL_OBJ) menu.txt
018         gzip -dc < extra/grub.img.gz > $@         016         gzip -dc < extra/grub.img.gz > $@
019         mcopy menu.txt v:/boot/grub/              017         mcopy menu.txt v:/boot/grub/
020         mmd v:/system                             018         mmd v:/system
021         mcopy sos.elf v:/system/sos.elf           019         mcopy sos.elf v:/system/sos.elf
022                                                   020 
023 menu.txt:                                         021 menu.txt:
024         echo timeout 0 > $@                       022         echo timeout 0 > $@
025         echo default 0 >> $@                      023         echo default 0 >> $@
026         echo title  SOS >> $@                     024         echo title  SOS >> $@
027         echo "root   (fd0)" >> $@                 025         echo "root   (fd0)" >> $@
028         echo kernel /system/sos.elf >> $@         026         echo kernel /system/sos.elf >> $@
029                                                   027 
030 runbochs: all                                     028 runbochs: all
031         echo c | bochs -q                         029         echo c | bochs -q
                                                      

source navigation ] diff markup ] identifier search ] general search ]