Changeset 58 for trunk/Makefile
- Timestamp:
- Jun 26, 2017, 4:38:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r56 r58 1 1 ############################################################################# 2 # 2 # ALMOS-MKH Makefile for TSAR # 3 3 ############################################################################# 4 4 … … 11 11 12 12 # Export all variables to applications sub-Makefile. 13 export 13 export 14 14 CC = mipsel-unknown-elf-gcc 15 15 AS = mipsel-unknown-elf-as … … 20 20 # Default values for hardware parameters. 21 21 # These parameters should be defined in the 'params.mk' file. 22 ARCH ?= /users/alain/soc/tsar-trunk-svn-2013/platforms/tsar_generic_iob 22 ARCH ?= /users/alain/soc/tsar-trunk-svn-2013/platforms/tsar_generic_iob 23 23 X_SIZE ?= 2 24 24 Y_SIZE ?= 2 … … 34 34 endif 35 35 36 # Rules that don't build target files 36 # Rules that don't build target files 37 37 # always out-of-date, need to be regenerated everytime they are called 38 38 .PHONY: compile \ … … 63 63 -I. 64 64 65 # Objects to be linked for the soclib drivers library 65 # Objects to be linked for the soclib drivers library 66 66 DRIVERS_OBJS = build/kernel/drivers/soclib_tty.o \ 67 67 build/kernel/drivers/soclib_bdv.o \ … … 74 74 build/kernel/drivers/soclib_iob.o 75 75 76 # Objects to be linked for kernel.elf generation 76 # Objects to be linked for kernel.elf generation 77 77 KERN_OBJS = build/kernel/kern/kernel_init.o \ 78 78 build/kernel/kern/printk.o \ … … 111 111 build/kernel/devices/dev_dma.o \ 112 112 build/kernel/devices/dev_fbf.o \ 113 build/kernel/devices/dev_iob.o 113 build/kernel/devices/dev_iob.o 114 114 115 115 MM_OBJS = build/kernel/mm/ppm.o \ … … 191 191 192 192 # List of directories to be searched for included files 193 # when compiling for kernel.elf generation 193 # when compiling for kernel.elf generation 194 194 KERNEL_INCLUDE = -Ikernel \ 195 195 -Ikernel/kern \ … … 219 219 # The Mtools used to build the FAT32 disk image perfom a few sanity checks, to 220 220 # make sure that the disk is indeed an MS-DOS disk. However, the size of the 221 # disk image used by ALMOS-VM is not MS-DOS compliant. 221 # disk image used by ALMOS-VM is not MS-DOS compliant. 222 222 # Setting this variable prevents these checks. 223 223 MTOOLS_SKIP_CHECK := 1 … … 240 240 @mkdir -p build/kernel/libk 241 241 @mkdir -p build/kernel/drivers 242 @mkdir -p build/kernel/vfs 242 @mkdir -p build/kernel/vfs 243 243 @mkdir -p build/kernel/syscalls 244 244 @mkdir -p hdd … … 253 253 254 254 ############################################################## 255 # Rule to copy the files generated by the virtual prototype 255 # Rule to copy the files generated by the virtual prototype 256 256 # from the virtual disk 'home' directory to the current directory. 257 257 extract: 258 258 mcopy -o -i $(DISK_IMAGE) ::/home . 259 259 260 # Rules to delete all binary files from Unix File System 260 # Rules to delete all binary files from Unix File System 261 261 # without modifying the virtual disk. 262 262 clean: … … 346 346 347 347 ############################## 348 # Rule to compile boot_utils.o 348 # Rule to compile boot_utils.o 349 349 build/boot/boot_utils.o: tools/bootloader_tsar/boot_utils.c \ 350 350 tools/bootloader_tsar/boot_utils.h \ … … 382 382 build/boot/boot.elf: $(BOOT_OBJS) \ 383 383 tools/bootloader_tsar/boot.ld 384 $(LD) -o $@ -T tools/bootloader_tsar/boot.ld $(BOOT_OBJS) 384 $(LD) -o $@ -T tools/bootloader_tsar/boot.ld $(BOOT_OBJS) 385 385 $(DU) -D $@ > $@.txt 386 386 dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc … … 388 388 389 389 ############################## 390 # rules to compile the drivers 390 # rules to compile the drivers 391 391 build/kernel/drivers/%.o: kernel/drivers/soclib/%.c \ 392 392 kernel/drivers/soclib/%.h \ … … 479 479 $(SYS_OBJS_2) \ 480 480 $(SYS_OBJS_3) \ 481 kernel/kernel.ld 481 kernel/kernel.ld 482 482 $(LD) -o $@ -T kernel/kernel.ld \ 483 483 $(KERN_OBJS) $(HAL_OBJS) $(DEV_OBJS) $(MM_OBJS) \ 484 484 $(LIBK_OBJS) $(DRIVERS_OBJS) $(VFS_OBJS) \ 485 $(SYS_OBJS_0) $(SYS_OBJS_1) $(SYS_OBJS_2) $(SYS_OBJS_3) 485 $(SYS_OBJS_0) $(SYS_OBJS_1) $(SYS_OBJS_2) \ 486 $(SYS_OBJS_3) 486 487 487 488 $(DU) -D $@ > $@.txt
Note: See TracChangeset
for help on using the changeset viewer.