Changeset 795e2bf in mainline
- Timestamp:
- 2015-03-15T15:31:49Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e4c5f0, 58775d30, eec5795
- Parents:
- c12f891
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
rc12f891 r795e2bf 299 299 % Compiler 300 300 @ "gcc_cross" GNU C Compiler (cross-compiler) 301 @ " gcc_native" GNU C Compiler (native)301 @ "clang" Clang 302 302 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 303 303 @ "icc" Intel C Compiler 304 @ " clang" Clang304 @ "gcc_native" GNU C Compiler (native) 305 305 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice) 306 306 307 307 % Compiler 308 308 @ "gcc_cross" GNU C Compiler (cross-compiler) 309 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 310 @ "icc" Intel C Compiler 309 311 @ "gcc_native" GNU C Compiler (native) 310 @ "icc" Intel C Compiler311 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler)312 312 ! [PLATFORM=ia64] COMPILER (choice) 313 313 314 314 % Compiler 315 315 @ "gcc_cross" GNU C Compiler (cross-compiler) 316 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 316 317 @ "gcc_native" GNU C Compiler (native) 317 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 318 ! [PLATFORM=mips32|PLATFORM=ppc32] COMPILER (choice) 318 ! [PLATFORM=sparc32] COMPILER (choice) 319 319 320 320 % Compiler 321 321 @ "gcc_cross" GNU C Compiler (cross-compiler) 322 @ "clang" Clang 323 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 322 324 @ "gcc_native" GNU C Compiler (native) 323 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 324 @ "clang" Clang 325 ! [PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc32|PLATFORM=sparc64] COMPILER (choice) 325 ! [PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64] COMPILER (choice) 326 326 327 327 -
kernel/Makefile
rc12f891 r795e2bf 105 105 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 106 106 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 107 - Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \107 -std=gnu99 -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 108 108 -Werror-implicit-function-declaration -Wwrite-strings \ 109 -integrated-as \ 110 -pipe -target $(CLANG_TARGET) 109 -integrated-as -pipe -target $(CLANG_TARGET) 111 110 112 111 ifeq ($(CONFIG_DEBUG),y) -
tools/autogen.py
rc12f891 r795e2bf 66 66 for i in range(len(struct['members'])): 67 67 member = struct['members'][i] 68 code = code + ("\temit_constant(%s_OFFSET_%s, offsetof(%s_t, %s));\n" % 68 code = code + ("\temit_constant(%s_OFFSET_%s, offsetof(%s_t, %s));\n" % 69 69 (struct['name'].upper(), member['name'].upper(), struct['name'], 70 70 member['name'])) 71 code = code + ("\temit_constant(%s_SIZE_%s, sizeof(((%s_t *) 0)->%s));\n" % 71 code = code + ("\temit_constant(%s_SIZE_%s, sizeof(((%s_t *) 0)->%s));\n" % 72 72 (struct['name'].upper(), member['name'].upper(), struct['name'], 73 73 member['name'])) 74 74 if 'elements' in member.keys(): 75 code = code + ("\temit_constant(%s_%s_ITEM_SIZE, sizeof(%s));\n" % 75 code = code + ("\temit_constant(%s_%s_ITEM_SIZE, sizeof(%s));\n" % 76 76 (struct['name'].upper(), member['name'].upper(), member['type'])) 77 77 … … 83 83 84 84 code = """ 85 %s 85 %s 86 86 87 87 #define str(s) #s … … 92 92 %s 93 93 94 int main() 94 extern int main(int, char *[]); 95 96 int main(int argc, char *argv[]) 95 97 { 96 98 %s … … 100 102 """ % (generate_includes(struct), generate_struct(struct), 101 103 generate_probes(struct), name.upper(), typename) 102 104 103 105 return code 104 106 … … 167 169 168 170 run() 169 -
tools/autotool.py
rc12f891 r795e2bf 88 88 AUTOTOOL_DECLARE("floatsize", "", tag, #type, "", "", sizeof(type)); 89 89 90 extern int main(int, char *[]); 91 90 92 int main(int argc, char *argv[]) 91 93 { … … 115 117 AUTOTOOL_DECLARE("intsize", "signed", tag, #type, "", "", sizeof(signed type)); 116 118 119 extern int main(int, char *[]); 120 117 121 int main(int argc, char *argv[]) 118 122 { … … 216 220 if (config['CROSS_TARGET'] == "arm32"): 217 221 gnu_target = "arm-linux-gnueabi" 218 clang_target = "arm-unknown- linux"222 clang_target = "arm-unknown-none" 219 223 helenos_target = "arm-helenos-gnueabi" 220 224 221 225 if (config['CROSS_TARGET'] == "ia32"): 222 226 gnu_target = "i686-pc-linux-gnu" 223 clang_target = "i 386-unknown-linux"227 clang_target = "i686-unknown-none" 224 228 helenos_target = "i686-pc-helenos" 225 229 226 230 if (config['CROSS_TARGET'] == "mips32"): 231 cc_args.append("-mabi=32") 227 232 gnu_target = "mipsel-linux-gnu" 228 clang_target = "mipsel-unknown- linux"233 clang_target = "mipsel-unknown-none" 229 234 helenos_target = "mipsel-helenos" 230 common['CC_ARGS'].append("-mabi=32")231 235 232 236 if (config['PLATFORM'] == "amd64"): 233 237 target = config['PLATFORM'] 234 238 gnu_target = "amd64-linux-gnu" 235 clang_target = "x86_64-unknown- linux"239 clang_target = "x86_64-unknown-none" 236 240 helenos_target = "amd64-helenos" 237 241 … … 239 243 target = config['PLATFORM'] 240 244 gnu_target = "arm-linux-gnueabi" 241 clang_target = "arm-unknown- linux"245 clang_target = "arm-unknown-none-eabi" 242 246 helenos_target = "arm-helenos-gnueabi" 243 247 … … 245 249 target = config['PLATFORM'] 246 250 gnu_target = "i686-pc-linux-gnu" 247 clang_target = "i 386-unknown-linux"251 clang_target = "i686-unknown-none" 248 252 helenos_target = "i686-pc-helenos" 249 253 … … 260 264 target = config['PLATFORM'] 261 265 gnu_target = "mipsel-linux-gnu" 262 clang_target = "mipsel-unknown- linux"266 clang_target = "mipsel-unknown-none" 263 267 helenos_target = "mipsel-helenos" 264 268 … … 266 270 target = "mips32eb" 267 271 gnu_target = "mips-linux-gnu" 268 clang_target = "mips-unknown- linux"272 clang_target = "mips-unknown-none" 269 273 helenos_target = "mips-helenos" 270 274 … … 276 280 target = config['PLATFORM'] 277 281 gnu_target = "mips64el-linux-gnu" 278 clang_target = "mips64el-unknown- linux"282 clang_target = "mips64el-unknown-none" 279 283 helenos_target = "mips64el-helenos" 280 284 … … 282 286 target = config['PLATFORM'] 283 287 gnu_target = "ppc-linux-gnu" 284 clang_target = "p owerpc-unknown-linux"288 clang_target = "ppc-unknown-none" 285 289 helenos_target = "ppc-helenos" 286 290 … … 293 297 target = config['PLATFORM'] 294 298 gnu_target = "sparc64-linux-gnu" 295 clang_target = "sparc-unknown- linux"299 clang_target = "sparc-unknown-none" 296 300 helenos_target = "sparc64-helenos" 297 301 … … 417 421 418 422 for typedef in floatsizes: 419 outf.write("\ nDECLARE_FLOATSIZE(\"%s\", %s);\n" % (typedef['tag'], typedef['type']))423 outf.write("\tDECLARE_FLOATSIZE(\"%s\", %s);\n" % (typedef['tag'], typedef['type'])) 420 424 421 425 outf.write(PROBE_TAIL) … … 889 893 890 894 if (config['COMPILER'] == "icc"): 891 common['CC'] = "icc"892 895 check_app([common['CC'], "-V"], "Intel C++ Compiler", "support is experimental") 893 896 check_gcc(None, "", common, PACKAGE_GCC) 894 897 check_binutils(None, binutils_prefix, common, PACKAGE_BINUTILS) 898 899 common['CC'] = "icc" 895 900 896 901 if (config['COMPILER'] == "clang"): -
uspace/Makefile.common
rc12f891 r795e2bf 247 247 # something won't break because of that: 248 248 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 249 CLANG_CFLAGS = $( LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \249 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 250 250 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 251 251 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 252 -Werror-implicit-function-declaration -Wwrite-strings \ 253 -integrated-as \ 254 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 252 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 253 -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 255 254 256 255 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 290 289 291 290 ifeq ($(COMPILER),gcc_cross) 292 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)291 CFLAGS += $(GCC_CFLAGS) 293 292 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 294 293 endif 295 294 296 295 ifeq ($(COMPILER),gcc_helenos) 297 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)296 CFLAGS += $(GCC_CFLAGS) 298 297 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 299 298 endif 300 299 301 300 ifeq ($(COMPILER),gcc_native) 302 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)301 CFLAGS += $(GCC_CFLAGS) 303 302 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 304 303 endif 305 304 306 305 ifeq ($(COMPILER),icc) 307 CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)306 CFLAGS += $(ICC_CFLAGS) 308 307 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 309 308 endif 310 309 311 310 ifeq ($(COMPILER),clang) 312 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 313 GCC_CFLAGS += $(EXTRA_CFLAGS) 311 CFLAGS += $(CLANG_CFLAGS) 314 312 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 315 313 endif … … 373 371 374 372 %.o: %.S $(DEPEND) 375 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@376 ifeq ($(PRECHECK),y) 377 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__373 $(GCC) $(DEFS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@ 374 ifeq ($(PRECHECK),y) 375 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ 378 376 endif 379 377 … … 385 383 386 384 %.o: %.c $(DEPEND) 387 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@388 ifeq ($(PRECHECK),y) 389 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 385 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@ 386 ifeq ($(PRECHECK),y) 387 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) 390 388 endif 391 389 392 390 %.test.o: %.c $(DEPEND) 393 $(CC) $(DEFS) $(CFLAGS) $( TEST_CFLAGS) -c $< -o $@394 ifeq ($(PRECHECK),y) 395 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 391 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) -c $< -o $@ 392 ifeq ($(PRECHECK),y) 393 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) 396 394 endif 397 395 398 396 %.lo: %.S $(DEPEND) 399 $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@400 ifeq ($(PRECHECK),y) 401 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $( CFLAGS) -D__ASM__397 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@ 398 ifeq ($(PRECHECK),y) 399 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ 402 400 endif 403 401 … … 409 407 410 408 %.lo: %.c $(DEPEND) 411 $(CC) $(DEFS) $(LIB_CFLAGS) -c $< -o $@412 ifeq ($(PRECHECK),y) 413 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $( CFLAGS)409 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@ 410 ifeq ($(PRECHECK),y) 411 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) 414 412 endif 415 413 416 414 $(DEPEND): $(PRE_DEPEND) 417 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null415 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null 418 416 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 419 417
Note:
See TracChangeset
for help on using the changeset viewer.