Changes in / [86aad6f:c88d91e8] in mainline
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r86aad6f rc88d91e8 65 65 cp -r -L "$(ROOT_PATH)/abi/include/." "$(DIST_PATH)/inc/c/" 66 66 cp -r -L "$(USPACE_PATH)/lib/c/arch/$(UARCH)/include/." "$(DIST_PATH)/inc/c/" 67 cp -L "$(USPACE_PATH)/lib/c/crt0.o" "$(DIST_PATH)/lib/" 68 cp -L "$(USPACE_PATH)/lib/c/crt1.o" "$(DIST_PATH)/lib/" 69 cp -L "$(LIBGCC_PATH)" "$(DIST_PATH)/lib/" 67 cat "$(USPACE_PATH)/lib/c/arch/$(UARCH)/_link.ld" | sed 's/^STARTUP(.*)$$//g' > "$(DIST_PATH)/inc/_link.ld" 70 68 endif 71 69 -
tools/autotool.py
r86aad6f rc88d91e8 320 320 check_app([common['GCC'], "--version"], "GNU GCC", details) 321 321 322 def check_libgcc(common):323 sys.stderr.write("Checking for libgcc.a ... ")324 libgcc_path = None325 proc = subprocess.Popen([ common['GCC'], "-print-search-dirs" ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)326 for line in proc.stdout:327 line = line.decode('utf-8').strip('\n')328 parts = line.split()329 if parts[0] == "install:":330 p = parts[1] + "libgcc.a"331 if os.path.isfile(p):332 libgcc_path = p333 proc.wait()334 335 if libgcc_path is None:336 sys.stderr.write("failed\n")337 print_error(["Unable to find gcc library (libgcc.a).",338 "",339 "Please ensure that you have installed the",340 "toolchain properly."])341 342 sys.stderr.write("ok\n")343 common['LIBGCC_PATH'] = libgcc_path344 345 346 322 def check_binutils(path, prefix, common, details): 347 323 "Check for binutils toolchain" … … 600 576 cc_autogen = None 601 577 602 # We always need to check for GCC as we603 # need libgcc604 check_gcc(path, prefix, common, PACKAGE_CROSS)605 606 578 # Compiler 607 579 if (config['COMPILER'] == "gcc_cross"): 580 check_gcc(path, prefix, common, PACKAGE_CROSS) 608 581 check_binutils(path, prefix, common, PACKAGE_CROSS) 609 582 … … 628 601 if (config['INTEGRATED_AS'] == "no"): 629 602 common['CC'] += " -no-integrated-as" 630 631 # Find full path to libgcc632 check_libgcc(common)633 603 634 604 # Platform-specific utilities
Note:
See TracChangeset
for help on using the changeset viewer.