Changeset fcd7053 in mainline


Ignore:
Timestamp:
2009-02-12T20:11:25Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa024ce
Parents:
84266669
Message:

cleanup configuration
code cleanup

Location:
uspace
Files:
1 added
59 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r84266669 rfcd7053  
    5555        app/bdsh
    5656
    57 ifeq ($(ARCH), amd64)
     57ifeq ($(UARCH),amd64)
    5858        DIRS += srv/pci
    5959endif
    6060
    61 ifeq ($(ARCH), ia32)
     61ifeq ($(UARCH),ia32)
    6262        DIRS += srv/pci
    63 endif
    64 
    65 ifeq ($(ARCH), mips32)
    66         CFLAGS += -DCONFIG_MIPS_FPU
    67 endif
    68 
    69 ifeq ($(ARCH), mips32eb)
    70         CFLAGS += -DCONFIG_MIPS_FPU
    7163endif
    7264
     
    7668.PHONY: all $(BUILDS) $(CLEANS) clean
    7769
    78 all: ../Makefile.config $(BUILDS)
     70all: ../Makefile.config ../config.h ../config.defs $(BUILDS)
    7971
    8072clean: $(CLEANS)
  • uspace/app/bdsh/Makefile

    r84266669 rfcd7053  
    3131
    3232include ../../../version
    33 -include ../../../Makefile.config
    3433
    3534LIBC_PREFIX = ../../lib/libc
    3635SOFTINT_PREFIX = ../../lib/softint
     36
    3737include $(LIBC_PREFIX)/Makefile.toolchain
    3838
     
    4040
    4141LIBS = $(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
     42DEFS += -DRELEASE=$(RELEASE)
    5143
    5244PROGRAM = bdsh
     
    113105
    114106$(PROGRAM): $(OBJECTS) $(LIBS)
    115         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map
     107        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(PROGRAM).map
    116108
    117109# Everything else is a phony target
  • uspace/app/init/Makefile

    r84266669 rfcd7053  
    2828
    2929include ../../../version
    30 -include ../../../Makefile.config
    3130
    3231## Setup toolchain
     
    3534LIBC_PREFIX = ../../lib/libc
    3635SOFTINT_PREFIX = ../../lib/softint
     36
    3737include $(LIBC_PREFIX)/Makefile.toolchain
    3838
     
    4040
    4141LIBS = $(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
     42DEFS += -DRELEASE=$(RELEASE)
    5143
    5244## Sources
     
    7365
    7466$(OUTPUT): $(OBJECTS) $(LIBS)
    75         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     67        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    7668
    7769disasm: $(OUTPUT).disasm
  • uspace/app/init/version.c

    r84266669 rfcd7053  
    3636#include <unistd.h>
    3737#include <stdio.h>
     38#include <macros.h>
    3839#include "init.h"
    3940#include "version.h"
    4041
    41 char *release = RELEASE;
     42char *release = STRING(RELEASE);
    4243
    4344#ifdef REVISION
    44         char *revision = ", revision " REVISION;
     45        char *revision = ", revision " STRING(REVISION);
    4546#else
    4647        char *revision = "";
     
    4849
    4950#ifdef TIMESTAMP
    50         char *timestamp = "\nBuilt on " TIMESTAMP;
     51        char *timestamp = "\nBuilt on " STRING(TIMESTAMP);
    5152#else
    5253        char *timestamp = "";
  • uspace/app/klog/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    6160
    6261$(OUTPUT): $(OBJECTS) $(LIBS)
    63         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     62        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6463
    6564disasm: $(OUTPUT).disasm
  • uspace/app/tester/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    7776
    7877$(OUTPUT): $(OBJECTS) $(LIBS)
    79         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     78        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    8079
    8180disasm: $(OUTPUT).disasm
  • uspace/app/tetris/Makefile

    r84266669 rfcd7053  
    1 -include ../../../Makefile.config
    2 
    31LIBC_PREFIX = ../../lib/libc
    42SOFTINT_PREFIX = ../../lib/softint
     3
    54include $(LIBC_PREFIX)/Makefile.toolchain
    65
     
    2120
    2221$(OUTPUT): $(OBJECTS) $(LIBS)
    23         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     22        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    2423
    2524clean:
  • uspace/app/trace/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    6665
    6766$(OUTPUT): $(OBJECTS) $(LIBS)
    68         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     67        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6968
    7069disasm:
  • uspace/lib/libblock/Makefile

    r84266669 rfcd7053  
    3131#
    3232
    33 -include ../../../Makefile.config
     33LIBC_PREFIX = ../libc
    3434
    35 LIBC_PREFIX = ../libc
    3635## Setup toolchain
    3736#
     
    6059
    6160depend:
    62         -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null
     61        -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null
    6362
    6463libblock.a: depend $(OBJECTS)
  • uspace/lib/libc/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = $(shell pwd)
    3533SOFTINT_PREFIX = ../softint
     34
     35ifndef CROSS_PREFIX
     36        CROSS_PREFIX = /usr/local
     37endif
     38
    3639
    3740## Setup toolchain
     
    4043include $(LIBC_PREFIX)/Makefile.toolchain
    4144
     45
    4246## Sources
    4347#
    44 
    4548
    4649GENERIC_SOURCES = \
     
    8891
    8992ARCH_SOURCES += \
    90         arch/$(ARCH)/src/entry.s \
    91         arch/$(ARCH)/src/thread_entry.s
     93        arch/$(UARCH)/src/entry.s \
     94        arch/$(UARCH)/src/thread_entry.s
    9295
    9396GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
     
    97100.PHONY: all clean depend kerninc
    98101
    99 all: kerninc libc.a arch/$(ARCH)/_link.ld
     102all: kerninc libc.a arch/$(UARCH)/_link.ld
    100103
    101104kerninc:
    102105        ln -sfn ../../../../kernel/generic/include include/kernel
    103106        ln -sfn kernel/arch include/arch
    104         ln -sfn ../arch/$(ARCH)/include include/libarch
     107        ln -sfn ../arch/$(UARCH)/include include/libarch
    105108
    106109-include Makefile.depend
    107110
    108111clean:
    109         -rm -f include/kernel include/arch include/libarch libc.a arch/$(ARCH)/_link.ld Makefile.depend
    110         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 \{\} \;
    111114
    112115depend: kerninc
    113         -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
     116        -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
    114117
    115118libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
    116119        $(AR) rc libc.a $(LIBS) $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
    117120
    118 arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
     121arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in
    119122        $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
    120123
  • uspace/lib/libc/Makefile.toolchain

    r84266669 rfcd7053  
    2727#
    2828
    29 DEFS = -DARCH=$(ARCH)
    30 CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -O3 -nostdlib -nostdinc -I$(LIBC_PREFIX)/include -pipe -g
     29CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -O3 -nostdlib -nostdinc -imacros $(LIBC_PREFIX)/../../../config.h -I$(LIBC_PREFIX)/include -pipe -g
    3130LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a
    3231AFLAGS =
     
    3534#
    3635
    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
    3839
    3940## Simple detection of the host system
     
    5960        OBJCOPY = $(BINUTILS_PREFIX)objcopy
    6061        OBJDUMP = $(BINUTILS_PREFIX)objdump
     62        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    6163endif
    6264
     
    6870        OBJCOPY = objcopy
    6971        OBJDUMP = objdump
     72        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    7073endif
    7174
     
    7780        OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    7881        OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
     82        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    7983endif
    80 
  • uspace/lib/libc/arch/amd64/Makefile.inc

    r84266669 rfcd7053  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632TARGET = amd64-linux-gnu
    3733TOOLCHAIN_DIR = $(CROSS_PREFIX)/amd64/bin
    3834
    39 ARCH_SOURCES += arch/$(ARCH)/src/syscall.S \
    40                 arch/$(ARCH)/src/fibril.S \
    41                 arch/$(ARCH)/src/tls.c
     35ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \
     36        arch/$(UARCH)/src/fibril.S \
     37        arch/$(UARCH)/src/tls.c
    4238
    4339LFLAGS += -N
  • uspace/lib/libc/arch/amd64/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/lib/libc/arch/arm32/Makefile.inc

    r84266669 rfcd7053  
    3131#
    3232
    33 ifndef CROSS_PREFIX
    34         CROSS_PREFIX = /usr/local
    35 endif
    36 
    3733TARGET = arm-linux-gnu
    3834TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm/bin
    3935CFLAGS += -ffixed-r9 -mtp=soft
    4036LFLAGS += -N $(SOFTINT_PREFIX)/libsoftint.a
    41 AFLAGS += 
     37AFLAGS +=
    4238
    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.S
     39ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \
     40        arch/$(UARCH)/src/fibril.S \
     41        arch/$(UARCH)/src/tls.c \
     42        arch/$(UARCH)/src/eabi.S
    4743
    4844BFD_NAME = elf32-littlearm
  • uspace/lib/libc/arch/arm32/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/lib/libc/arch/ia32/Makefile.inc

    r84266669 rfcd7053  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632TARGET = i686-pc-linux-gnu
    3733TOOLCHAIN_DIR = $(CROSS_PREFIX)/i686/bin
    3834
    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.S
     35ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \
     36        arch/$(UARCH)/src/fibril.S \
     37        arch/$(UARCH)/src/tls.c \
     38        arch/$(UARCH)/src/setjmp.S
    4339
    4440LFLAGS += -N
  • uspace/lib/libc/arch/ia32/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/lib/libc/arch/ia64/Makefile.inc

    r84266669 rfcd7053  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632TARGET = ia64-pc-linux-gnu
    3733TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin
     
    4036AFLAGS +=
    4137
    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.c
     38ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \
     39        arch/$(UARCH)/src/fibril.S \
     40        arch/$(UARCH)/src/tls.c \
     41        arch/$(UARCH)/src/ddi.c
    4642
    4743BFD_NAME = elf64-ia64-little
  • uspace/lib/libc/arch/ia64/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/lib/libc/arch/mips32/Makefile.inc

    r84266669 rfcd7053  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632TARGET = mipsel-linux-gnu
    3733TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel/bin
    3834CFLAGS += -mips3
    3935
    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 
     36ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \
     37        arch/$(UARCH)/src/fibril.S \
     38        arch/$(UARCH)/src/tls.c
    4939
    5040BFD_ARCH = mips
  • uspace/lib/libc/arch/mips32/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/lib/libc/arch/mips32eb/Makefile.inc

    r84266669 rfcd7053  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632TARGET = mips-sgi-irix5
    3733TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips/bin
    3834CFLAGS += -mips3
    3935
    40 ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    41                 arch/$(ARCH)/src/fibril.S \
    42                 arch/$(ARCH)/src/tls.c
     36ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \
     37                arch/$(UARCH)/src/fibril.S \
     38                arch/$(UARCH)/src/tls.c
    4339
    4440LFLAGS += -N
  • uspace/lib/libc/arch/ppc32/Makefile.inc

    r84266669 rfcd7053  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632TARGET = ppc-linux-gnu
    3733TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc/bin
    3834
    39 ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \
    40                 arch/$(ARCH)/src/fibril.S \
    41                 arch/$(ARCH)/src/tls.c
     35ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \
     36        arch/$(UARCH)/src/fibril.S \
     37        arch/$(UARCH)/src/tls.c
    4238
    4339CFLAGS += -mcpu=powerpc -msoft-float -m32
  • uspace/lib/libc/arch/ppc32/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/lib/libc/arch/sparc64/Makefile.inc

    r84266669 rfcd7053  
    3030#
    3131
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3632TARGET = sparc64-linux-gnu
    3733TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin
    3834
    39 ARCH_SOURCES += arch/$(ARCH)/src/fibril.S \
    40                 arch/$(ARCH)/src/tls.c
     35ARCH_SOURCES += arch/$(UARCH)/src/fibril.S \
     36        arch/$(UARCH)/src/tls.c
    4137
    4238CFLAGS += -mcpu=ultrasparc -m64
  • uspace/lib/libc/arch/sparc64/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/lib/libfs/Makefile

    r84266669 rfcd7053  
    3131#
    3232
    33 -include ../../../Makefile.config
     33LIBC_PREFIX = ../libc
    3434
    35 LIBC_PREFIX = ../libc
    3635## Setup toolchain
    3736#
     
    6059
    6160depend:
    62         -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null
     61        -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null
    6362
    6463libfs.a: depend $(OBJECTS)
  • uspace/lib/softfloat/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
     32LIBC_PREFIX = ../libc
    3333
    34 LIBC_PREFIX = ../libc
    3534## Setup toolchain
    3635#
     
    3837include $(LIBC_PREFIX)/Makefile.toolchain
    3938
    40 CFLAGS +=-Iinclude -Iarch/$(ARCH)/include/
     39CFLAGS +=-Iinclude -Iarch/$(UARCH)/include/
    4140
    4241## Sources
    4342#
    4443
    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     \
     44GENERIC_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 \
    5453        generic/sub.c
    5554
     
    6968
    7069depend:
    71         -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
     70        -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
    7271
    7372libsoftfloat.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
  • uspace/lib/softint/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
     32LIBC_PREFIX = ../libc
    3333
    34 LIBC_PREFIX = ../libc
    3534## Setup toolchain
    3635#
     
    6160
    6261depend:
    63         -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
     62        -makedepend -f - -- $(DEPEMD_DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
    6463
    6564libsoftint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
  • uspace/srv/console/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
    36 include $(LIBC_PREFIX)/Makefile.toolchain
     34
     35include $(LIBC_PREFIX)/Makefile.toolchain
    3736
    3837CFLAGS += -I. -I../kbd/include -I../fb
     
    7574
    7675$(OUTPUT): $(OBJECTS) $(LIBS)
    77         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     76        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    7877
    7978disasm: $(OUTPUT).disasm
  • uspace/srv/devmap/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    4746        devmap.c
    4847
    49 CFLAGS += -D$(ARCH)
     48CFLAGS += -D$(UARCH)
    5049
    5150OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     
    6463
    6564$(OUTPUT): $(OBJECTS) $(LIBS)
    66         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     65        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6766
    6867disasm: $(OUTPUT).disasm
  • uspace/srv/fb/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    4847        ppm.c
    4948
    50 ifneq ($(ARCH), ia64)
     49ifneq ($(UARCH),ia64)
    5150        SOURCES += fb.c \
    5251                font-8x16.c
    5352        CFLAGS += -DFB_ENABLED
    5453endif
    55 ifeq ($(ARCH), ia32)
     54
     55ifeq ($(UARCH),ia32)
    5656        SOURCES += ega.c
    5757        CFLAGS += -DEGA_ENABLED
    5858endif
    59 ifeq ($(ARCH), ia64)
     59
     60ifeq ($(UARCH),ia64)
    6061        SOURCES += ega.c \
    61                    ski.c \
    62                    serial_console.c
     62                ski.c \
     63                serial_console.c
    6364        CFLAGS += -DSKI_ENABLED
    6465        CFLAGS += -DEGA_ENABLED
    6566endif
    66 ifeq ($(ARCH), amd64)
     67
     68ifeq ($(UARCH),amd64)
    6769        SOURCES += ega.c
    6870        CFLAGS += -DEGA_ENABLED
    6971endif
    70 ifeq ($(ARCH), arm32)
    71         CFLAGS += -DFB_INVERT_ENDIAN
     72
     73ifeq ($(UARCH),mips32)
     74        SOURCES += msim.c \
     75                serial_console.c
     76        CFLAGS += -DMSIM_ENABLED
    7277endif
    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
     79ifeq ($(UARCH),sparc64)
    7980        SOURCES += sgcn.c \
    80                    serial_console.c
     81                serial_console.c
    8182        CFLAGS += -DSGCN_ENABLED
    8283endif
    8384
    84 CFLAGS += -D$(ARCH)
     85CFLAGS += -D$(UARCH)
    8586
    8687
     
    100101
    101102$(OUTPUT): $(OBJECTS) $(LIBS)
    102         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     103        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    103104
    104105disasm: $(OUTPUT).disasm
  • uspace/srv/fb/fb.c

    r84266669 rfcd7053  
    237237
    238238
     239/** RGB 8:8:8 conversion
     240 *
     241 */
     242static 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
    239250/** BGR 8:8:8 conversion
    240251 *
    241252 */
    242 static void rgb_888(void *dst, uint32_t rgb)
    243 {
    244 #if defined(FB_INVERT_ENDIAN)
     253static void bgr_888(void *dst, uint32_t rgb)
     254{
    245255        ((uint8_t *) dst)[0] = RED(rgb, 8);
    246256        ((uint8_t *) dst)[1] = GREEN(rgb, 8);
    247257        ((uint8_t *) dst)[2] = BLUE(rgb, 8);
    248 #else
    249         ((uint8_t *) dst)[0] = BLUE(rgb, 8);
    250         ((uint8_t *) dst)[1] = GREEN(rgb, 8);
    251         ((uint8_t *) dst)[2] = RED(rgb, 8);
    252 #endif
    253258}
    254259
     
    596601        case VISUAL_RGB_8_8_8:
    597602                screen.rgb_conv = rgb_888;
     603                screen.pixelbytes = 3;
     604                break;
     605        case VISUAL_BGR_8_8_8:
     606                screen.rgb_conv = bgr_888;
    598607                screen.pixelbytes = 3;
    599608                break;
  • uspace/srv/fs/fat/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../../lib/libc
    3533LIBFS_PREFIX = ../../../lib/libfs
    3634LIBBLOCK_PREFIX = ../../../lib/libblock
    3735SOFTINT_PREFIX = ../../../lib/softint
     36
    3837include $(LIBC_PREFIX)/Makefile.toolchain
    3938
     
    7170
    7271$(OUTPUT): $(OBJECTS) $(LIBS)
    73         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     72        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    7473
    7574disasm: $(OUTPUT).disasm
  • uspace/srv/fs/fat/fat.c

    r84266669 rfcd7053  
    123123        int rc;
    124124
    125         printf("FAT: HelenOS FAT file system server.\n");
     125        printf("fat: HelenOS FAT file system server.\n");
    126126
    127127        rc = fat_idx_init();
  • uspace/srv/fs/tmpfs/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../../lib/libc
    3533LIBFS_PREFIX = ../../../lib/libfs
    3634LIBBLOCK_PREFIX = ../../../lib/libblock
    3735SOFTINT_PREFIX = ../../../lib/softint
     36
    3837include $(LIBC_PREFIX)/Makefile.toolchain
    3938
     
    6968
    7069$(OUTPUT): $(OBJECTS) $(LIBS)
    71         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     70        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    7271
    7372disasm: $(OUTPUT).disasm
  • uspace/srv/kbd/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    4948
    5049ARCH_SOURCES = \
    51         arch/$(ARCH)/src/kbd.c
     50        arch/$(UARCH)/src/kbd.c
    5251
    53 ifeq ($(ARCH), ia32)
     52ifeq ($(UARCH), ia32)
    5453        ARCH_SOURCES += \
    55                 arch/$(ARCH)/src/mouse.c \
    56                 arch/$(ARCH)/src/scanc.c
     54                arch/$(UARCH)/src/mouse.c \
     55                arch/$(UARCH)/src/scanc.c
    5756        GENARCH_SOURCES = \
    5857                genarch/src/kbd.c
    5958        CFLAGS += -DMOUSE_ENABLED
    6059endif
    61 ifeq ($(ARCH), ia64)
     60ifeq ($(UARCH), ia64)
    6261        ARCH_SOURCES += \
    63                 arch/$(ARCH)/src/mouse.c \
    64                 arch/$(ARCH)/src/scanc.c \
    65                 arch/$(ARCH)/src/lkbd.c
     62                arch/$(UARCH)/src/mouse.c \
     63                arch/$(UARCH)/src/scanc.c \
     64                arch/$(UARCH)/src/lkbd.c
    6665        GENARCH_SOURCES = \
    6766                genarch/src/kbd.c
    6867        CFLAGS += -DMOUSE_ENABLED
    6968endif
    70 ifeq ($(ARCH), amd64)
     69ifeq ($(UARCH), amd64)
    7170        ARCH_SOURCES += \
    72                 arch/$(ARCH)/src/mouse.c \
    73                 arch/$(ARCH)/src/scanc.c
     71                arch/$(UARCH)/src/mouse.c \
     72                arch/$(UARCH)/src/scanc.c
    7473        GENARCH_SOURCES = \
    7574                genarch/src/kbd.c
    7675        CFLAGS += -DMOUSE_ENABLED
    7776endif
    78 ifeq ($(ARCH), sparc64)
     77ifeq ($(UARCH), sparc64)
    7978        ARCH_SOURCES += \
    80                 arch/$(ARCH)/src/scanc.c \
    81                 arch/$(ARCH)/src/sgcn.c
     79                arch/$(UARCH)/src/scanc.c \
     80                arch/$(UARCH)/src/sgcn.c
    8281        GENARCH_SOURCES = \
    8382                genarch/src/kbd.c \
    8483                genarch/src/nofb.c
    8584endif
    86 ifeq ($(ARCH), arm32)
     85ifeq ($(UARCH), arm32)
    8786        ARCH_SOURCES += \
    88                 arch/$(ARCH)/src/kbd_gxemul.c
     87                arch/$(UARCH)/src/kbd_gxemul.c
    8988endif
    90 ifeq ($(ARCH), mips32)
     89ifeq ($(UARCH), mips32)
    9190        GENARCH_SOURCES += \
    9291            genarch/src/nofb.c
    9392endif
    94 ifeq ($(ARCH), mips32eb)
     93ifeq ($(UARCH), mips32eb)
    9594        GENARCH_SOURCES += \
    9695            genarch/src/nofb.c
     
    110109
    111110links:
    112         ln -sfn ../arch/$(ARCH)/include include/arch
     111        ln -sfn ../arch/$(UARCH)/include include/arch
    113112        ln -sfn ../genarch/include include/genarch
    114113
     
    120119
    121120$(OUTPUT): $(OBJECTS) $(LIBS)
    122         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     121        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    123122
    124123disasm: $(OUTPUT).disasm
  • uspace/srv/kbd/arch/ia64/src/kbd.c

    r84266669 rfcd7053  
    115115
    116116
    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_cmds
    125 };
    126 
    127 
    128 
    129117irq_cmd_t ns16550_cmds[1] = {
    130118        { CMD_PORT_READ_1, 0, 0, 2 },
     
    145133        if (sysinfo_value("kbd")) {
    146134                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);
    151139                        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                }
    154142                return 0;
    155         }       
     143        }
    156144        return 1;
    157145}
     
    171159        static unsigned long buf = 0;
    172160        static int count = 0, esc_count=0;     
    173 
     161       
    174162        int scan_code = IPC_GET_ARG2(*call);
    175 
     163       
    176164        if (scan_code == 0x1b) {
    177165                esc_count++;
     
    182170                esc_count = 0;
    183171        }
    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       
    188178        if(scan_code == 0x7e) {
    189179                switch (buf) {
     
    308298        return 1;
    309299}
    310 
    311 
    312 
    313 
    314 
    315 
    316300
    317301int kbd_ski_process(keybuffer_t *keybuffer, ipc_call_t *call)
     
    394378{
    395379        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);
    401386}
    402387
     
    405390/**
    406391 * @}
    407  */ 
     392 */
  • uspace/srv/kbd/arch/ppc32/src/kbd.c

    r84266669 rfcd7053  
    4040#include <kbd.h>
    4141#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_cmds
    50 };
    5142
    5243
     
    187178                return 0;
    188179       
    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);
    190181}
    191182
  • uspace/srv/loader/Makefile

    r84266669 rfcd7053  
    2828#
    2929
    30 -include ../../../Makefile.config
    31 
    3230## Setup toolchain
    3331#
     
    3533LIBC_PREFIX = ../../lib/libc
    3634SOFTINT_PREFIX = ../../lib/softint
     35
    3736include $(LIBC_PREFIX)/Makefile.toolchain
    38 include arch/$(ARCH)/Makefile.inc
     37include arch/$(UARCH)/Makefile.inc
    3938
    4039CFLAGS += -Iinclude
    4140
    4241LIBS = $(LIBC_PREFIX)/libc.a $(SOFTINT_PREFIX)/libsoftint.a
    43 DEFS += -DRELEASE=\"$(RELEASE)\"
    44 
    45 ifdef REVISION
    46         DEFS += "-DREVISION=\"$(REVISION)\""
    47 endif
    48 
    49 ifdef TIMESTAMP
    50         DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
    51 endif
    5242
    5343## Sources
     
    7060
    7161clean:
    72         -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm arch/$(ARCH)/_link.ld Makefile.depend
     62        -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm arch/$(UARCH)/_link.ld Makefile.depend
    7363
    7464depend:
    7565        $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
    7666
    77 $(OUTPUT): $(OBJECTS) $(LIBS) arch/$(ARCH)/_link.ld
    78         $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBS) -o $@ -Map $(OUTPUT).map
     67$(OUTPUT): $(OBJECTS) $(LIBS) arch/$(UARCH)/_link.ld
     68        $(LD) -T arch/$(UARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBS) -o $@ -Map $(OUTPUT).map
    7969
    8070disasm:
    8171        $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
    8272
    83 arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
     73arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in
    8474        $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
    8575
  • uspace/srv/loader/arch/amd64/Makefile.inc

    r84266669 rfcd7053  
    2828
    2929CFLAGS += -D__64_BITS__
    30 ARCH_SOURCES := arch/$(ARCH)/amd64.s
     30ARCH_SOURCES := arch/$(UARCH)/amd64.s
  • uspace/srv/loader/arch/amd64/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/srv/loader/arch/arm32/Makefile.inc

    r84266669 rfcd7053  
    2828
    2929CFLAGS += -D__32_BITS__
    30 ARCH_SOURCES := arch/$(ARCH)/arm32.s
     30ARCH_SOURCES := arch/$(UARCH)/arm32.s
  • uspace/srv/loader/arch/arm32/_link.ld.in

    r84266669 rfcd7053  
    1 /* 
     1/*
    22 * The only difference from _link.ld.in for regular statically-linked apps
    33 * is the base address.
    44 */
    5 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     5STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    66ENTRY(__entry)
    77
  • uspace/srv/loader/arch/ia32/Makefile.inc

    r84266669 rfcd7053  
    2828
    2929CFLAGS += -D__32_BITS__
    30 ARCH_SOURCES := arch/$(ARCH)/ia32.s
     30ARCH_SOURCES := arch/$(UARCH)/ia32.s
  • uspace/srv/loader/arch/ia32/_link.ld.in

    r84266669 rfcd7053  
    1 /* 
     1/*
    22 * The difference from _link.ld.in for regular statically-linked apps
    33 * is the base address and the special interp section.
    44 */
    5 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     5STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    66ENTRY(__entry)
    77
  • uspace/srv/loader/arch/ia64/Makefile.inc

    r84266669 rfcd7053  
    2828
    2929CFLAGS += -D__64_BITS__
    30 ARCH_SOURCES := arch/$(ARCH)/ia64.s
     30ARCH_SOURCES := arch/$(UARCH)/ia64.s
    3131AFLAGS += -xexplicit
  • uspace/srv/loader/arch/ia64/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/srv/loader/arch/mips32/Makefile.inc

    r84266669 rfcd7053  
    2828
    2929CFLAGS += -D__32_BITS__
    30 ARCH_SOURCES := arch/$(ARCH)/mips32.s
     30ARCH_SOURCES := arch/$(UARCH)/mips32.s
  • uspace/srv/loader/arch/mips32/_link.ld.in

    r84266669 rfcd7053  
    1 /* 
     1/*
    22 * The only difference from _link.ld.in for regular statically-linked apps
    33 * is the base address.
    44 */
    5 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     5STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    66ENTRY(__entry)
    77
  • uspace/srv/loader/arch/ppc32/Makefile.inc

    r84266669 rfcd7053  
    2828
    2929CFLAGS += -D__32_BITS__
    30 ARCH_SOURCES := arch/$(ARCH)/ppc32.s
     30ARCH_SOURCES := arch/$(UARCH)/ppc32.s
  • uspace/srv/loader/arch/ppc32/_link.ld.in

    r84266669 rfcd7053  
    1 /* 
     1/*
    22 * The only difference from _link.ld.in for regular statically-linked apps
    33 * is the base address.
    44 */
    5 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     5STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    66ENTRY(__entry)
    77
  • uspace/srv/loader/arch/sparc64/Makefile.inc

    r84266669 rfcd7053  
    2828
    2929CFLAGS += -D__64_BITS__
    30 ARCH_SOURCES := arch/$(ARCH)/sparc64.s
     30ARCH_SOURCES := arch/$(UARCH)/sparc64.s
  • uspace/srv/loader/arch/sparc64/_link.ld.in

    r84266669 rfcd7053  
    1 STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
     1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
    22ENTRY(__entry)
    33
  • uspace/srv/ns/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    6059
    6160$(OUTPUT): $(OBJECTS) $(LIBS)
    62         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     61        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6362
    6463disasm: $(OUTPUT).disasm
  • uspace/srv/pci/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    33 
    3432LIBC_PREFIX = ../../lib/libc
    3533SOFTINT_PREFIX = ../../lib/softint
     34
    3635include $(LIBC_PREFIX)/Makefile.toolchain
    3736
     
    6362$(OUTPUT): $(OBJECTS) $(LIBS)
    6463        $(MAKE) -C libpci
    65         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     64        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6665
    6766disasm:
  • uspace/srv/pci/libpci/Makefile

    r84266669 rfcd7053  
    33
    44# Modified and ported to HelenOS by Jakub Jermar
    5 
    6 -include ../../../../Makefile.config
    75
    86LIBC_PREFIX=$(shell cd ../../../lib/libc; pwd)
  • uspace/srv/rd/Makefile

    r84266669 rfcd7053  
    3030#
    3131
    32 -include ../../../Makefile.config
    3332
    3433LIBC_PREFIX = ../../lib/libc
    3534SOFTINT_PREFIX = ../../lib/softint
     35
    3636include $(LIBC_PREFIX)/Makefile.toolchain
    3737
     
    6060
    6161$(OUTPUT): $(OBJECTS) $(LIBS)
    62         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     62        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6363
    6464disasm: $(OUTPUT).disasm
  • uspace/srv/vfs/Makefile

    r84266669 rfcd7053  
    3131#
    3232
    33 -include ../../../Makefile.config
    34 
    3533LIBC_PREFIX = ../../lib/libc
    3634SOFTINT_PREFIX = ../../lib/softint
     35
    3736include $(LIBC_PREFIX)/Makefile.toolchain
    3837
     
    6665
    6766$(OUTPUT): $(OBJECTS) $(LIBS)
    68         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     67        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    6968
    7069disasm: $(OUTPUT).disasm
Note: See TracChangeset for help on using the changeset viewer.