Changes in / [4da7d79:6ef2c11] in mainline
- Files:
-
- 137 added
- 123 deleted
- 137 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r4da7d79 r6ef2c11 31 31 32 32 CSCOPE = cscope 33 STANSE = stanse 33 CONFIG = tools/config.py 34 34 35 .PHONY: all config config_default distclean clean cscope stanse35 .PHONY: all config config_default distclean clean cscope precheck 36 36 37 37 all: Makefile.config config.h config.defs 38 $(MAKE) -C kernel 39 $(MAKE) -C uspace 40 $(MAKE) -C boot 38 $(MAKE) -C kernel PRECHECK=$(PRECHECK) 39 $(MAKE) -C uspace PRECHECK=$(PRECHECK) 40 $(MAKE) -C boot PRECHECK=$(PRECHECK) 41 41 42 stanse: Makefile.config config.h config.defs 43 $(MAKE) -C kernel clean 44 $(MAKE) -C kernel EXTRA_TOOL=stanse 45 $(STANSE) --checker ReachabilityChecker --jobfile kernel/kernel.job 42 precheck: clean 43 $(MAKE) all PRECHECK=y 46 44 47 45 cscope: … … 55 53 56 54 config_default: HelenOS.config 57 tools/config.pyHelenOS.config default55 $(CONFIG) HelenOS.config default 58 56 59 57 config: HelenOS.config 60 tools/config.pyHelenOS.config58 $(CONFIG) HelenOS.config 61 59 62 60 distclean: clean -
boot/Makefile.common
r4da7d79 r6ef2c11 45 45 46 46 RD_SRVS = \ 47 $(USPACEDIR)/srv/fb/fb \ 48 $(USPACEDIR)/srv/kbd/kbd \ 49 $(USPACEDIR)/srv/console/console \ 47 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 48 $(USPACEDIR)/srv/bd/part/mbr_part/mbr_part \ 50 49 $(USPACEDIR)/srv/clip/clip \ 50 $(USPACEDIR)/srv/hid/fb/fb \ 51 $(USPACEDIR)/srv/hid/kbd/kbd \ 52 $(USPACEDIR)/srv/hid/console/console \ 51 53 $(USPACEDIR)/srv/fs/devfs/devfs \ 52 54 $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ 53 $(USPACEDIR)/srv/fs/fat/fat \ 54 $(USPACEDIR)/srv/bd/file_bd/file_bd \ 55 $(USPACEDIR)/srv/part/mbr_part/mbr_part 55 $(USPACEDIR)/srv/fs/fat/fat 56 56 57 57 RD_APPS = \ 58 $(USPACEDIR)/app/bdsh/bdsh \ 58 59 $(USPACEDIR)/app/edit/edit \ 59 60 $(USPACEDIR)/app/getterm/getterm \ 61 $(USPACEDIR)/app/klog/klog \ 60 62 $(USPACEDIR)/app/redir/redir \ 63 $(USPACEDIR)/app/tester/tester \ 61 64 $(USPACEDIR)/app/tetris/tetris \ 62 $(USPACEDIR)/app/tester/tester \ 63 $(USPACEDIR)/app/trace/trace \ 64 $(USPACEDIR)/app/klog/klog \ 65 $(USPACEDIR)/app/bdsh/bdsh 65 $(USPACEDIR)/app/trace/trace 66 66 67 67 COMPONENTS = \ 68 68 $(KERNELDIR)/kernel.bin \ 69 69 $(USPACEDIR)/srv/ns/ns \ 70 $(USPACEDIR)/srv/loader/loader \ 70 71 $(USPACEDIR)/app/init/init \ 71 $(USPACEDIR)/srv/loader/loader \72 72 $(USPACEDIR)/srv/devmap/devmap \ 73 73 $(USPACEDIR)/srv/bd/rd/rd \ -
boot/arch/amd64/Makefile.inc
r4da7d79 r6ef2c11 30 30 31 31 RD_SRVS += \ 32 $(USPACEDIR)/srv/pci/pci \33 32 $(USPACEDIR)/srv/bd/ata_bd/ata_bd \ 34 $(USPACEDIR)/srv/char/i8042/i8042 \ 35 $(USPACEDIR)/srv/mouse/c_mouse/c_mouse 33 $(USPACEDIR)/srv/hw/char/i8042/i8042 \ 34 $(USPACEDIR)/srv/hw/bus/pci/pci \ 35 $(USPACEDIR)/srv/hid/c_mouse/c_mouse 36 36 37 37 MODULES := $(notdir $(COMPONENTS)) -
boot/arch/arm32/Makefile.inc
r4da7d79 r6ef2c11 30 30 31 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 32 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 33 33 cp arch/$(BARCH)/loader/image.boot $@ 34 34 -
boot/arch/arm32/loader/Makefile
r4da7d79 r6ef2c11 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/arm32/loader/Makefile.build
r4da7d79 r6ef2c11 65 65 %.o: %.S $(DEPEND) 66 66 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 67 ifeq ($(PRECHECK),y) 68 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 69 endif 67 70 68 71 %.o: %.c $(DEPEND) 69 72 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 73 ifeq ($(PRECHECK),y) 74 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 75 endif 70 76 71 77 $(DEPEND): -
boot/arch/arm32/loader/Makefile.common
r4da7d79 r6ef2c11 35 35 DEPEND = Makefile.depend 36 36 DEPEND_PREV = $(DEPEND).prev 37 JOB = image.job 37 38 OUTPUT = image.boot 38 39 -
boot/arch/arm32/loader/Makefile.toolchain
r4da7d79 r6ef2c11 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc -
boot/arch/ia64/Makefile.inc
r4da7d79 r6ef2c11 30 30 31 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 32 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 33 33 cp arch/$(BARCH)/loader/image.boot $@ 34 34 -
boot/arch/ia64/loader/Makefile
r4da7d79 r6ef2c11 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 45 45 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 46 46 done 47 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(HELLO) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs47 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(HELLO) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 48 48 find . -name '*.o' -follow -exec rm \{\} \; 49 49 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/ia64/loader/Makefile.build
r4da7d79 r6ef2c11 66 66 %.o: %.S $(DEPEND) 67 67 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 70 endif 68 71 69 72 %.o: %.c $(DEPEND) 70 73 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 74 ifeq ($(PRECHECK),y) 75 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 76 endif 71 77 72 78 $(DEPEND): -
boot/arch/ia64/loader/Makefile.common
r4da7d79 r6ef2c11 35 35 DEPEND = Makefile.depend 36 36 DEPEND_PREV = $(DEPEND).prev 37 JOB = image.job 37 38 OUTPUT = image.boot 38 39 HELLO = hello.efi -
boot/arch/ia64/loader/Makefile.toolchain
r4da7d79 r6ef2c11 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc -
boot/arch/mips32/Makefile.inc
r4da7d79 r6ef2c11 30 30 31 31 $(BASE)/image.boot: 32 $(MAKE) -C arch/$(BARCH)/loader 32 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 33 33 cp arch/$(BARCH)/loader/image.boot $@ 34 34 -
boot/arch/mips32/loader/Makefile
r4da7d79 r6ef2c11 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/mips32/loader/Makefile.build
r4da7d79 r6ef2c11 66 66 %.o: %.S $(DEPEND) 67 67 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 70 endif 68 71 69 72 %.o: %.c $(DEPEND) 70 73 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 74 ifeq ($(PRECHECK),y) 75 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 76 endif 71 77 72 78 $(DEPEND): -
boot/arch/mips32/loader/Makefile.common
r4da7d79 r6ef2c11 36 36 DEPEND_PREV = $(DEPEND).prev 37 37 RAW = image.raw 38 JOB = image.job 38 39 OUTPUT = image.boot 39 40 -
boot/arch/mips32/loader/Makefile.toolchain
r4da7d79 r6ef2c11 37 37 TARGET = mipsel-linux-gnu 38 38 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin 39 40 JOBFILE = ../../../../tools/jobfile.py 39 41 40 42 ifeq ($(MACHINE),lgxemul) -
boot/arch/ppc32/Makefile.inc
r4da7d79 r6ef2c11 42 42 43 43 arch/$(BARCH)/loader/image.boot: 44 $(MAKE) -C arch/$(BARCH)/loader 44 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 45 45 46 46 clean: generic_clean -
boot/arch/ppc32/loader/Makefile
r4da7d79 r6ef2c11 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/ppc32/loader/Makefile.build
r4da7d79 r6ef2c11 66 66 %.o: %.S $(DEPEND) 67 67 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 70 endif 68 71 69 72 %.o: %.c $(DEPEND) 70 73 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 74 ifeq ($(PRECHECK),y) 75 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 76 endif 71 77 72 78 $(DEPEND): -
boot/arch/ppc32/loader/Makefile.common
r4da7d79 r6ef2c11 35 35 DEPEND = Makefile.depend 36 36 DEPEND_PREV = $(DEPEND).prev 37 JOB = image.job 37 38 OUTPUT = image.boot 38 39 -
boot/arch/ppc32/loader/Makefile.toolchain
r4da7d79 r6ef2c11 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc -
boot/arch/sparc64/Makefile.inc
r4da7d79 r6ef2c11 55 55 56 56 arch/$(BARCH)/loader/image.boot: 57 $(MAKE) -C arch/$(BARCH)/loader 57 $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK) 58 58 59 59 clean: generic_clean -
boot/arch/sparc64/loader/Makefile
r4da7d79 r6ef2c11 34 34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: … … 43 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 44 44 done 45 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 46 46 find . -name '*.o' -follow -exec rm \{\} \; 47 47 find . -name '*.co' -follow -exec rm \{\} \; -
boot/arch/sparc64/loader/Makefile.build
r4da7d79 r6ef2c11 77 77 %.o: %.S $(DEPEND) 78 78 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 79 ifeq ($(PRECHECK),y) 80 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 81 endif 79 82 80 83 %.o: %.c $(DEPEND) 81 84 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 85 ifeq ($(PRECHECK),y) 86 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 87 endif 82 88 83 89 $(DEPEND): -
boot/arch/sparc64/loader/Makefile.common
r4da7d79 r6ef2c11 35 35 DEPEND = Makefile.depend 36 36 DEPEND_PREV = $(DEPEND).prev 37 JOB = image.job 37 38 OUTPUT = image.boot 38 39 … … 45 46 RD_SRVS_GENERIC = \ 46 47 $(USPACEDIR)/srv/fs/fat/fat \ 47 $(USPACEDIR)/srv/ cir/fhc/fhc \48 $(USPACEDIR)/srv/ cir/obio/obio48 $(USPACEDIR)/srv/hw/cir/fhc/fhc \ 49 $(USPACEDIR)/srv/hw/cir/obio/obio 49 50 50 51 RD_APPS_GENERIC = \ -
boot/arch/sparc64/loader/Makefile.toolchain
r4da7d79 r6ef2c11 39 39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin 40 40 41 JOBFILE = ../../../../tools/jobfile.py 42 41 43 ifeq ($(COMPILER),gcc_native) 42 44 CC = gcc -
kernel/Makefile
r4da7d79 r6ef2c11 33 33 all: ../version ../Makefile.config ../config.h ../config.defs 34 34 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 35 $(MAKE) -f Makefile.build EXTRA_TOOL=$(EXTRA_TOOL)35 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 36 37 37 clean: 38 38 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(ARCH_INCLUDE) $(GENARCH_INCLUDE) arch/*/_link.ld 39 39 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 40 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o.preproc' -follow -exec rm \{\} \; -
kernel/Makefile.build
r4da7d79 r6ef2c11 375 375 %.o: %.S $(DEPEND) 376 376 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@ 377 ifeq ($(PRECHECK),y) 378 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(GCC_CFLAGS) -D__ASM__ 379 endif 377 380 378 381 %.o: %.s $(DEPEND) 379 382 $(AS) $(AFLAGS) $< -o $@ 383 ifeq ($(PRECHECK),y) 384 $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) 385 endif 380 386 381 387 # … … 385 391 test/fpu/%.o: test/fpu/%.c $(DEPEND) 386 392 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) -c $< -o $@ 387 ifeq ($( EXTRA_TOOL),stanse)388 ../tools/jobfile.py $(JOB) $< $@$(DEFS) $(CFLAGS) $(EXTRA_FLAGS)393 ifeq ($(PRECHECK),y) 394 $(JOBFILE) $(JOB) $< $@ cc test $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) 389 395 endif 390 396 … … 394 400 %.o: %.c $(DEPEND) 395 401 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) -c $< -o $@ 396 ifeq ($( EXTRA_TOOL),stanse)397 ../tools/jobfile.py $(JOB) $< $@$(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)402 ifeq ($(PRECHECK),y) 403 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) 398 404 endif 399 405 … … 405 411 $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) -o $@ -Map $(MAP_PREV) 406 412 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) 407 tools/genmap.py$(MAP_PREV) $(DUMP) $@413 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 408 414 409 415 # Do it once again, this time to get correct even the symbols … … 413 419 $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) -o $@ -Map $(MAP_PREV) 414 420 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) 415 tools/genmap.py$(MAP_PREV) $(DUMP) $@421 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 416 422 417 423 $(DEPEND): $(ARCH_INCLUDE) $(GENARCH_INCLUDE) -
kernel/Makefile.common
r4da7d79 r6ef2c11 44 44 ARCH_INCLUDE = generic/include/arch 45 45 GENARCH_INCLUDE = generic/include/genarch 46 47 GENMAP = tools/genmap.py 48 JOBFILE = ../tools/jobfile.py -
tools/jobfile.py
r4da7d79 r6ef2c11 28 28 # 29 29 """ 30 Add a source/object file pair to a Stansejobfile30 Add a source/object file pair to a checker jobfile 31 31 """ 32 32 … … 37 37 def usage(prname): 38 38 "Print usage syntax" 39 print prname + " <JOBFILE> <SOURCE> < OBJECT> [OPTIONS ...]"39 print prname + " <JOBFILE> <SOURCE> <TARGET> <TOOL> <CATEGORY> [OPTIONS ...]" 40 40 41 41 def main(): 42 if (len(sys.argv) < 4):42 if (len(sys.argv) < 6): 43 43 usage(sys.argv[0]) 44 44 return … … 46 46 jobfname = sys.argv[1] 47 47 srcfname = sys.argv[2] 48 objfname = sys.argv[3] 48 tgtfname = sys.argv[3] 49 toolname = sys.argv[4] 50 category = sys.argv[5] 49 51 cwd = os.getcwd() 50 options = " ".join(sys.argv[ 4:])52 options = " ".join(sys.argv[6:]) 51 53 52 54 jobfile = file(jobfname, "a") 53 55 fcntl.lockf(jobfile, fcntl.LOCK_EX) 54 jobfile.write("{%s},{%s},{%s},{%s} \n" % (srcfname, objfname, cwd, options))56 jobfile.write("{%s},{%s},{%s},{%s},{%s},{%s}\n" % (srcfname, tgtfname, toolname, category, cwd, options)) 55 57 fcntl.lockf(jobfile, fcntl.LOCK_UN) 56 58 jobfile.close() -
tools/xtui.py
r4da7d79 r6ef2c11 213 213 sys.stdout.write("Selection[%s]: " % str(position + 1)) 214 214 else: 215 sys.stdout.write("Selection: ") 215 if (cnt > 0): 216 sys.stdout.write("Selection[1]: ") 217 else: 218 sys.stdout.write("Selection[0]: ") 216 219 inp = sys.stdin.readline() 217 220 … … 222 225 if (position != None): 223 226 return (None, position) 224 continue 227 else: 228 if (cnt > 0): 229 inp = '1' 230 else: 231 inp = '0' 225 232 226 233 if (inp.strip() == 'q'): -
uspace/Makefile
r4da7d79 r6ef2c11 33 33 34 34 DIRS = \ 35 app/bdsh \ 36 app/edit \ 37 app/getterm \ 38 app/init \ 39 app/klog \ 40 app/redir \ 41 app/tester \ 42 app/tetris \ 43 app/trace \ 44 srv/clip \ 45 srv/devmap \ 46 srv/loader \ 47 srv/ns \ 48 srv/vfs \ 35 49 srv/bd/ata_bd \ 36 50 srv/bd/file_bd \ 37 51 srv/bd/gxe_bd \ 38 52 srv/bd/rd \ 39 srv/ns \ 40 srv/loader \ 41 srv/fb \ 42 srv/kbd \ 43 srv/char/i8042 \ 44 srv/console \ 53 srv/bd/part/mbr_part \ 45 54 srv/fs/fat \ 46 55 srv/fs/tmpfs \ 47 56 srv/fs/devfs \ 48 srv/mouse/c_mouse \ 49 srv/vfs \ 50 srv/devmap \ 51 srv/part/mbr_part \ 52 srv/clip \ 53 app/edit \ 54 app/tetris \ 55 app/tester \ 56 app/trace \ 57 app/klog \ 58 app/init \ 59 app/getterm \ 60 app/redir \ 61 app/bdsh 57 srv/hid/console \ 58 srv/hid/c_mouse \ 59 srv/hid/fb \ 60 srv/hid/kbd \ 61 srv/hw/char/i8042 62 62 63 63 ifeq ($(UARCH),amd64) 64 DIRS += srv/ pci64 DIRS += srv/hw/bus/pci 65 65 endif 66 66 67 67 ifeq ($(UARCH),ia32) 68 DIRS += srv/ pci68 DIRS += srv/hw/bus/pci 69 69 endif 70 70 71 71 ifeq ($(UARCH),sparc64) 72 72 DIRS += \ 73 srv/ cir/fhc \74 srv/ cir/obio73 srv/hw/cir/fhc \ 74 srv/hw/cir/obio 75 75 endif 76 76 … … 98 98 99 99 $(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) 100 $(MAKE) -C $(basename $@) all 100 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK) 101 101 102 102 $(LIBS_BUILD): $(LIBC_BUILD) 103 $(MAKE) -C $(basename $@) all 103 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK) 104 104 105 105 $(LIBC_BUILD): 106 $(MAKE) -C $(basename $@) all 106 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK) -
uspace/app/bdsh/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/bdsh/Makefile.build
r4da7d79 r6ef2c11 79 79 %.o: %.c $(DEPEND) 80 80 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 81 ifeq ($(PRECHECK),y) 82 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 83 endif 81 84 82 85 $(DEPEND): -
uspace/app/bdsh/Makefile.common
r4da7d79 r6ef2c11 38 38 DEPEND = Makefile.depend 39 39 DEPEND_PREV = $(DEPEND).prev 40 JOB = bdsh.job 40 41 OUTPUT = bdsh -
uspace/app/edit/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/edit/Makefile.build
r4da7d79 r6ef2c11 57 57 %.o: %.c $(DEPEND) 58 58 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 59 ifeq ($(PRECHECK),y) 60 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 61 endif 59 62 60 63 $(DEPEND): -
uspace/app/edit/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = edit.job 39 40 OUTPUT = edit -
uspace/app/getterm/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../version $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/getterm/Makefile.build
r4da7d79 r6ef2c11 60 60 %.o: %.c $(DEPEND) 61 61 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 62 ifeq ($(PRECHECK),y) 63 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 64 endif 62 65 63 66 $(DEPEND): -
uspace/app/getterm/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = getterm.job 39 40 OUTPUT = getterm -
uspace/app/init/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/init/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/app/init/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = init.job 39 40 OUTPUT = init -
uspace/app/klog/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/klog/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/app/klog/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = klog.job 39 40 OUTPUT = klog -
uspace/app/redir/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../version $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/redir/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/app/redir/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = redir.job 39 40 OUTPUT = redir -
uspace/app/tester/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/tester/Makefile.build
r4da7d79 r6ef2c11 49 49 fault/fault1.c \ 50 50 fault/fault2.c \ 51 fault/fault3.c \ 51 52 vfs/vfs1.c \ 52 53 ipc/ping_pong.c \ … … 72 73 %.o: %.c $(DEPEND) 73 74 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 75 ifeq ($(PRECHECK),y) 76 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 77 endif 74 78 75 79 $(DEPEND): -
uspace/app/tester/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = tester.job 39 40 OUTPUT = tester -
uspace/app/tester/tester.c
r4da7d79 r6ef2c11 56 56 #include "fault/fault1.def" 57 57 #include "fault/fault2.def" 58 #include "fault/fault3.def" 58 59 #include "vfs/vfs1.def" 59 60 #include "ipc/ping_pong.def" -
uspace/app/tester/tester.h
r4da7d79 r6ef2c11 73 73 extern char *test_fault1(void); 74 74 extern char *test_fault2(void); 75 extern char *test_fault3(void); 75 76 extern char *test_vfs1(void); 76 77 extern char *test_ping_pong(void); -
uspace/app/tetris/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/tetris/Makefile.build
r4da7d79 r6ef2c11 60 60 %.o: %.c $(DEPEND) 61 61 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 62 ifeq ($(PRECHECK),y) 63 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 64 endif 62 65 63 66 $(DEPEND): -
uspace/app/tetris/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = tetris.job 39 40 OUTPUT = tetris -
uspace/app/trace/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/app/trace/Makefile.build
r4da7d79 r6ef2c11 61 61 %.o: %.c $(DEPEND) 62 62 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 63 ifeq ($(PRECHECK),y) 64 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 65 endif 63 66 64 67 $(DEPEND): -
uspace/app/trace/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = trace.job 39 40 OUTPUT = trace -
uspace/lib/libblock/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( LIBBLOCK)39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBBLOCK) 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/lib/libblock/Makefile.build
r4da7d79 r6ef2c11 53 53 %.o: %.c $(DEPEND) 54 54 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 55 ifeq ($(PRECHECK),y) 56 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 57 endif 55 58 56 59 $(DEPEND): -
uspace/lib/libblock/Makefile.common
r4da7d79 r6ef2c11 34 34 DEPEND = Makefile.depend 35 35 DEPEND_PREV = $(DEPEND).prev 36 JOB = libblock.job 36 37 LIBBLOCK = libblock.a -
uspace/lib/libc/Makefile
r4da7d79 r6ef2c11 33 33 all: ../../../Makefile.config ../../../config.h ../../../config.defs 34 34 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 35 $(MAKE) -f Makefile.build 35 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 36 37 37 clean: 38 rm -f $(DEPEND) $(DEPEND_PREV) $( INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(LIBC) arch/*/_link.ld38 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(LIBC) arch/*/_link.ld 39 39 find generic/ arch/*/ -name '*.o' -follow -exec rm \{\} \; -
uspace/lib/libc/Makefile.build
r4da7d79 r6ef2c11 87 87 generic/udebug.c \ 88 88 generic/vfs/vfs.c \ 89 generic/vfs/canonify.c 89 generic/vfs/canonify.c \ 90 generic/stacktrace.c 90 91 91 92 ARCH_SOURCES += \ … … 111 112 %.o: %.S $(DEPEND) 112 113 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 114 ifeq ($(PRECHECK),y) 115 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ 116 endif 113 117 114 118 %.o: %.s $(DEPEND) 115 119 $(AS) $(AFLAGS) $< -o $@ 120 ifeq ($(PRECHECK),y) 121 $(JOBFILE) $(JOB) $< $@ as asm $(AFLAGS) 122 endif 116 123 117 124 %.o: %.c $(DEPEND) 118 125 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 126 ifeq ($(PRECHECK),y) 127 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 128 endif 119 129 120 130 $(DEPEND): $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) -
uspace/lib/libc/Makefile.common
r4da7d79 r6ef2c11 33 33 DEPEND = Makefile.depend 34 34 DEPEND_PREV = $(DEPEND).prev 35 JOB = libc.job 35 36 LIBC = libc.a 36 37 INCLUDE_KERNEL = include/kernel -
uspace/lib/libc/Makefile.toolchain
r4da7d79 r6ef2c11 78 78 # 79 79 80 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 81 80 82 ifeq ($(COMPILER),gcc_cross) 81 83 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc -
uspace/lib/libc/arch/amd64/Makefile.inc
r4da7d79 r6ef2c11 36 36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 37 37 arch/$(UARCH)/src/fibril.S \ 38 arch/$(UARCH)/src/tls.c 38 arch/$(UARCH)/src/tls.c \ 39 arch/$(UARCH)/src/stacktrace.S 39 40 41 GCC_CFLAGS += -fno-omit-frame-pointer 40 42 LFLAGS += -N 41 43 -
uspace/lib/libc/arch/amd64/include/fibril.h
r4da7d79 r6ef2c11 44 44 #define SP_DELTA 16 45 45 46 #define context_set(c, _pc, stack, size, ptls) \ 47 do { \ 48 (c)->pc = (sysarg_t) (_pc); \ 49 (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ 50 (c)->tls = (sysarg_t) (ptls); \ 51 (c)->rbp = 0; \ 52 } while (0) 53 46 54 /* We include only registers that must be preserved 47 55 * during function call -
uspace/lib/libc/arch/amd64/src/entry.s
r4da7d79 r6ef2c11 38 38 # 39 39 __entry: 40 # 41 # Create the first stack frame. 42 # 43 pushq $0 44 mov %rsp, %rbp 45 40 46 # %rdi was deliberately chosen as the first argument is also in %rdi 41 47 # Pass PCB pointer to __main (no operation) -
uspace/lib/libc/arch/amd64/src/thread_entry.s
r4da7d79 r6ef2c11 36 36 __thread_entry: 37 37 # 38 # Create the first stack frame. 39 # 40 pushq $0 41 movq %rsp, %rbp 42 43 # 38 44 # RAX contains address of uarg 39 45 # -
uspace/lib/libc/arch/arm32/Makefile.inc
r4da7d79 r6ef2c11 37 37 arch/$(UARCH)/src/fibril.S \ 38 38 arch/$(UARCH)/src/tls.c \ 39 arch/$(UARCH)/src/eabi.S 39 arch/$(UARCH)/src/eabi.S \ 40 arch/$(UARCH)/src/stacktrace.S 40 41 41 GCC_CFLAGS += -ffixed-r9 -mtp=soft 42 GCC_CFLAGS += -ffixed-r9 -mtp=soft -mapcs-frame -fno-omit-frame-pointer 42 43 LFLAGS += -N $(SOFTINT_PREFIX)/libsoftint.a 43 44 -
uspace/lib/libc/arch/arm32/include/fibril.h
r4da7d79 r6ef2c11 58 58 * @param ptls Pointer to the TCB. 59 59 */ 60 #define context_set(c, _pc, stack, size, ptls) \ 61 (c)->pc = (sysarg_t) (_pc); \ 62 (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ 63 (c)->tls = ((sysarg_t)(ptls)) + sizeof(tcb_t) + ARM_TP_OFFSET; 64 60 #define context_set(c, _pc, stack, size, ptls) \ 61 do { \ 62 (c)->pc = (sysarg_t) (_pc); \ 63 (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ 64 (c)->tls = ((sysarg_t)(ptls)) + sizeof(tcb_t) + ARM_TP_OFFSET; \ 65 (c)->fp = 0; \ 66 } while (0) 65 67 66 68 /** Fibril context. … … 79 81 uint32_t r7; 80 82 uint32_t r8; 81 uint32_t tls; 83 uint32_t tls; /* r9 */ 82 84 uint32_t r10; 83 uint32_t r11;85 uint32_t fp; /* r11 */ 84 86 } context_t; 85 87 -
uspace/lib/libc/arch/arm32/src/entry.s
r4da7d79 r6ef2c11 43 43 str r2, [r0] 44 44 45 # 46 # Create the first stack frame. 47 # 48 mov fp, #0 49 mov ip, sp 50 push {fp, ip, lr, pc} 51 sub fp, ip, #4 52 45 53 # Pass pcb_ptr to __main as the first argument (in r0) 46 54 mov r0, r1 -
uspace/lib/libc/arch/arm32/src/thread_entry.s
r4da7d79 r6ef2c11 35 35 # 36 36 __thread_entry: 37 # 38 # Create the first stack frame. 39 # 40 mov fp, #0 41 mov ip, sp 42 push {fp, ip, lr, pc} 43 sub fp, ip, #4 44 37 45 b __thread_main -
uspace/lib/libc/arch/ia32/Makefile.inc
r4da7d79 r6ef2c11 37 37 arch/$(UARCH)/src/fibril.S \ 38 38 arch/$(UARCH)/src/tls.c \ 39 arch/$(UARCH)/src/setjmp.S 39 arch/$(UARCH)/src/setjmp.S \ 40 arch/$(UARCH)/src/stacktrace.S 40 41 41 42 GCC_CFLAGS += -march=pentium -
uspace/lib/libc/arch/ia32/include/fibril.h
r4da7d79 r6ef2c11 44 44 #define SP_DELTA (12) 45 45 46 #define context_set(c, _pc, stack, size, ptls) \ 47 do { \ 48 (c)->pc = (sysarg_t) (_pc); \ 49 (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ 50 (c)->tls = (sysarg_t) (ptls); \ 51 (c)->ebp = 0; \ 52 } while (0) 53 46 54 /* We include only registers that must be preserved 47 55 * during function call -
uspace/lib/libc/arch/ia32/src/entry.s
r4da7d79 r6ef2c11 55 55 movl $__syscall_fast, (%eax) 56 56 0: 57 # 58 # Create the first stack frame. 59 # 60 pushl $0 61 movl %esp, %ebp 57 62 58 63 # Pass the PCB pointer to __main as the first argument -
uspace/lib/libc/arch/ia32/src/thread_entry.s
r4da7d79 r6ef2c11 42 42 43 43 # 44 # Create the first stack frame. 45 # 46 pushl $0 47 mov %esp, %ebp 48 49 # 44 50 # EAX contains address of uarg. 45 51 # -
uspace/lib/libc/arch/ia64/Makefile.inc
r4da7d79 r6ef2c11 36 36 arch/$(UARCH)/src/fibril.S \ 37 37 arch/$(UARCH)/src/tls.c \ 38 arch/$(UARCH)/src/ddi.c 38 arch/$(UARCH)/src/ddi.c \ 39 arch/$(UARCH)/src/stacktrace.S 39 40 40 41 GCC_CFLAGS += -fno-unwind-tables -
uspace/lib/libc/arch/mips32/Makefile.inc
r4da7d79 r6ef2c11 35 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 36 36 arch/$(UARCH)/src/fibril.S \ 37 arch/$(UARCH)/src/tls.c 37 arch/$(UARCH)/src/tls.c \ 38 arch/$(UARCH)/src/stacktrace.S 38 39 39 40 GCC_CFLAGS += -mips3 -
uspace/lib/libc/arch/ppc32/Makefile.inc
r4da7d79 r6ef2c11 35 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 36 36 arch/$(UARCH)/src/fibril.S \ 37 arch/$(UARCH)/src/tls.c 37 arch/$(UARCH)/src/tls.c \ 38 arch/$(UARCH)/src/stacktrace.S 38 39 39 40 GCC_CFLAGS += -mcpu=powerpc -msoft-float -m32 -
uspace/lib/libc/arch/ppc32/src/entry.s
r4da7d79 r6ef2c11 38 38 # 39 39 __entry: 40 # 41 # Create the first stack frame. 42 # 43 li %r3, 0 44 stw %r3, 0(%r1) 45 stwu %r1, -16(%r1) 46 40 47 # Pass the PCB pointer to __main() as the first argument. 41 48 # The first argument is passed in r3. -
uspace/lib/libc/arch/ppc32/src/thread_entry.s
r4da7d79 r6ef2c11 35 35 # 36 36 __thread_entry: 37 # 38 # Create the first stack frame. 39 # 40 li %r4, 0 41 stw %r4, 0(%r1) 42 stwu %r1, -16(%r1) 43 37 44 b __thread_main 38 45 -
uspace/lib/libc/arch/sparc64/Makefile.inc
r4da7d79 r6ef2c11 34 34 35 35 ARCH_SOURCES += arch/$(UARCH)/src/fibril.S \ 36 arch/$(UARCH)/src/tls.c 36 arch/$(UARCH)/src/tls.c \ 37 arch/$(UARCH)/src/stacktrace.S 37 38 38 39 GCC_CFLAGS += -mcpu=ultrasparc -m64 -
uspace/lib/libc/arch/sparc64/include/fibril.h
r4da7d79 r6ef2c11 46 46 #endif 47 47 48 #define context_set(c, _pc, stack, size, ptls) \ 49 (c)->pc = ((uintptr_t) _pc) - 8; \ 50 (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), \ 51 STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA); \ 52 (c)->fp = -STACK_BIAS; \ 53 (c)->tp = ptls 48 #define context_set(c, _pc, stack, size, ptls) \ 49 do { \ 50 (c)->pc = ((uintptr_t) _pc) - 8; \ 51 (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), \ 52 STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA); \ 53 (c)->fp = -STACK_BIAS; \ 54 (c)->tp = ptls; \ 55 } while (0) 54 56 55 57 /* -
uspace/lib/libc/arch/sparc64/src/entry.s
r4da7d79 r6ef2c11 39 39 # 40 40 __entry: 41 # 42 # Create the first stack frame. 43 # 44 save %sp, -176, %sp 45 flushw 46 add %g0, -0x7ff, %fp 47 41 48 # Pass pcb_ptr as the first argument to __main() 42 mov % o1, %o049 mov %i1, %o0 43 50 sethi %hi(_gp), %l7 44 51 call __main -
uspace/lib/libc/arch/sparc64/src/thread_entry.s
r4da7d79 r6ef2c11 35 35 # 36 36 __thread_entry: 37 # 38 # Create the first stack frame. 39 # 40 save %sp, -176, %sp 41 flushw 42 add %g0, -0x7ff, %fp 43 37 44 sethi %hi(_gp), %l7 38 45 call __thread_main ! %o0 contains address of uarg -
uspace/lib/libc/include/stdlib.h
r4da7d79 r6ef2c11 38 38 #include <unistd.h> 39 39 #include <malloc.h> 40 #include <stacktrace.h> 40 41 41 #define abort() _exit(1) 42 #define abort() \ 43 do { \ 44 stack_trace(); \ 45 _exit(1); \ 46 } while (0) 47 42 48 #define exit(status) _exit((status)) 43 49 -
uspace/lib/libfs/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( LIBFS)39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBFS) 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/lib/libfs/Makefile.build
r4da7d79 r6ef2c11 53 53 %.o: %.c $(DEPEND) 54 54 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 55 ifeq ($(PRECHECK),y) 56 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 57 endif 55 58 56 59 $(DEPEND): -
uspace/lib/libfs/Makefile.common
r4da7d79 r6ef2c11 34 34 DEPEND = Makefile.depend 35 35 DEPEND_PREV = $(DEPEND).prev 36 JOB = libfs.job 36 37 LIBFS = libfs.a -
uspace/lib/softfloat/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( LIBSOFTFLOAT)39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBSOFTFLOAT) 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/lib/softfloat/Makefile.build
r4da7d79 r6ef2c11 63 63 %.o: %.c $(DEPEND) 64 64 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 65 ifeq ($(PRECHECK),y) 66 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 67 endif 65 68 66 69 $(DEPEND): -
uspace/lib/softfloat/Makefile.common
r4da7d79 r6ef2c11 34 34 DEPEND = Makefile.depend 35 35 DEPEND_PREV = $(DEPEND).prev 36 JOB = softfloat.job 36 37 LIBSOFTFLOAT = libsoftfloat.a -
uspace/lib/softint/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( LIBSOFTINT)39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBSOFTINT) 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/lib/softint/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/lib/softint/Makefile.common
r4da7d79 r6ef2c11 34 34 DEPEND = Makefile.depend 35 35 DEPEND_PREV = $(DEPEND).prev 36 JOB = softint.job 36 37 LIBSOFTINT = libsoftint.a -
uspace/srv/bd/ata_bd/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/bd/ata_bd/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/srv/bd/ata_bd/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = ata_bd.job 39 40 OUTPUT = ata_bd -
uspace/srv/bd/file_bd/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/bd/file_bd/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/srv/bd/file_bd/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = file_bd.job 39 40 OUTPUT = file_bd -
uspace/srv/bd/gxe_bd/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/bd/gxe_bd/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/srv/bd/gxe_bd/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = gxe_bd.job 39 40 OUTPUT = gxe_bd -
uspace/srv/bd/rd/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/bd/rd/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/srv/bd/rd/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = rd.job 39 40 OUTPUT = rd -
uspace/srv/clip/Makefile
r4da7d79 r6ef2c11 33 33 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 34 34 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 35 $(MAKE) -f Makefile.build 35 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 36 37 37 clean: 38 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm38 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 39 39 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/clip/Makefile.build
r4da7d79 r6ef2c11 57 57 %.o: %.c $(DEPEND) 58 58 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 59 ifeq ($(PRECHECK),y) 60 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 61 endif 59 62 60 63 $(DEPEND): -
uspace/srv/clip/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = clip.job 39 40 OUTPUT = clip -
uspace/srv/devmap/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/devmap/Makefile.build
r4da7d79 r6ef2c11 56 56 %.o: %.c $(DEPEND) 57 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 58 61 59 62 $(DEPEND): -
uspace/srv/devmap/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = devmap.job 39 40 OUTPUT = devmap -
uspace/srv/fs/devfs/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/fs/devfs/Makefile.build
r4da7d79 r6ef2c11 59 59 %.o: %.c $(DEPEND) 60 60 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 61 ifeq ($(PRECHECK),y) 62 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 63 endif 61 64 62 65 $(DEPEND): -
uspace/srv/fs/devfs/Makefile.common
r4da7d79 r6ef2c11 38 38 DEPEND = Makefile.depend 39 39 DEPEND_PREV = $(DEPEND).prev 40 JOB = devfs.job 40 41 OUTPUT = devfs -
uspace/srv/fs/fat/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/fs/fat/Makefile.build
r4da7d79 r6ef2c11 62 62 %.o: %.c $(DEPEND) 63 63 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 64 ifeq ($(PRECHECK),y) 65 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 66 endif 64 67 65 68 $(DEPEND): -
uspace/srv/fs/fat/Makefile.common
r4da7d79 r6ef2c11 39 39 DEPEND = Makefile.depend 40 40 DEPEND_PREV = $(DEPEND).prev 41 JOB = fat.job 41 42 OUTPUT = fat -
uspace/srv/fs/tmpfs/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/fs/tmpfs/Makefile.build
r4da7d79 r6ef2c11 60 60 %.o: %.c $(DEPEND) 61 61 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 62 ifeq ($(PRECHECK),y) 63 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 64 endif 62 65 63 66 $(DEPEND): -
uspace/srv/fs/tmpfs/Makefile.common
r4da7d79 r6ef2c11 39 39 DEPEND = Makefile.depend 40 40 DEPEND_PREV = $(DEPEND).prev 41 JOB = tmpfs.job 41 42 OUTPUT = tmpfs -
uspace/srv/loader/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm arch/*/_link.ld39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm arch/*/_link.ld 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/loader/Makefile.build
r4da7d79 r6ef2c11 66 66 %.o: %.c $(DEPEND) 67 67 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 68 ifeq ($(PRECHECK),y) 69 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 70 endif 68 71 69 72 %.o: %.s $(DEPEND) 70 73 $(AS) $(AFLAGS) $< -o $@ 74 ifeq ($(PRECHECK),y) 75 $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) 76 endif 71 77 72 78 $(DEPEND): -
uspace/srv/loader/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = loader.job 39 40 OUTPUT = loader -
uspace/srv/ns/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/ns/Makefile.build
r4da7d79 r6ef2c11 59 59 %.o: %.c $(DEPEND) 60 60 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 61 ifeq ($(PRECHECK),y) 62 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 63 endif 61 64 62 65 $(DEPEND): -
uspace/srv/ns/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = ns.job 39 40 OUTPUT = ns -
uspace/srv/vfs/Makefile
r4da7d79 r6ef2c11 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $( OUTPUT) $(OUTPUT).map $(OUTPUT).disasm39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 40 find . -name '*.o' -follow -exec rm \{\} \; -
uspace/srv/vfs/Makefile.build
r4da7d79 r6ef2c11 61 61 %.o: %.c $(DEPEND) 62 62 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 63 ifeq ($(PRECHECK),y) 64 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 65 endif 63 66 64 67 $(DEPEND): -
uspace/srv/vfs/Makefile.common
r4da7d79 r6ef2c11 37 37 DEPEND = Makefile.depend 38 38 DEPEND_PREV = $(DEPEND).prev 39 JOB = vfs.job 39 40 OUTPUT = vfs
Note:
See TracChangeset
for help on using the changeset viewer.