Changeset a5c468e in mainline
- Timestamp:
- 2018-11-11T20:21:08Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4640416
- Parents:
- 5c03bd30
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r5c03bd30 ra5c468e 13 13 /Makefile.common 14 14 /Makefile.config 15 /PKG 15 16 /common.h 16 17 /config.h 17 18 /cscope.out 19 /downloads 18 20 /hdisk.img 19 21 /image.boot … … 27 29 boot/arch/sparc64/_link.ld 28 30 boot/components.h 31 boot/components.o.new 29 32 boot/components.s 33 boot/components.tar 30 34 boot/components.zip 31 35 boot/components_desc.c … … 35 39 boot/image.raw 36 40 boot/initrd.img 41 boot/initrd.img.gz 37 42 common.h.new 38 43 deps.mk … … 51 56 kernel/generic/src/debug/real_map.bin 52 57 kernel/kernel.bin 58 kernel/kernel.bin.gz 53 59 kernel/kernel.dump 60 kernel/kernel.elf 61 kernel/kernel.elf.gz 54 62 kernel/kernel.raw 55 63 tag … … 71 79 tools/sparc64-linux-gnu 72 80 tools/sycek/ 81 tools/xcw/demo/viewer 73 82 uspace/app/barber/barber 74 83 uspace/app/barber/images.c … … 100 109 uspace/app/inet/inet 101 110 uspace/app/init/init 111 uspace/app/init/init.gz 102 112 uspace/app/kill/kill 103 113 uspace/app/killall/killall … … 133 143 uspace/app/tester/tester 134 144 uspace/app/testread/testread 145 uspace/app/testrunner/testrunner 135 146 uspace/app/testwrit/testwrit 136 147 uspace/app/tetris/tetris … … 152 163 uspace/app/vterm/vterm 153 164 uspace/app/vuhid/vuh 165 uspace/app/vuhid/vuhid 154 166 uspace/app/wavplay/wavplay 155 167 uspace/app/websrv/websrv … … 338 350 uspace/drv/test/test3/test3 339 351 uspace/drv/time/cmos-rtc/cmos-rtc 352 uspace/export 340 353 uspace/lib/c/arch/abs32le/_link-dlexe.ld 341 354 uspace/lib/c/arch/abs32le/_link-loader.ld … … 378 391 uspace/lib/math/test-libmath 379 392 uspace/lib/pcut/test-libpcut-* 393 uspace/lib/posix/gcc.specs 394 uspace/lib/posix/link.ld 380 395 uspace/lib/posix/test-libposix 381 396 uspace/lib/sif/test-libsif … … 384 399 uspace/srv/bd/file_bd/file_bd 385 400 uspace/srv/bd/rd/rd 401 uspace/srv/bd/rd/rd.gz 386 402 uspace/srv/bd/sata_bd/sata_bd 387 403 uspace/srv/bd/vbd/vbd … … 391 407 uspace/srv/fs/exfat/exfat 392 408 uspace/srv/fs/ext4fs/ext4fs 409 uspace/srv/fs/ext4fs/ext4fs.gz 393 410 uspace/srv/fs/fat/fat 411 uspace/srv/fs/fat/fat.gz 394 412 uspace/srv/fs/locfs/locfs 395 413 uspace/srv/fs/mfs/mfs … … 408 426 uspace/srv/hw/bus/cuda_adb/cuda_adb 409 427 uspace/srv/hw/char/s3c24xx_uart/s3c24ser 428 uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart 410 429 uspace/srv/hw/irc/obio/obio 411 430 uspace/srv/klog/klog 412 431 uspace/srv/loader/loader 432 uspace/srv/loader/loader.gz 413 433 uspace/srv/locsrv/locsrv 434 uspace/srv/locsrv/locsrv.gz 414 435 uspace/srv/logger/logger 436 uspace/srv/logger/logger.gz 415 437 uspace/srv/net/dhcp/dhcp 416 438 uspace/srv/net/dnsrsrv/dnsrsrv … … 424 446 uspace/srv/net/udp/udp 425 447 uspace/srv/ns/ns 448 uspace/srv/ns/ns.gz 426 449 uspace/srv/taskmon/taskmon 427 450 uspace/srv/test/chardev-test/chardev-test 428 451 uspace/srv/vfs/vfs 452 uspace/srv/vfs/vfs.gz 429 453 uspace/srv/volsrv/test-volsrv 430 454 uspace/srv/volsrv/volsrv 431 kernel/kernel.elf432 uspace/app/testrunner/testrunner433 uspace/app/vuhid/vuhid434 uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart435 boot/components.o.new436 boot/components.tar437 boot/initrd.img.gz438 kernel/kernel.elf.gz439 uspace/app/init/init.gz440 uspace/srv/bd/rd/rd.gz441 uspace/srv/fs/ext4fs/ext4fs.gz442 uspace/srv/loader/loader.gz443 uspace/srv/locsrv/locsrv.gz444 uspace/srv/logger/logger.gz445 uspace/srv/ns/ns.gz446 uspace/srv/vfs/vfs.gz447 kernel/kernel.bin.gz -
Makefile
r5c03bd30 ra5c468e 50 50 .PHONY: all precheck cscope cscope_parts autotool config_auto config_default config distclean clean check releasefile release common boot kernel uspace export-posix space 51 51 52 all: kernel uspace 52 all: kernel uspace export-cross test-xcw 53 53 $(MAKE) -r -C boot PRECHECK=$(PRECHECK) 54 54 … … 61 61 $(MAKE) -r -C uspace PRECHECK=$(PRECHECK) 62 62 63 test-xcw: uspace export-cross 64 export PATH=$$PATH:/data/helenos/master/tools/xcw/bin && $(MAKE) -r -C tools/xcw/demo 65 63 66 export-posix: common 64 67 ifndef EXPORT_DIR … … 67 70 $(MAKE) -r -C uspace export EXPORT_DIR=$(abspath $(EXPORT_DIR)) 68 71 endif 72 73 export-cross: common 74 $(MAKE) -r -C uspace export EXPORT_DIR=$(abspath uspace/export) 69 75 70 76 precheck: clean … … 155 161 $(MAKE) -r -C boot clean 156 162 $(MAKE) -r -C doxygen clean 163 $(MAKE) -r -C tools/xcw/demo clean 157 164 158 165 $(ERRNO_HEADER): $(ERRNO_INPUT) -
tools/xcw/bin/helenos-bld-config
r5c03bd30 ra5c468e 1 1 #!/bin/bash 2 2 # 3 # Copyright (c) 201 5Jiri Svoboda3 # Copyright (c) 2018 Jiri Svoboda 4 4 # All rights reserved. 5 5 # … … 35 35 MAKEFILE_COMMON="$SRC_ROOT"/Makefile.common 36 36 MAKEFILE_CONFIG="$SRC_ROOT"/Makefile.config 37 CONFIG_MK="$SRC_ROOT"/uspace/export/config.mk 37 38 38 39 # Extract simple 'name = value' variable definition from Makefile … … 42 43 file_name="$2" 43 44 44 sed -n "s/^$field_name = \\(.*\\)$/\\1/p" "$file_name" 45 sed -n "s/^$field_name \\{0,1\\}= \\{0,1\\}\\(.*\\)$/\\1/p" "$file_name" | \ 46 sed "s/^\"//" | sed "s/\"$//" 45 47 } 46 48 … … 54 56 echo "__${ENDIAN}__" 55 57 ;; 58 *.--cflags) extract_field "HELENOS_CFLAGS" "$CONFIG_MK";; 59 *.--ldflags) extract_field "HELENOS_LDFLAGS" "$CONFIG_MK";; 56 60 (*) 57 61 echo "Unknown option $1" >&2 -
tools/xcw/bin/helenos-cc
r5c03bd30 ra5c468e 1 1 #!/bin/bash 2 2 # 3 # Copyright (c) 201 5Jiri Svoboda3 # Copyright (c) 2018 Jiri Svoboda 4 4 # All rights reserved. 5 5 # … … 36 36 UARCH="$("$XCW"/helenos-bld-config --uarch)" 37 37 CC="$("$XCW"/helenos-bld-config --cc)" 38 CFLAGS="$("$XCW"/helenos-bld-config --cflags)" 38 39 ENDIAN="$("$XCW"/helenos-bld-config --endian)" 39 40 … … 41 42 "$CC" \ 42 43 -O3 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32LE -finput-charset=UTF-8 \ 43 -nostdlib\44 $CFLAGS \ 44 45 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 45 46 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings -ggdb \ -
tools/xcw/bin/helenos-ld
r5c03bd30 ra5c468e 1 1 #!/bin/bash 2 2 # 3 # Copyright (c) 201 5Jiri Svoboda3 # Copyright (c) 2018 Jiri Svoboda 4 4 # All rights reserved. 5 5 # … … 35 35 SRC_ROOT="$XCW/../../.." 36 36 UARCH="$("$XCW"/helenos-bld-config --uarch)" 37 CFLAGS="$("$XCW"/helenos-bld-config --cflags)" 38 LDFLAGS="$("$XCW"/helenos-bld-config --ldflags)" 37 39 CC="$("$XCW"/helenos-bld-config --cc)" 38 40 39 41 echo helenos-ld "$@" 40 42 "$CC" \ 43 $CFLAGS \ 41 44 "$@" \ 42 45 "$SRC_ROOT"/uspace/lib/c/crt0.o \ 43 46 "$SRC_ROOT"/uspace/lib/c/crt1.o \ 44 "$SRC_ROOT"/uspace/lib/c/libc.a 47 "$SRC_ROOT"/uspace/lib/c/libc.a \ 48 -lgcc -
uspace/Makefile
r5c03bd30 ra5c468e 278 278 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \; 279 279 find lib app drv srv -name '*.d' -follow -exec rm \{\} \; 280 rm -fr export 280 281 281 282 $(CLEANS):
Note:
See TracChangeset
for help on using the changeset viewer.