Changeset 383ddd6 in mainline for uspace/srv
- Timestamp:
- 2010-01-20T20:33:55Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 975e7e9
- Parents:
- 6c01702 (diff), 3c081d0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/srv
- Files:
-
- 35 deleted
- 29 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/Makefile.common
r6c01702 r383ddd6 28 28 # 29 29 30 ## Setup toolchain30 ## Common rules for building servers. 31 31 # 32 32 33 include Makefile.common 34 include $(LIBC_PREFIX)/Makefile.toolchain 35 include arch/$(UARCH)/Makefile.inc 36 37 CFLAGS += -Iinclude 38 LINK = arch/$(UARCH)/_link.ld 39 40 # # Sources33 # Individual makefiles set: 34 # 35 # USPACE_PREFIX relative path to uspace/ directory 36 # LIBS libraries to link with (with relative path) 37 # EXTRA_CFLAGS additional flags to pass to C compiler 38 # JOB job file name (like appname.job) 39 # OUTPUT output binary name (like appname) 40 # SOURCES list of source files 41 41 # 42 42 43 GENERIC_SOURCES = \ 44 main.c \ 45 elf_load.c \ 46 interp.s 43 DEPEND = Makefile.depend 44 DEPEND_PREV = $(DEPEND).prev 47 45 48 SOURCES := $(GENERIC_SOURCES) $(ARCH_SOURCES) 46 LIBC_PREFIX = $(USPACE_PREFIX)/lib/libc 47 LIBBLOCK_PREFIX = $(USPACE_PREFIX)/lib/libblock 48 LIBFS_PREFIX = $(USPACE_PREFIX)/lib/libfs 49 LIBPCI_PREFIX = $(USPACE_PREFIX)/lib/libpci 50 SOFTINT_PREFIX = $(USPACE_PREFIX)/lib/softint 51 52 LINK_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 53 54 JOB = $(OUTPUT).job 55 49 56 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 50 57 51 .PHONY: all 58 include $(LIBC_PREFIX)/Makefile.toolchain 52 59 53 all: $(OUTPUT) $(OUTPUT).disasm 60 CFLAGS += $(EXTRA_CFLAGS) 61 62 .PHONY: all build clean 63 64 all: \ 65 $(LIBC_PREFIX)/../../../version \ 66 $(LIBC_PREFIX)/../../../Makefile.config \ 67 $(LIBC_PREFIX)/../../../config.h \ 68 $(LIBC_PREFIX)/../../../config.defs \ 69 $(LIBS) \ 70 \ 71 $(OUTPUT) $(OUTPUT).disasm \ 72 $(EXTRA_OUTPUT) 73 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 74 75 clean: 76 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm $(EXTRA_OUTPUT) 77 find . -name '*.o' -follow -exec rm \{\} \; 78 79 build: 54 80 55 81 -include $(DEPEND) … … 58 84 $(OBJDUMP) -d $< > $@ 59 85 60 $(OUTPUT): $(OBJECTS) $(LIBS) $(LINK) 61 $(LD) -T $(LINK) $(LFLAGS) $(OBJECTS) $(LIBS) -o $@ -Map $(OUTPUT).map 62 63 $(LINK): $(LINK).in 64 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 86 $(OUTPUT): $(LINK_SCRIPT) $(OBJECTS) $(LIBS) 87 $(LD) -T $(LINK_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 65 88 66 89 %.o: %.c $(DEPEND) … … 70 93 endif 71 94 72 %.o: %.s $(DEPEND)73 $(AS) $(AFLAGS) $< -o $@74 ifeq ($(PRECHECK),y)75 $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS)76 endif77 78 95 $(DEPEND): 79 96 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null -
uspace/srv/bd/ata_bd/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = ata_bd 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 ata_bd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/bd/file_bd/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = file_bd 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 file_bd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/bd/gxe_bd/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = gxe_bd 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 gxe_bd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/bd/part/mbr_part/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = mbr_part 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 mbr_part.c 37 38 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 39 include ../../../Makefile.common -
uspace/srv/bd/rd/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = rd 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 rd.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../Makefile.common -
uspace/srv/clip/Makefile
r6c01702 r383ddd6 1 1 # 2 # Copyright (c) 2009 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 30 32 31 .PHONY: all clean 33 OUTPUT = clip 32 34 33 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 34 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 35 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 clip.c 36 37 37 clean: 38 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 39 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../Makefile.common -
uspace/srv/devmap/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = devmap 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 devmap.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../Makefile.common -
uspace/srv/fs/devfs/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBFS_PREFIX)/libfs.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS += -I$(LIBFS_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = devfs 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)36 SOURCES = \ 37 devfs.c \ 38 devfs_ops.c 37 39 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 40 include ../../Makefile.common -
uspace/srv/fs/fat/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBFS_PREFIX)/libfs.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS += -I$(LIBBLOCK_PREFIX) -I$(LIBFS_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = fat 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 fat.c \ 38 fat_ops.c \ 39 fat_idx.c \ 40 fat_dentry.c \ 41 fat_fat.c 37 42 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 43 include ../../Makefile.common -
uspace/srv/fs/fat/fat_fat.c
r6c01702 r383ddd6 247 247 */ 248 248 int 249 fat_get_cluster(fat_bs_t *bs, dev_handle_t dev_handle, fat_cluster_t clst,250 fat_cluster_t *value)249 fat_get_cluster(fat_bs_t *bs, dev_handle_t dev_handle, unsigned fatno, 250 fat_cluster_t clst, fat_cluster_t *value) 251 251 { 252 252 block_t *b; 253 253 uint16_t bps; 254 254 uint16_t rscnt; 255 uint16_t sf; 255 256 fat_cluster_t *cp; 256 257 int rc; … … 258 259 bps = uint16_t_le2host(bs->bps); 259 260 rscnt = uint16_t_le2host(bs->rscnt); 260 261 rc = block_get(&b, dev_handle, rscnt + 261 sf = uint16_t_le2host(bs->sec_per_fat); 262 263 rc = block_get(&b, dev_handle, rscnt + sf * fatno + 262 264 (clst * sizeof(fat_cluster_t)) / bps, BLOCK_FLAGS_NONE); 263 265 if (rc != EOK) … … 398 400 * from the size of the file allocation table. 399 401 */ 400 if ((cl - 2) * bs->spc + ssa >= ts) {402 if ((cl >= 2) && ((cl - 2) * bs->spc + ssa >= ts)) { 401 403 rc = block_put(blk); 402 404 if (rc != EOK) … … 480 482 while (firstc < FAT_CLST_LAST1) { 481 483 assert(firstc >= FAT_CLST_FIRST && firstc < FAT_CLST_BAD); 482 rc = fat_get_cluster(bs, dev_handle, firstc, &nextc);484 rc = fat_get_cluster(bs, dev_handle, FAT1, firstc, &nextc); 483 485 if (rc != EOK) 484 486 return rc; … … 560 562 unsigned fatno; 561 563 562 rc = fat_get_cluster(bs, dev_handle, lastc, &nextc);564 rc = fat_get_cluster(bs, dev_handle, FAT1, lastc, &nextc); 563 565 if (rc != EOK) 564 566 return rc; -
uspace/srv/fs/fat/fat_fat.h
r6c01702 r383ddd6 80 80 extern int fat_alloc_shadow_clusters(struct fat_bs *, dev_handle_t, 81 81 fat_cluster_t *, unsigned); 82 extern int fat_get_cluster(struct fat_bs *, dev_handle_t, fat_cluster_t,83 fat_cluster_t *);82 extern int fat_get_cluster(struct fat_bs *, dev_handle_t, unsigned, 83 fat_cluster_t, fat_cluster_t *); 84 84 extern int fat_set_cluster(struct fat_bs *, dev_handle_t, unsigned, 85 85 fat_cluster_t, fat_cluster_t); -
uspace/srv/fs/fat/fat_ops.c
r6c01702 r383ddd6 290 290 291 291 *nodepp = nodep; 292 return EOK; 293 } 294 295 /** Perform basic sanity checks on the file system. 296 * 297 * Verify if values of boot sector fields are sane. Also verify media 298 * descriptor. This is used to rule out cases when a device obviously 299 * does not contain a fat file system. 300 */ 301 static int fat_sanity_check(fat_bs_t *bs, dev_handle_t dev_handle) 302 { 303 fat_cluster_t e0, e1; 304 unsigned fat_no; 305 int rc; 306 307 /* Check number of FATs. */ 308 if (bs->fatcnt == 0) 309 return ENOTSUP; 310 311 /* Check total number of sectors. */ 312 313 if (bs->totsec16 == 0 && bs->totsec32 == 0) 314 return ENOTSUP; 315 316 if (bs->totsec16 != 0 && bs->totsec32 != 0 && 317 bs->totsec16 != bs->totsec32) 318 return ENOTSUP; 319 320 /* Check media descriptor. Must be between 0xf0 and 0xff. */ 321 if ((bs->mdesc & 0xf0) != 0xf0) 322 return ENOTSUP; 323 324 /* Check number of sectors per FAT. */ 325 if (bs->sec_per_fat == 0) 326 return ENOTSUP; 327 328 /* 329 * Check that the root directory entries take up whole blocks. 330 * This check is rather strict, but it allows us to treat the root 331 * directory and non-root directories uniformly in some places. 332 * It can be removed provided that functions such as fat_read() are 333 * sanitized to support file systems with this property. 334 */ 335 if ((uint16_t_le2host(bs->root_ent_max) * sizeof(fat_dentry_t)) % 336 uint16_t_le2host(bs->bps) != 0) 337 return ENOTSUP; 338 339 /* Check signature of each FAT. */ 340 341 for (fat_no = 0; fat_no < bs->fatcnt; fat_no++) { 342 rc = fat_get_cluster(bs, dev_handle, fat_no, 0, &e0); 343 if (rc != EOK) 344 return EIO; 345 346 rc = fat_get_cluster(bs, dev_handle, fat_no, 1, &e1); 347 if (rc != EOK) 348 return EIO; 349 350 /* Check that first byte of FAT contains the media descriptor. */ 351 if ((e0 & 0xff) != bs->mdesc) 352 return ENOTSUP; 353 354 /* 355 * Check that remaining bits of the first two entries are 356 * set to one. 357 */ 358 if ((e0 >> 8) != 0xff || e1 != 0xffff) 359 return ENOTSUP; 360 } 361 292 362 return EOK; 293 363 } … … 981 1051 } 982 1052 1053 /* Do some simple sanity checks on the file system. */ 1054 rc = fat_sanity_check(bs, dev_handle); 1055 if (rc != EOK) { 1056 block_fini(dev_handle); 1057 ipc_answer_0(rid, rc); 1058 return; 1059 } 1060 983 1061 rc = fat_idx_init_by_dev_handle(dev_handle); 984 1062 if (rc != EOK) { -
uspace/srv/fs/tmpfs/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBFS_PREFIX)/libfs.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS += -I$(LIBBLOCK_PREFIX) -I$(LIBFS_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = tmpfs 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 tmpfs.c \ 38 tmpfs_ops.c \ 39 tmpfs_dump.c 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 41 include ../../Makefile.common -
uspace/srv/hid/c_mouse/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS = -Iinclude 31 33 32 .PHONY: all clean 34 OUTPUT = c_mouse 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 proto/ps2.c \ 38 c_mouse.c \ 39 chardev.c 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 41 include ../../Makefile.common -
uspace/srv/hw/bus/pci/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBPCI_PREFIX)/libpci.a $(LIBC_PREFIX)/libc.a 32 EXTRA_CFLAGS = -I$(LIBPCI_PREFIX) 31 33 32 .PHONY: all clean 34 OUTPUT = pci 33 35 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 36 SOURCES = \ 37 pci.c 37 38 38 $(LIBPCI): 39 $(MAKE) -C libpci PRECHECK=$(PRECHECK) 40 41 clean: 42 $(MAKE) -C libpci clean 43 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 44 find . -name '*.o' -follow -exec rm \{\} \; 39 include ../../../Makefile.common -
uspace/srv/hw/bus/pci/pci.c
r6c01702 r383ddd6 21 21 #include <errno.h> 22 22 23 #include "libpci/pci.h"23 #include <pci.h> 24 24 25 25 #define PCI_CONF1 0xcf8 -
uspace/srv/hw/char/i8042/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = i8042 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 i8042.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../../Makefile.common -
uspace/srv/hw/cir/fhc/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = fhc 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 fhc.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../../Makefile.common -
uspace/srv/hw/cir/obio/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = obio 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 obio.c 37 37 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 38 include ../../../Makefile.common -
uspace/srv/loader/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 -include ../../../Makefile.config 31 -include arch/$(UARCH)/Makefile.inc 31 32 32 .PHONY: all clean 33 USPACE_PREFIX = ../.. 34 LIBS = $(LIBC_PREFIX)/libc.a 35 EXTRA_CFLAGS += -Iinclude 36 LINK_SCRIPT = arch/$(UARCH)/_link.ld 33 37 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 38 OUTPUT = loader 39 EXTRA_OUTPUT = $(LINK_SCRIPT) 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm arch/*/_link.ld 40 find . -name '*.o' -follow -exec rm \{\} \; 41 GENERIC_SOURCES = \ 42 main.c \ 43 elf_load.c \ 44 interp.s 45 46 SOURCES := $(GENERIC_SOURCES) $(ARCH_SOURCES) 47 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 48 49 include ../Makefile.common 50 51 $(LINK_SCRIPT): $(LINK_SCRIPT).in 52 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ -
uspace/srv/loader/arch/amd64/Makefile.inc
r6c01702 r383ddd6 27 27 # 28 28 29 CFLAGS += -D__64_BITS__29 EXTRA_CFLAGS = -D__64_BITS__ 30 30 ARCH_SOURCES := arch/$(UARCH)/amd64.s -
uspace/srv/loader/arch/arm32/Makefile.inc
r6c01702 r383ddd6 27 27 # 28 28 29 CFLAGS += -D__32_BITS__29 EXTRA_CFLAGS = -D__32_BITS__ 30 30 ARCH_SOURCES := arch/$(UARCH)/arm32.s -
uspace/srv/loader/arch/ia32/Makefile.inc
r6c01702 r383ddd6 27 27 # 28 28 29 CFLAGS += -D__32_BITS__29 EXTRA_CFLAGS = -D__32_BITS__ 30 30 ARCH_SOURCES := arch/$(UARCH)/ia32.s -
uspace/srv/loader/arch/ia64/Makefile.inc
r6c01702 r383ddd6 27 27 # 28 28 29 CFLAGS += -D__64_BITS__29 EXTRA_CFLAGS = -D__64_BITS__ 30 30 ARCH_SOURCES := arch/$(UARCH)/ia64.s 31 31 AFLAGS += -xexplicit -
uspace/srv/loader/arch/mips32/Makefile.inc
r6c01702 r383ddd6 27 27 # 28 28 29 CFLAGS += -D__32_BITS__29 EXTRA_CFLAGS = -D__32_BITS__ 30 30 ARCH_SOURCES := arch/$(UARCH)/mips32.s -
uspace/srv/loader/arch/ppc32/Makefile.inc
r6c01702 r383ddd6 27 27 # 28 28 29 CFLAGS += -D__32_BITS__29 EXTRA_CFLAGS = -D__32_BITS__ 30 30 ARCH_SOURCES := arch/$(UARCH)/ppc32.s -
uspace/srv/loader/arch/sparc64/Makefile.inc
r6c01702 r383ddd6 27 27 # 28 28 29 CFLAGS += -D__64_BITS__29 EXTRA_CFLAGS = -D__64_BITS__ 30 30 ARCH_SOURCES := arch/$(UARCH)/sparc64.s -
uspace/srv/ns/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = ns 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 ns.c \ 37 service.c \ 38 clonable.c \ 39 task.c 37 40 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 41 include ../Makefile.common -
uspace/srv/vfs/Makefile
r6c01702 r383ddd6 28 28 # 29 29 30 include Makefile.common 30 USPACE_PREFIX = ../.. 31 LIBS = $(LIBC_PREFIX)/libc.a 31 32 32 .PHONY: all clean 33 OUTPUT = vfs 33 34 34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 35 SOURCES = \ 36 vfs.c \ 37 vfs_node.c \ 38 vfs_file.c \ 39 vfs_ops.c \ 40 vfs_lookup.c \ 41 vfs_register.c 37 42 38 clean: 39 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm 40 find . -name '*.o' -follow -exec rm \{\} \; 43 include ../Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.