Changes in / [d85a01c:f5d51de] in mainline
- Files:
-
- 292 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
rd85a01c rf5d51de 554 554 ! CONFIG_WRITE_CORE_FILES (n/y) 555 555 556 % Include development files (headers, libraries)557 ! [RDFMT=tmpfs|RDFMT=ext2fs] CONFIG_DEVEL_FILES (n/y)558 559 556 % Strip binaries 560 557 ! CONFIG_STRIP_BINARIES (n/y) … … 565 562 % Barebone build with essential binaries only 566 563 ! CONFIG_BAREBONE (n/y) 567 568 % Build pcc binaries569 ! CONFIG_PCC (n/y)570 571 % Build binutils binaries572 ! CONFIG_BINUTILS (n/y)573 564 574 565 % Line debugging information -
Makefile
rd85a01c rf5d51de 66 66 # Autotool (detects compiler features) 67 67 68 autotool $(COMMON_MAKEFILE) $(COMMON_HEADER): $(CONFIG_MAKEFILE) 68 $(COMMON_MAKEFILE): autotool 69 $(COMMON_HEADER): autotool 70 71 autotool: $(CONFIG_MAKEFILE) 69 72 $(AUTOTOOL) 70 73 -[ -f $(COMMON_HEADER_PREV) ] && diff -q $(COMMON_HEADER_PREV) $(COMMON_HEADER) && mv -f $(COMMON_HEADER_PREV) $(COMMON_HEADER) … … 72 75 # Build-time configuration 73 76 74 config_default $(CONFIG_MAKEFILE) $(CONFIG_HEADER): $(CONFIG_RULES) 77 $(CONFIG_MAKEFILE): config_default 78 $(CONFIG_HEADER): config_default 79 80 config_default: $(CONFIG_RULES) 75 81 ifeq ($(HANDS_OFF),y) 76 82 $(CONFIG) $< hands-off $(PROFILE) … … 94 100 distclean: clean 95 101 rm -f $(CSCOPE).out $(COMMON_MAKEFILE) $(COMMON_HEADER) $(COMMON_HEADER_PREV) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) tools/*.pyc tools/checkers/*.pyc release/HelenOS-* 96 cd ./uspace/app/binutils/; ./distclean.sh97 102 98 103 clean: -
boot/Makefile
rd85a01c rf5d51de 61 61 cp "$$file" "$(DIST_PATH)/lib/" ; \ 62 62 done 63 ifeq ($(CONFIG_DEVEL_FILES), y)64 mkdir "$(DIST_PATH)/inc/c/"65 cp -r -L "$(USPACE_PATH)/lib/c/include/." "$(DIST_PATH)/inc/c/"66 cat "$(USPACE_PATH)/lib/c/arch/$(UARCH)/_link.ld" | sed 's/^STARTUP(.*)$$//g' > "$(DIST_PATH)/inc/_link.ld"67 endif68 63 for file in $(RD_APPS) ; do \ 69 64 cp "$$file" "$(DIST_PATH)/app/" ; \ … … 99 94 rm -rf $(USPACE_PATH)/dist/drv/* 100 95 rm -f $(USPACE_PATH)/dist/lib/* 101 rm -rf $(USPACE_PATH)/dist/inc/*102 96 rm -f $(USPACE_PATH)/dist/app/* 103 97 rm -f $(USPACE_PATH)/dist/cfg/net/* -
boot/Makefile.common
rd85a01c rf5d51de 126 126 127 127 RD_LIBS = 128 129 ifeq ($(CONFIG_DEVEL_FILES), y)130 RD_LIBS += \131 $(USPACE_PATH)/lib/c/libc.a \132 $(USPACE_PATH)/lib/softint/libsoftint.a \133 $(USPACE_PATH)/lib/softfloat/libsoftfloat.a134 endif135 128 136 129 ifeq ($(CONFIG_BUILD_SHARED_LIBS), y) … … 178 171 $(USPACE_PATH)/app/websrv/websrv 179 172 180 ifeq ($(CONFIG_PCC),y)181 RD_APPS_NON_ESSENTIAL += \182 $(USPACE_PATH)/app/cc/cc \183 $(USPACE_PATH)/app/ccom/ccom \184 $(USPACE_PATH)/app/ccom/mkext/cc_mkext \185 $(USPACE_PATH)/app/cpp/cpp186 endif187 188 ifeq ($(CONFIG_BINUTILS),y)189 RD_APPS_NON_ESSENTIAL += \190 $(USPACE_PATH)/app/binutils/bin/as \191 $(USPACE_PATH)/app/binutils/bin/ld192 endif193 194 173 ifneq ($(CONFIG_BAREBONE),y) 195 174 NET_CFG = \ -
uspace/Makefile
rd85a01c rf5d51de 111 111 drv/bus/usb/vhc 112 112 113 ifeq ($(CONFIG_PCC),y)114 DIRS += \115 app/cc \116 app/ccom \117 app/ccom/mkext \118 app/cpp119 endif120 121 ifeq ($(CONFIG_BINUTILS),y)122 DIRS += \123 app/binutils124 endif125 126 113 ## Networking 127 114 # … … 188 175 lib/usbdev \ 189 176 lib/usbhid \ 190 lib/usbvirt \ 191 lib/posix 177 lib/usbvirt 192 178 193 179 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
rd85a01c rf5d51de 44 44 # EXTRA_CLEAN additional cleanup targets 45 45 # 46 # POSIX_COMPAT set to 'y' to use POSIX compatibility layer47 #48 46 # Optionally, for a binary: 49 47 # STATIC_NEEDED set to 'y' for init binaries, will build statically … … 106 104 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint 107 105 108 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix109 110 106 LIBBLOCK_PREFIX = $(LIB_PREFIX)/block 111 107 LIBFS_PREFIX = $(LIB_PREFIX)/fs … … 217 213 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 218 214 219 ifeq ($(POSIX_COMPAT),y)220 CFLAGS = -I$(LIBPOSIX_PREFIX)221 LIBS += $(LIBPOSIX_PREFIX)/libposix.a222 endif223 224 215 ifeq ($(COMPILER),gcc_cross) 225 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)216 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS) 226 217 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 227 218 endif 228 219 229 220 ifeq ($(COMPILER),gcc_native) 230 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)221 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS) 231 222 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 232 223 endif 233 224 234 225 ifeq ($(COMPILER),icc) 235 CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)226 CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS) 236 227 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 237 228 endif 238 229 239 230 ifeq ($(COMPILER),clang) 240 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)231 CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 241 232 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 242 233 endif -
uspace/app/bdsh/input.c
rd85a01c rf5d51de 169 169 new_iostate.stdout = to; 170 170 } 171 172 if (str_cmp(actual_cmd[0], "batch") == 0 && actual_cmd[1] != NULL) { 173 FILE *batch = fopen(actual_cmd[1], "r"); 174 if (batch == NULL) { 175 printf("Cannot open file %s\n", actual_cmd[1]); 176 rc = errno; 177 } else { 178 cliuser_t fusr; 179 fusr.name = usr->name; 180 fusr.cwd = usr->cwd; 181 fusr.prompt = usr->prompt; 182 fusr.line = malloc(INPUT_MAX + 1); 183 char *cur = fusr.line; 184 char *end = fusr.line + INPUT_MAX; 185 int c = fgetc(batch); 186 while (fusr.line != NULL) { 187 if (c == '\n' || c == EOF || cur == end) { 188 *cur = '\0'; 189 if (cur == fusr.line) { 190 /* skip empty line */ 191 rc = 0; 192 free(cur); 193 } else { 194 printf(">%s\n", fusr.line); 195 rc = process_input(&fusr); 196 /* fusr->line was freed by process_input() */ 197 } 198 if (rc == 0 && c != EOF) { 199 fusr.line = malloc(INPUT_MAX + 1); 200 cur = fusr.line; 201 end = fusr.line + INPUT_MAX; 202 } else { 203 break; 204 } 205 } else { 206 *cur++ = c; 207 } 208 c = fgetc(batch); 209 } 210 fclose(batch); 211 } 212 } else { 213 rc = run_command(actual_cmd, usr, &new_iostate); 214 } 171 172 rc = run_command(actual_cmd, usr, &new_iostate); 215 173 216 174 finit_with_files: -
uspace/app/tetris/tetris.c
rd85a01c rf5d51de 291 291 for (j = i + 1; j <= 5; j++) { 292 292 if (keys[i] == keys[j]) 293 errx(1, " %s", "duplicate command keys specified.");293 errx(1, "duplicate command keys specified."); 294 294 } 295 295 -
uspace/lib/c/arch/abs32le/include/types.h
rd85a01c rf5d51de 51 51 typedef uint32_t size_t; 52 52 53 typedef int32_t intptr_t;54 53 typedef uint32_t uintptr_t; 55 54 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/amd64/include/types.h
rd85a01c rf5d51de 51 51 typedef uint64_t size_t; 52 52 53 typedef int64_t intptr_t;54 53 typedef uint64_t uintptr_t; 55 54 typedef uint64_t atomic_count_t; -
uspace/lib/c/arch/arm32/include/types.h
rd85a01c rf5d51de 52 52 typedef uint32_t size_t; 53 53 54 typedef int32_t intptr_t;55 54 typedef uint32_t uintptr_t; 56 55 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/ia32/include/atomic.h
rd85a01c rf5d51de 43 43 { 44 44 asm volatile ( 45 "lock incl % 0\n"46 : "+m" (val->count)45 "lock incl %[count]\n" 46 : [count] "+m" (val->count) 47 47 ); 48 48 } … … 51 51 { 52 52 asm volatile ( 53 "lock decl % 0\n"54 : "+m" (val->count)53 "lock decl %[count]\n" 54 : [count] "+m" (val->count) 55 55 ); 56 56 } … … 61 61 62 62 asm volatile ( 63 "lock xaddl % 1, %0\n"64 : "+m" (val->count),65 "+r" (r)63 "lock xaddl %[r], %[count]\n" 64 : [count] "+m" (val->count), 65 [r] "+r" (r) 66 66 ); 67 67 … … 74 74 75 75 asm volatile ( 76 "lock xaddl % 1, %0\n"77 : "+m" (val->count),78 "+r" (r)76 "lock xaddl %[r], %[count]\n" 77 : [count] "+m" (val->count), 78 [r] "+r" (r) 79 79 ); 80 80 -
uspace/lib/c/arch/ia32/include/ddi.h
rd85a01c rf5d51de 44 44 45 45 asm volatile ( 46 "inb %w 1, %b0\n"47 : "=a" (val)48 : "d" (port)46 "inb %w[port], %b[val]\n" 47 : [val] "=a" (val) 48 : [port] "d" (port) 49 49 ); 50 50 … … 57 57 58 58 asm volatile ( 59 "inw %w 1, %w0\n"60 : "=a" (val)61 : "d" (port)59 "inw %w[port], %w[val]\n" 60 : [val] "=a" (val) 61 : [port] "d" (port) 62 62 ); 63 63 … … 70 70 71 71 asm volatile ( 72 "inl %w 1, %0\n"73 : "=a" (val)74 : "d" (port)72 "inl %w[port], %[val]\n" 73 : [val] "=a" (val) 74 : [port] "d" (port) 75 75 ); 76 76 … … 81 81 { 82 82 asm volatile ( 83 "outb %b 0, %w1\n"84 :: "a" (val),"d" (port)83 "outb %b[val], %w[port]\n" 84 :: [val] "a" (val), [port] "d" (port) 85 85 ); 86 86 } … … 89 89 { 90 90 asm volatile ( 91 "outw %w 0, %w1\n"92 :: "a" (val),"d" (port)91 "outw %w[val], %w[port]\n" 92 :: [val] "a" (val), [port] "d" (port) 93 93 ); 94 94 } … … 97 97 { 98 98 asm volatile ( 99 "outl % 0, %w1\n"100 :: "a" (val),"d" (port)99 "outl %[val], %w[port]\n" 100 :: [val] "a" (val), [port] "d" (port) 101 101 ); 102 102 } -
uspace/lib/c/arch/ia32/include/types.h
rd85a01c rf5d51de 51 51 typedef uint32_t size_t; 52 52 53 typedef int32_t intptr_t;54 53 typedef uint32_t uintptr_t; 55 54 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/ia64/include/types.h
rd85a01c rf5d51de 61 61 typedef uint64_t size_t; 62 62 63 typedef int64_t intptr_t;64 63 typedef uint64_t uintptr_t; 65 64 typedef uint64_t atomic_count_t; -
uspace/lib/c/arch/mips32/include/types.h
rd85a01c rf5d51de 52 52 typedef uint32_t size_t; 53 53 54 typedef int32_t intptr_t;55 54 typedef uint32_t uintptr_t; 56 55 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/ppc32/include/types.h
rd85a01c rf5d51de 51 51 typedef uint32_t size_t; 52 52 53 typedef int32_t intptr_t;54 53 typedef uint32_t uintptr_t; 55 54 typedef uint32_t atomic_count_t; -
uspace/lib/c/arch/sparc64/include/types.h
rd85a01c rf5d51de 51 51 typedef uint64_t size_t; 52 52 53 typedef int64_t intptr_t;54 53 typedef uint64_t uintptr_t; 55 54 typedef uint64_t atomic_count_t;
Note:
See TracChangeset
for help on using the changeset viewer.