source: trunk/params-soft.mk @ 440

Last change on this file since 440 was 440, checked in by alain, 6 years ago

1/ Fix a bug in the Multithreaded "sort" applicationr:
The pthread_create() arguments must be declared as global variables.
2/ The exit syscall can be called by any thread of a process..

File size: 1.8 KB
Line 
1
2#put your absolute path to almos-mkh dir here
3ALMOS-MKH_DIR = /Users/alain/soc/almos-mkh
4
5LIBC_NAME = mini-libc
6#LIBC_NAME = newlib
7
8ARCH_NAME = tsar_mips32
9#ARCH_NAME = x86_64
10
11LIBPTHREAD_NAME = mini-libpthread
12
13ifeq ($(ALMOS-MKH_DIR),)
14$(error Please define ALMOS-MKH_DIR parameter in params-soft.mk!)
15endif
16
17
18ifeq ($(LIBC_NAME), mini-libc)
19  LIBC_PATH = $(ALMOS-MKH_DIR)/libs/mini-libc/
20endif
21ifeq ($(LIBC_NAME), newlib)
22  LIBC_PATH = $(ALMOS-MKH_DIR)/libs/newlib/
23endif
24
25ifeq ($(LIBPTHREAD_NAME), mini-libpthread)
26  LIBPTHREAD_PATH = $(ALMOS-MKH_DIR)/libs/mini-libpthread/
27endif
28
29#Define path to .a and headers files for libc and libpthread
30LIBC = $(LIBC_PATH)/build/lib/
31LIBC_INCLUDE = $(LIBC_PATH)/build/include/
32LIBPTHREAD = $(LIBPTHREAD_PATH)/build/lib/
33LIBPTHREAD_INCLUDE = $(LIBPTHREAD_PATH)/build/include/
34
35
36HAL  = $(ALMOS-MKH_DIR)/hal
37KERNEL = $(ALMOS-MKH_DIR)/kernel
38
39
40ifeq ($(ARCH_NAME), tsar_mips32)
41    $(info ARCH_NAME is tsar_mips32)
42    export CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \
43                 -fno-delete-null-pointer-checks -std=gnu89
44    export CC = mipsel-unknown-elf-gcc
45    export AS = mipsel-unknown-elf-as
46    export LD = mipsel-unknown-elf-ld
47    export DU = mipsel-unknown-elf-objdump
48    export AR = mipsel-unknown-elf-ar
49    export RANLIB = mipsel-unknown-elf-ranlib
50endif
51
52ifeq ($(ARCH_NAME), x86_64)
53    $(info ARCH_NAME is x86_64)
54    export CFLAGS = -Wall -ffreestanding -mno-red-zone -mno-mmx -mno-sse -mno-avx -g \
55      -fno-delete-null-pointer-checks -mcmodel=large -std=gnu89
56    export CC = gcc
57    export AS = as
58    export LD = ld
59    export DU = objdump
60    export AR = ar
61    export RANLIB = ranlib
62endif
63
64ifeq ($(ARCH_NAME),)
65$(error Your ARCH_NAME is not support, check params-soft.mk!)
66endif
67
68BOOTLOADER_PATH = boot/$(ARCH_NAME)
69HAL_ARCH = $(HAL)/$(ARCH_NAME)
70
71
72
Note: See TracBrowser for help on using the repository browser.