source: trunk/params-soft.mk @ 439

Last change on this file since 439 was 439, checked in by satin@…, 4 years ago

Introduice new distributed Makefile architecture.
Remove deprecated sys/ directory

File size: 1.7 KB
Line 
1
2#put your absolute path to almos-mkh dir here
3ALMOS-MKH_DIR =
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
49endif
50
51ifeq ($(ARCH_NAME), x86_64)
52    $(info ARCH_NAME is x86_64)
53    export CFLAGS = -Wall -ffreestanding -mno-red-zone -mno-mmx -mno-sse -mno-avx -g \
54      -fno-delete-null-pointer-checks -mcmodel=large -std=gnu89
55    export CC = gcc
56    export AS = as
57    export LD = ld
58    export DU = objdump
59    export AR = ar
60endif
61
62ifeq ($(ARCH_NAME),)
63$(error Your ARCH_NAME is not support, check params-soft.mk!)
64endif
65
66BOOTLOADER_PATH = boot/$(ARCH_NAME)
67HAL_ARCH = $(HAL)/$(ARCH_NAME)
68
69
70
Note: See TracBrowser for help on using the repository browser.