Changeset fcd7053 in mainline
- Timestamp:
- 2009-02-12T20:11:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa024ce
- Parents:
- 84266669
- Location:
- uspace
- Files:
-
- 1 added
- 59 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
r84266669 rfcd7053 55 55 app/bdsh 56 56 57 ifeq ($( ARCH),amd64)57 ifeq ($(UARCH),amd64) 58 58 DIRS += srv/pci 59 59 endif 60 60 61 ifeq ($( ARCH),ia32)61 ifeq ($(UARCH),ia32) 62 62 DIRS += srv/pci 63 endif64 65 ifeq ($(ARCH), mips32)66 CFLAGS += -DCONFIG_MIPS_FPU67 endif68 69 ifeq ($(ARCH), mips32eb)70 CFLAGS += -DCONFIG_MIPS_FPU71 63 endif 72 64 … … 76 68 .PHONY: all $(BUILDS) $(CLEANS) clean 77 69 78 all: ../Makefile.config $(BUILDS)70 all: ../Makefile.config ../config.h ../config.defs $(BUILDS) 79 71 80 72 clean: $(CLEANS) -
uspace/app/bdsh/Makefile
r84266669 rfcd7053 31 31 32 32 include ../../../version 33 -include ../../../Makefile.config34 33 35 34 LIBC_PREFIX = ../../lib/libc 36 35 SOFTINT_PREFIX = ../../lib/softint 36 37 37 include $(LIBC_PREFIX)/Makefile.toolchain 38 38 … … 40 40 41 41 LIBS = $(LIBC_PREFIX)/libc.a 42 DEFS += -DRELEASE=\"$(RELEASE)\" 43 44 ifdef REVISION 45 DEFS += "-DREVISION=\"$(TIMESTAMP)\"" 46 endif 47 48 ifdef TIMESTAMP 49 DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 50 endif 42 DEFS += -DRELEASE=$(RELEASE) 51 43 52 44 PROGRAM = bdsh … … 113 105 114 106 $(PROGRAM): $(OBJECTS) $(LIBS) 115 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map107 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map 116 108 117 109 # Everything else is a phony target -
uspace/app/init/Makefile
r84266669 rfcd7053 28 28 29 29 include ../../../version 30 -include ../../../Makefile.config31 30 32 31 ## Setup toolchain … … 35 34 LIBC_PREFIX = ../../lib/libc 36 35 SOFTINT_PREFIX = ../../lib/softint 36 37 37 include $(LIBC_PREFIX)/Makefile.toolchain 38 38 … … 40 40 41 41 LIBS = $(LIBC_PREFIX)/libc.a 42 DEFS += -DRELEASE=\"$(RELEASE)\" 43 44 ifdef REVISION 45 DEFS += "-DREVISION=\"$(REVISION)\"" 46 endif 47 48 ifdef TIMESTAMP 49 DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 50 endif 42 DEFS += -DRELEASE=$(RELEASE) 51 43 52 44 ## Sources … … 73 65 74 66 $(OUTPUT): $(OBJECTS) $(LIBS) 75 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map67 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 76 68 77 69 disasm: $(OUTPUT).disasm -
uspace/app/init/version.c
r84266669 rfcd7053 36 36 #include <unistd.h> 37 37 #include <stdio.h> 38 #include <macros.h> 38 39 #include "init.h" 39 40 #include "version.h" 40 41 41 char *release = RELEASE;42 char *release = STRING(RELEASE); 42 43 43 44 #ifdef REVISION 44 char *revision = ", revision " REVISION;45 char *revision = ", revision " STRING(REVISION); 45 46 #else 46 47 char *revision = ""; … … 48 49 49 50 #ifdef TIMESTAMP 50 char *timestamp = "\nBuilt on " TIMESTAMP;51 char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 51 52 #else 52 53 char *timestamp = ""; -
uspace/app/klog/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 61 60 62 61 $(OUTPUT): $(OBJECTS) $(LIBS) 63 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map62 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 64 63 65 64 disasm: $(OUTPUT).disasm -
uspace/app/tester/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 77 76 78 77 $(OUTPUT): $(OBJECTS) $(LIBS) 79 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map78 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 80 79 81 80 disasm: $(OUTPUT).disasm -
uspace/app/tetris/Makefile
r84266669 rfcd7053 1 -include ../../../Makefile.config2 3 1 LIBC_PREFIX = ../../lib/libc 4 2 SOFTINT_PREFIX = ../../lib/softint 3 5 4 include $(LIBC_PREFIX)/Makefile.toolchain 6 5 … … 21 20 22 21 $(OUTPUT): $(OBJECTS) $(LIBS) 23 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map22 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 24 23 25 24 clean: -
uspace/app/trace/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 66 65 67 66 $(OUTPUT): $(OBJECTS) $(LIBS) 68 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map67 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 69 68 70 69 disasm: -
uspace/lib/libblock/Makefile
r84266669 rfcd7053 31 31 # 32 32 33 -include ../../../Makefile.config 33 LIBC_PREFIX = ../libc 34 34 35 LIBC_PREFIX = ../libc36 35 ## Setup toolchain 37 36 # … … 60 59 61 60 depend: 62 -makedepend -f - -- $(DE FS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null61 -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null 63 62 64 63 libblock.a: depend $(OBJECTS) -
uspace/lib/libc/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = $(shell pwd) 35 33 SOFTINT_PREFIX = ../softint 34 35 ifndef CROSS_PREFIX 36 CROSS_PREFIX = /usr/local 37 endif 38 36 39 37 40 ## Setup toolchain … … 40 43 include $(LIBC_PREFIX)/Makefile.toolchain 41 44 45 42 46 ## Sources 43 47 # 44 45 48 46 49 GENERIC_SOURCES = \ … … 88 91 89 92 ARCH_SOURCES += \ 90 arch/$( ARCH)/src/entry.s \91 arch/$( ARCH)/src/thread_entry.s93 arch/$(UARCH)/src/entry.s \ 94 arch/$(UARCH)/src/thread_entry.s 92 95 93 96 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) … … 97 100 .PHONY: all clean depend kerninc 98 101 99 all: kerninc libc.a arch/$( ARCH)/_link.ld102 all: kerninc libc.a arch/$(UARCH)/_link.ld 100 103 101 104 kerninc: 102 105 ln -sfn ../../../../kernel/generic/include include/kernel 103 106 ln -sfn kernel/arch include/arch 104 ln -sfn ../arch/$( ARCH)/include include/libarch107 ln -sfn ../arch/$(UARCH)/include include/libarch 105 108 106 109 -include Makefile.depend 107 110 108 111 clean: 109 -rm -f include/kernel include/arch include/libarch libc.a arch/$( ARCH)/_link.ld Makefile.depend110 find generic/ arch/$( ARCH)/ malloc -name '*.o' -follow -exec rm \{\} \;112 -rm -f include/kernel include/arch include/libarch libc.a arch/$(UARCH)/_link.ld Makefile.depend 113 find generic/ arch/$(UARCH)/ malloc -name '*.o' -follow -exec rm \{\} \; 111 114 112 115 depend: kerninc 113 -makedepend -f - -- $(DE FS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null116 -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null 114 117 115 118 libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 116 119 $(AR) rc libc.a $(LIBS) $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 117 120 118 arch/$( ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in121 arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in 119 122 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 120 123 -
uspace/lib/libc/Makefile.toolchain
r84266669 rfcd7053 27 27 # 28 28 29 DEFS = -DARCH=$(ARCH) 30 CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -O3 -nostdlib -nostdinc -I$(LIBC_PREFIX)/include -pipe -g 29 CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -O3 -nostdlib -nostdinc -imacros $(LIBC_PREFIX)/../../../config.h -I$(LIBC_PREFIX)/include -pipe -g 31 30 LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a 32 31 AFLAGS = … … 35 34 # 36 35 37 -include $(LIBC_PREFIX)/arch/$(ARCH)/Makefile.inc 36 -include $(LIBC_PREFIX)/../../../Makefile.config 37 -include $(LIBC_PREFIX)/../../../config.defs 38 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc 38 39 39 40 ## Simple detection of the host system … … 59 60 OBJCOPY = $(BINUTILS_PREFIX)objcopy 60 61 OBJDUMP = $(BINUTILS_PREFIX)objdump 62 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 61 63 endif 62 64 … … 68 70 OBJCOPY = objcopy 69 71 OBJDUMP = objdump 72 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 70 73 endif 71 74 … … 77 80 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 78 81 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 82 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 79 83 endif 80 -
uspace/lib/libc/arch/amd64/Makefile.inc
r84266669 rfcd7053 30 30 # 31 31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 32 TARGET = amd64-linux-gnu 37 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/amd64/bin 38 34 39 ARCH_SOURCES += arch/$( ARCH)/src/syscall.S \40 arch/$(ARCH)/src/fibril.S \41 arch/$(ARCH)/src/tls.c35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 36 arch/$(UARCH)/src/fibril.S \ 37 arch/$(UARCH)/src/tls.c 42 38 43 39 LFLAGS += -N -
uspace/lib/libc/arch/amd64/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/lib/libc/arch/arm32/Makefile.inc
r84266669 rfcd7053 31 31 # 32 32 33 ifndef CROSS_PREFIX34 CROSS_PREFIX = /usr/local35 endif36 37 33 TARGET = arm-linux-gnu 38 34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm/bin 39 35 CFLAGS += -ffixed-r9 -mtp=soft 40 36 LFLAGS += -N $(SOFTINT_PREFIX)/libsoftint.a 41 AFLAGS += 37 AFLAGS += 42 38 43 ARCH_SOURCES += arch/$( ARCH)/src/syscall.c \44 arch/$(ARCH)/src/fibril.S \45 arch/$(ARCH)/src/tls.c \46 arch/$(ARCH)/src/eabi.S39 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 40 arch/$(UARCH)/src/fibril.S \ 41 arch/$(UARCH)/src/tls.c \ 42 arch/$(UARCH)/src/eabi.S 47 43 48 44 BFD_NAME = elf32-littlearm -
uspace/lib/libc/arch/arm32/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/lib/libc/arch/ia32/Makefile.inc
r84266669 rfcd7053 30 30 # 31 31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 32 TARGET = i686-pc-linux-gnu 37 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/i686/bin 38 34 39 ARCH_SOURCES += arch/$( ARCH)/src/syscall.S \40 arch/$(ARCH)/src/fibril.S \41 arch/$(ARCH)/src/tls.c \42 arch/$(ARCH)/src/setjmp.S35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 36 arch/$(UARCH)/src/fibril.S \ 37 arch/$(UARCH)/src/tls.c \ 38 arch/$(UARCH)/src/setjmp.S 43 39 44 40 LFLAGS += -N -
uspace/lib/libc/arch/ia32/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/lib/libc/arch/ia64/Makefile.inc
r84266669 rfcd7053 30 30 # 31 31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 32 TARGET = ia64-pc-linux-gnu 37 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin … … 40 36 AFLAGS += 41 37 42 ARCH_SOURCES += arch/$( ARCH)/src/syscall.S \43 arch/$(ARCH)/src/fibril.S \44 arch/$(ARCH)/src/tls.c\45 arch/$(ARCH)/src/ddi.c38 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 39 arch/$(UARCH)/src/fibril.S \ 40 arch/$(UARCH)/src/tls.c \ 41 arch/$(UARCH)/src/ddi.c 46 42 47 43 BFD_NAME = elf64-ia64-little -
uspace/lib/libc/arch/ia64/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/lib/libc/arch/mips32/Makefile.inc
r84266669 rfcd7053 30 30 # 31 31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 32 TARGET = mipsel-linux-gnu 37 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel/bin 38 34 CFLAGS += -mips3 39 35 40 -include ../../../Makefile.config 41 ifeq ($(CONFIG_MIPS_FPU),y) 42 CFLAGS += -DCONFIG_MIPS_FPU 43 endif 44 45 ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \ 46 arch/$(ARCH)/src/fibril.S \ 47 arch/$(ARCH)/src/tls.c 48 36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 37 arch/$(UARCH)/src/fibril.S \ 38 arch/$(UARCH)/src/tls.c 49 39 50 40 BFD_ARCH = mips -
uspace/lib/libc/arch/mips32/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/lib/libc/arch/mips32eb/Makefile.inc
r84266669 rfcd7053 30 30 # 31 31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 32 TARGET = mips-sgi-irix5 37 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips/bin 38 34 CFLAGS += -mips3 39 35 40 ARCH_SOURCES += arch/$( ARCH)/src/syscall.c \41 arch/$( ARCH)/src/fibril.S \42 arch/$( ARCH)/src/tls.c36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 37 arch/$(UARCH)/src/fibril.S \ 38 arch/$(UARCH)/src/tls.c 43 39 44 40 LFLAGS += -N -
uspace/lib/libc/arch/ppc32/Makefile.inc
r84266669 rfcd7053 30 30 # 31 31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 32 TARGET = ppc-linux-gnu 37 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc/bin 38 34 39 ARCH_SOURCES += arch/$( ARCH)/src/syscall.c \40 arch/$(ARCH)/src/fibril.S \41 arch/$(ARCH)/src/tls.c35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 36 arch/$(UARCH)/src/fibril.S \ 37 arch/$(UARCH)/src/tls.c 42 38 43 39 CFLAGS += -mcpu=powerpc -msoft-float -m32 -
uspace/lib/libc/arch/ppc32/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/lib/libc/arch/sparc64/Makefile.inc
r84266669 rfcd7053 30 30 # 31 31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 32 TARGET = sparc64-linux-gnu 37 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin 38 34 39 ARCH_SOURCES += arch/$( ARCH)/src/fibril.S \40 arch/$(ARCH)/src/tls.c35 ARCH_SOURCES += arch/$(UARCH)/src/fibril.S \ 36 arch/$(UARCH)/src/tls.c 41 37 42 38 CFLAGS += -mcpu=ultrasparc -m64 -
uspace/lib/libc/arch/sparc64/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/lib/libfs/Makefile
r84266669 rfcd7053 31 31 # 32 32 33 -include ../../../Makefile.config 33 LIBC_PREFIX = ../libc 34 34 35 LIBC_PREFIX = ../libc36 35 ## Setup toolchain 37 36 # … … 60 59 61 60 depend: 62 -makedepend -f - -- $(DE FS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null61 -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null 63 62 64 63 libfs.a: depend $(OBJECTS) -
uspace/lib/softfloat/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config 32 LIBC_PREFIX = ../libc 33 33 34 LIBC_PREFIX = ../libc35 34 ## Setup toolchain 36 35 # … … 38 37 include $(LIBC_PREFIX)/Makefile.toolchain 39 38 40 CFLAGS +=-Iinclude -Iarch/$( ARCH)/include/39 CFLAGS +=-Iinclude -Iarch/$(UARCH)/include/ 41 40 42 41 ## Sources 43 42 # 44 43 45 GENERIC_SOURCES = 46 generic/add.c 47 generic/common.c 48 generic/comparison.c 49 generic/conversion.c 50 generic/div.c 51 generic/mul.c 52 generic/other.c 53 generic/softfloat.c 44 GENERIC_SOURCES = \ 45 generic/add.c \ 46 generic/common.c \ 47 generic/comparison.c \ 48 generic/conversion.c \ 49 generic/div.c \ 50 generic/mul.c \ 51 generic/other.c \ 52 generic/softfloat.c \ 54 53 generic/sub.c 55 54 … … 69 68 70 69 depend: 71 -makedepend -f - -- $(DE FS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null70 -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null 72 71 73 72 libsoftfloat.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) -
uspace/lib/softint/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config 32 LIBC_PREFIX = ../libc 33 33 34 LIBC_PREFIX = ../libc35 34 ## Setup toolchain 36 35 # … … 61 60 62 61 depend: 63 -makedepend -f - -- $(DE FS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null62 -makedepend -f - -- $(DEPEMD_DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null 64 63 65 64 libsoftint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) -
uspace/srv/console/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 36 include $(LIBC_PREFIX)/Makefile.toolchain 34 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 38 37 CFLAGS += -I. -I../kbd/include -I../fb … … 75 74 76 75 $(OUTPUT): $(OBJECTS) $(LIBS) 77 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map76 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 78 77 79 78 disasm: $(OUTPUT).disasm -
uspace/srv/devmap/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 47 46 devmap.c 48 47 49 CFLAGS += -D$( ARCH)48 CFLAGS += -D$(UARCH) 50 49 51 50 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) … … 64 63 65 64 $(OUTPUT): $(OBJECTS) $(LIBS) 66 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map65 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 67 66 68 67 disasm: $(OUTPUT).disasm -
uspace/srv/fb/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 48 47 ppm.c 49 48 50 ifneq ($( ARCH),ia64)49 ifneq ($(UARCH),ia64) 51 50 SOURCES += fb.c \ 52 51 font-8x16.c 53 52 CFLAGS += -DFB_ENABLED 54 53 endif 55 ifeq ($(ARCH), ia32) 54 55 ifeq ($(UARCH),ia32) 56 56 SOURCES += ega.c 57 57 CFLAGS += -DEGA_ENABLED 58 58 endif 59 ifeq ($(ARCH), ia64) 59 60 ifeq ($(UARCH),ia64) 60 61 SOURCES += ega.c \ 61 62 62 ski.c \ 63 serial_console.c 63 64 CFLAGS += -DSKI_ENABLED 64 65 CFLAGS += -DEGA_ENABLED 65 66 endif 66 ifeq ($(ARCH), amd64) 67 68 ifeq ($(UARCH),amd64) 67 69 SOURCES += ega.c 68 70 CFLAGS += -DEGA_ENABLED 69 71 endif 70 ifeq ($(ARCH), arm32) 71 CFLAGS += -DFB_INVERT_ENDIAN 72 73 ifeq ($(UARCH),mips32) 74 SOURCES += msim.c \ 75 serial_console.c 76 CFLAGS += -DMSIM_ENABLED 72 77 endif 73 ifeq ($(ARCH), mips32) 74 SOURCES += msim.c \ 75 serial_console.c 76 CFLAGS += -DMSIM_ENABLED -DFB_INVERT_ENDIAN 77 endif 78 ifeq ($(ARCH), sparc64) 78 79 ifeq ($(UARCH),sparc64) 79 80 SOURCES += sgcn.c \ 80 81 serial_console.c 81 82 CFLAGS += -DSGCN_ENABLED 82 83 endif 83 84 84 CFLAGS += -D$( ARCH)85 CFLAGS += -D$(UARCH) 85 86 86 87 … … 100 101 101 102 $(OUTPUT): $(OBJECTS) $(LIBS) 102 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map103 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 103 104 104 105 disasm: $(OUTPUT).disasm -
uspace/srv/fb/fb.c
r84266669 rfcd7053 237 237 238 238 239 /** RGB 8:8:8 conversion 240 * 241 */ 242 static void rgb_888(void *dst, uint32_t rgb) 243 { 244 ((uint8_t *) dst)[0] = BLUE(rgb, 8); 245 ((uint8_t *) dst)[1] = GREEN(rgb, 8); 246 ((uint8_t *) dst)[2] = RED(rgb, 8); 247 } 248 249 239 250 /** BGR 8:8:8 conversion 240 251 * 241 252 */ 242 static void rgb_888(void *dst, uint32_t rgb) 243 { 244 #if defined(FB_INVERT_ENDIAN) 253 static void bgr_888(void *dst, uint32_t rgb) 254 { 245 255 ((uint8_t *) dst)[0] = RED(rgb, 8); 246 256 ((uint8_t *) dst)[1] = GREEN(rgb, 8); 247 257 ((uint8_t *) dst)[2] = BLUE(rgb, 8); 248 #else249 ((uint8_t *) dst)[0] = BLUE(rgb, 8);250 ((uint8_t *) dst)[1] = GREEN(rgb, 8);251 ((uint8_t *) dst)[2] = RED(rgb, 8);252 #endif253 258 } 254 259 … … 596 601 case VISUAL_RGB_8_8_8: 597 602 screen.rgb_conv = rgb_888; 603 screen.pixelbytes = 3; 604 break; 605 case VISUAL_BGR_8_8_8: 606 screen.rgb_conv = bgr_888; 598 607 screen.pixelbytes = 3; 599 608 break; -
uspace/srv/fs/fat/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../../Makefile.config33 34 32 LIBC_PREFIX = ../../../lib/libc 35 33 LIBFS_PREFIX = ../../../lib/libfs 36 34 LIBBLOCK_PREFIX = ../../../lib/libblock 37 35 SOFTINT_PREFIX = ../../../lib/softint 36 38 37 include $(LIBC_PREFIX)/Makefile.toolchain 39 38 … … 71 70 72 71 $(OUTPUT): $(OBJECTS) $(LIBS) 73 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map72 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 74 73 75 74 disasm: $(OUTPUT).disasm -
uspace/srv/fs/fat/fat.c
r84266669 rfcd7053 123 123 int rc; 124 124 125 printf(" FAT: HelenOS FAT file system server.\n");125 printf("fat: HelenOS FAT file system server.\n"); 126 126 127 127 rc = fat_idx_init(); -
uspace/srv/fs/tmpfs/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../../Makefile.config33 34 32 LIBC_PREFIX = ../../../lib/libc 35 33 LIBFS_PREFIX = ../../../lib/libfs 36 34 LIBBLOCK_PREFIX = ../../../lib/libblock 37 35 SOFTINT_PREFIX = ../../../lib/softint 36 38 37 include $(LIBC_PREFIX)/Makefile.toolchain 39 38 … … 69 68 70 69 $(OUTPUT): $(OBJECTS) $(LIBS) 71 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map70 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 72 71 73 72 disasm: $(OUTPUT).disasm -
uspace/srv/kbd/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 49 48 50 49 ARCH_SOURCES = \ 51 arch/$( ARCH)/src/kbd.c50 arch/$(UARCH)/src/kbd.c 52 51 53 ifeq ($( ARCH), ia32)52 ifeq ($(UARCH), ia32) 54 53 ARCH_SOURCES += \ 55 arch/$( ARCH)/src/mouse.c \56 arch/$( ARCH)/src/scanc.c54 arch/$(UARCH)/src/mouse.c \ 55 arch/$(UARCH)/src/scanc.c 57 56 GENARCH_SOURCES = \ 58 57 genarch/src/kbd.c 59 58 CFLAGS += -DMOUSE_ENABLED 60 59 endif 61 ifeq ($( ARCH), ia64)60 ifeq ($(UARCH), ia64) 62 61 ARCH_SOURCES += \ 63 arch/$( ARCH)/src/mouse.c \64 arch/$( ARCH)/src/scanc.c \65 arch/$( ARCH)/src/lkbd.c62 arch/$(UARCH)/src/mouse.c \ 63 arch/$(UARCH)/src/scanc.c \ 64 arch/$(UARCH)/src/lkbd.c 66 65 GENARCH_SOURCES = \ 67 66 genarch/src/kbd.c 68 67 CFLAGS += -DMOUSE_ENABLED 69 68 endif 70 ifeq ($( ARCH), amd64)69 ifeq ($(UARCH), amd64) 71 70 ARCH_SOURCES += \ 72 arch/$( ARCH)/src/mouse.c \73 arch/$( ARCH)/src/scanc.c71 arch/$(UARCH)/src/mouse.c \ 72 arch/$(UARCH)/src/scanc.c 74 73 GENARCH_SOURCES = \ 75 74 genarch/src/kbd.c 76 75 CFLAGS += -DMOUSE_ENABLED 77 76 endif 78 ifeq ($( ARCH), sparc64)77 ifeq ($(UARCH), sparc64) 79 78 ARCH_SOURCES += \ 80 arch/$( ARCH)/src/scanc.c \81 arch/$( ARCH)/src/sgcn.c79 arch/$(UARCH)/src/scanc.c \ 80 arch/$(UARCH)/src/sgcn.c 82 81 GENARCH_SOURCES = \ 83 82 genarch/src/kbd.c \ 84 83 genarch/src/nofb.c 85 84 endif 86 ifeq ($( ARCH), arm32)85 ifeq ($(UARCH), arm32) 87 86 ARCH_SOURCES += \ 88 arch/$( ARCH)/src/kbd_gxemul.c87 arch/$(UARCH)/src/kbd_gxemul.c 89 88 endif 90 ifeq ($( ARCH), mips32)89 ifeq ($(UARCH), mips32) 91 90 GENARCH_SOURCES += \ 92 91 genarch/src/nofb.c 93 92 endif 94 ifeq ($( ARCH), mips32eb)93 ifeq ($(UARCH), mips32eb) 95 94 GENARCH_SOURCES += \ 96 95 genarch/src/nofb.c … … 110 109 111 110 links: 112 ln -sfn ../arch/$( ARCH)/include include/arch111 ln -sfn ../arch/$(UARCH)/include include/arch 113 112 ln -sfn ../genarch/include include/genarch 114 113 … … 120 119 121 120 $(OUTPUT): $(OBJECTS) $(LIBS) 122 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map121 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 123 122 124 123 disasm: $(OUTPUT).disasm -
uspace/srv/kbd/arch/ia64/src/kbd.c
r84266669 rfcd7053 115 115 116 116 117 118 irq_cmd_t ski_cmds[1] = {119 { CMD_IA64_GETCHAR, 0, 0, 2 }120 };121 122 irq_code_t ski_kbd = {123 1,124 ski_cmds125 };126 127 128 129 117 irq_cmd_t ns16550_cmds[1] = { 130 118 { CMD_PORT_READ_1, 0, 0, 2 }, … … 145 133 if (sysinfo_value("kbd")) { 146 134 kbd_type=sysinfo_value("kbd.type"); 147 if (kbd_type==KBD_SKI) ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, &ski_kbd);148 if(kbd_type==KBD_LEGACY)return lkbd_arch_init();149 if (kbd_type==KBD_NS16550) {150 ns16550_kbd.cmds[0].addr = (void *) (sysinfo_value("kbd.port")+RBR_REG);135 if (kbd_type == KBD_LEGACY) 136 return lkbd_arch_init(); 137 if (kbd_type == KBD_NS16550) { 138 ns16550_kbd.cmds[0].addr = (void *) (sysinfo_value("kbd.port") + RBR_REG); 151 139 ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, &ns16550_kbd); 152 iospace_enable(task_get_id(), ns16550_port=sysinfo_value("kbd.port"),8);153 } 140 iospace_enable(task_get_id(), ns16550_port = sysinfo_value("kbd.port"), 8); 141 } 154 142 return 0; 155 } 143 } 156 144 return 1; 157 145 } … … 171 159 static unsigned long buf = 0; 172 160 static int count = 0, esc_count=0; 173 161 174 162 int scan_code = IPC_GET_ARG2(*call); 175 163 176 164 if (scan_code == 0x1b) { 177 165 esc_count++; … … 182 170 esc_count = 0; 183 171 } 184 185 if(scan_code==0x0d) return 1; //Delete CR 186 if(scan_code==0x7f) scan_code='\b'; //Convert backspace 187 172 173 if (scan_code == 0x0d) 174 return 1; /* Delete CR */ 175 if (scan_code == 0x7f) 176 scan_code='\b'; /* Convert backspace */ 177 188 178 if(scan_code == 0x7e) { 189 179 switch (buf) { … … 308 298 return 1; 309 299 } 310 311 312 313 314 315 316 300 317 301 int kbd_ski_process(keybuffer_t *keybuffer, ipc_call_t *call) … … 394 378 { 395 379 printf("KBD Key pressed: %x(%c)\n",IPC_GET_ARG2(*call),IPC_GET_ARG2(*call)); 396 if(kbd_type==KBD_SKI) return kbd_ski_process(keybuffer,call); 397 if(kbd_type==KBD_NS16550) return kbd_ns16550_process(keybuffer,call); 398 if(kbd_type==KBD_LEGACY) return lkbd_arch_process(keybuffer,call); 399 400 380 if (kbd_type == KBD_SKI) 381 return kbd_ski_process(keybuffer, call); 382 if (kbd_type == KBD_NS16550) 383 return kbd_ns16550_process(keybuffer,call); 384 if (kbd_type == KBD_LEGACY) 385 return lkbd_arch_process(keybuffer,call); 401 386 } 402 387 … … 405 390 /** 406 391 * @} 407 */ 392 */ -
uspace/srv/kbd/arch/ppc32/src/kbd.c
r84266669 rfcd7053 40 40 #include <kbd.h> 41 41 #include <keys.h> 42 43 irq_cmd_t cuda_cmds[1] = {44 { CMD_PPC32_GETCHAR, 0, 0, 2 }45 };46 47 irq_code_t cuda_kbd = {48 1,49 cuda_cmds50 };51 42 52 43 … … 187 178 return 0; 188 179 189 return ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, &cuda_kbd);180 return ipc_register_irq(sysinfo_value("kbd.inr"), sysinfo_value("kbd.devno"), 0, 0); 190 181 } 191 182 -
uspace/srv/loader/Makefile
r84266669 rfcd7053 28 28 # 29 29 30 -include ../../../Makefile.config31 32 30 ## Setup toolchain 33 31 # … … 35 33 LIBC_PREFIX = ../../lib/libc 36 34 SOFTINT_PREFIX = ../../lib/softint 35 37 36 include $(LIBC_PREFIX)/Makefile.toolchain 38 include arch/$( ARCH)/Makefile.inc37 include arch/$(UARCH)/Makefile.inc 39 38 40 39 CFLAGS += -Iinclude 41 40 42 41 LIBS = $(LIBC_PREFIX)/libc.a $(SOFTINT_PREFIX)/libsoftint.a 43 DEFS += -DRELEASE=\"$(RELEASE)\"44 45 ifdef REVISION46 DEFS += "-DREVISION=\"$(REVISION)\""47 endif48 49 ifdef TIMESTAMP50 DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\""51 endif52 42 53 43 ## Sources … … 70 60 71 61 clean: 72 -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm arch/$( ARCH)/_link.ld Makefile.depend62 -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm arch/$(UARCH)/_link.ld Makefile.depend 73 63 74 64 depend: 75 65 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 76 66 77 $(OUTPUT): $(OBJECTS) $(LIBS) arch/$( ARCH)/_link.ld78 $(LD) -T arch/$( ARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBS) -o $@ -Map $(OUTPUT).map67 $(OUTPUT): $(OBJECTS) $(LIBS) arch/$(UARCH)/_link.ld 68 $(LD) -T arch/$(UARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBS) -o $@ -Map $(OUTPUT).map 79 69 80 70 disasm: 81 71 $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm 82 72 83 arch/$( ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in73 arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in 84 74 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 85 75 -
uspace/srv/loader/arch/amd64/Makefile.inc
r84266669 rfcd7053 28 28 29 29 CFLAGS += -D__64_BITS__ 30 ARCH_SOURCES := arch/$( ARCH)/amd64.s30 ARCH_SOURCES := arch/$(UARCH)/amd64.s -
uspace/srv/loader/arch/amd64/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/srv/loader/arch/arm32/Makefile.inc
r84266669 rfcd7053 28 28 29 29 CFLAGS += -D__32_BITS__ 30 ARCH_SOURCES := arch/$( ARCH)/arm32.s30 ARCH_SOURCES := arch/$(UARCH)/arm32.s -
uspace/srv/loader/arch/arm32/_link.ld.in
r84266669 rfcd7053 1 /* 1 /* 2 2 * The only difference from _link.ld.in for regular statically-linked apps 3 3 * is the base address. 4 4 */ 5 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)5 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 6 6 ENTRY(__entry) 7 7 -
uspace/srv/loader/arch/ia32/Makefile.inc
r84266669 rfcd7053 28 28 29 29 CFLAGS += -D__32_BITS__ 30 ARCH_SOURCES := arch/$( ARCH)/ia32.s30 ARCH_SOURCES := arch/$(UARCH)/ia32.s -
uspace/srv/loader/arch/ia32/_link.ld.in
r84266669 rfcd7053 1 /* 1 /* 2 2 * The difference from _link.ld.in for regular statically-linked apps 3 3 * is the base address and the special interp section. 4 4 */ 5 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)5 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 6 6 ENTRY(__entry) 7 7 -
uspace/srv/loader/arch/ia64/Makefile.inc
r84266669 rfcd7053 28 28 29 29 CFLAGS += -D__64_BITS__ 30 ARCH_SOURCES := arch/$( ARCH)/ia64.s30 ARCH_SOURCES := arch/$(UARCH)/ia64.s 31 31 AFLAGS += -xexplicit -
uspace/srv/loader/arch/ia64/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/srv/loader/arch/mips32/Makefile.inc
r84266669 rfcd7053 28 28 29 29 CFLAGS += -D__32_BITS__ 30 ARCH_SOURCES := arch/$( ARCH)/mips32.s30 ARCH_SOURCES := arch/$(UARCH)/mips32.s -
uspace/srv/loader/arch/mips32/_link.ld.in
r84266669 rfcd7053 1 /* 1 /* 2 2 * The only difference from _link.ld.in for regular statically-linked apps 3 3 * is the base address. 4 4 */ 5 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)5 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 6 6 ENTRY(__entry) 7 7 -
uspace/srv/loader/arch/ppc32/Makefile.inc
r84266669 rfcd7053 28 28 29 29 CFLAGS += -D__32_BITS__ 30 ARCH_SOURCES := arch/$( ARCH)/ppc32.s30 ARCH_SOURCES := arch/$(UARCH)/ppc32.s -
uspace/srv/loader/arch/ppc32/_link.ld.in
r84266669 rfcd7053 1 /* 1 /* 2 2 * The only difference from _link.ld.in for regular statically-linked apps 3 3 * is the base address. 4 4 */ 5 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)5 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 6 6 ENTRY(__entry) 7 7 -
uspace/srv/loader/arch/sparc64/Makefile.inc
r84266669 rfcd7053 28 28 29 29 CFLAGS += -D__64_BITS__ 30 ARCH_SOURCES := arch/$( ARCH)/sparc64.s30 ARCH_SOURCES := arch/$(UARCH)/sparc64.s -
uspace/srv/loader/arch/sparc64/_link.ld.in
r84266669 rfcd7053 1 STARTUP(LIBC_PREFIX/arch/ ARCH/src/entry.o)1 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 2 ENTRY(__entry) 3 3 -
uspace/srv/ns/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 60 59 61 60 $(OUTPUT): $(OBJECTS) $(LIBS) 62 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map61 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 63 62 64 63 disasm: $(OUTPUT).disasm -
uspace/srv/pci/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = ../../lib/libc 35 33 SOFTINT_PREFIX = ../../lib/softint 34 36 35 include $(LIBC_PREFIX)/Makefile.toolchain 37 36 … … 63 62 $(OUTPUT): $(OBJECTS) $(LIBS) 64 63 $(MAKE) -C libpci 65 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map64 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 66 65 67 66 disasm: -
uspace/srv/pci/libpci/Makefile
r84266669 rfcd7053 3 3 4 4 # Modified and ported to HelenOS by Jakub Jermar 5 6 -include ../../../../Makefile.config7 5 8 6 LIBC_PREFIX=$(shell cd ../../../lib/libc; pwd) -
uspace/srv/rd/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 32 34 33 LIBC_PREFIX = ../../lib/libc 35 34 SOFTINT_PREFIX = ../../lib/softint 35 36 36 include $(LIBC_PREFIX)/Makefile.toolchain 37 37 … … 60 60 61 61 $(OUTPUT): $(OBJECTS) $(LIBS) 62 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map62 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 63 63 64 64 disasm: $(OUTPUT).disasm -
uspace/srv/vfs/Makefile
r84266669 rfcd7053 31 31 # 32 32 33 -include ../../../Makefile.config34 35 33 LIBC_PREFIX = ../../lib/libc 36 34 SOFTINT_PREFIX = ../../lib/softint 35 37 36 include $(LIBC_PREFIX)/Makefile.toolchain 38 37 … … 66 65 67 66 $(OUTPUT): $(OBJECTS) $(LIBS) 68 $(LD) -T $(LIBC_PREFIX)/arch/$( ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map67 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 69 68 70 69 disasm: $(OUTPUT).disasm
Note:
See TracChangeset
for help on using the changeset viewer.