Changeset 246 for trunk/Makefile
- Timestamp:
- Jul 20, 2017, 12:55:23 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r238 r246 222 222 MTOOLS_SKIP_CHECK := 1 223 223 224 # Rule to compile boot.elf, kernel.elf, and update virtual disk. 225 compile: dirs \ 226 hard_config.h \ 227 build/boot/boot.elf \ 228 build/kernel/kernel.elf \ 224 # Rule to generate compile boot.elf, kernel.elf, init.elf and update virtual disk. 225 compile: dirs \ 226 hard_config.h \ 227 build/boot/boot.elf \ 228 build/kernel/kernel.elf \ 229 build/user/init/init.elf \ 229 230 list 230 231 … … 241 242 @mkdir -p build/kernel/vfs 242 243 @mkdir -p build/kernel/syscalls 244 @mkdir -p build/user 245 @mkdir -p build/user/init 246 @mkdir -p build/user/ksh 243 247 @mkdir -p hdd 244 248 … … 246 250 list: 247 251 mdir -/ -w -i $(DISK_IMAGE) ::/ 248 249 # Rule to make a file system check for the virtual disk.250 fsck:251 fsck.msdos $(DISK_IMAGE)252 252 253 253 ############################################################## … … 263 263 rm -f hard_config.h arch_info.xml arch_info.bin 264 264 rm -rf build 265 cd user/init && $(MAKE) clean && cd ../.. 265 266 266 267 #################################################### 267 268 # Rule for building a new virtual disk from scratch. 268 # It creates the bin /home directories.269 # It creates the bin, bin/kernel, bin/init, and home directories. 269 270 # This requires the generic Linux/MacOS 'create_dmg' script, that should be 270 271 # placed in the same directory as this Makefile. … … 276 277 mmd -o -i $(DISK_IMAGE) ::/bin || true 277 278 mmd -o -i $(DISK_IMAGE) ::/bin/kernel || true 279 mmd -o -i $(DISK_IMAGE) ::/bin/init || true 278 280 mmd -o -i $(DISK_IMAGE) ::/home || true 279 281 mdir -/ -b -i $(DISK_IMAGE) ::/ … … 488 490 mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/bin/kernel 489 491 492 ############################################################ 493 # Rule to generate the init.elf and place it on virtual disk 494 build/user/init/init.elf : user/init/init.c 495 $(MAKE) -C user/init 496 mcopy -o -i $(DISK_IMAGE) user/init/init.elf ::/bin/init 497 498
Note: See TracChangeset
for help on using the changeset viewer.