Changeset 444 for trunk/params-soft.mk


Ignore:
Timestamp:
May 16, 2018, 8:31:35 PM (4 years ago)
Author:
satin@…
Message:

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/params-soft.mk

    r440 r444  
    11
    22#put your absolute path to almos-mkh dir here
    3 ALMOS-MKH_DIR = /Users/alain/soc/almos-mkh
     3ALMOSMKH_DIR = /Users/alain/soc/almos-mkh
    44
    55LIBC_NAME = mini-libc
     
    1111LIBPTHREAD_NAME = mini-libpthread
    1212
    13 ifeq ($(ALMOS-MKH_DIR),)
    14 $(error Please define ALMOS-MKH_DIR parameter in params-soft.mk!)
     13ifeq ($(ALMOSMKH_DIR),)
     14$(error Please define ALMOSMKH_DIR parameter in params-soft.mk!)
    1515endif
    1616
    1717
    1818ifeq ($(LIBC_NAME), mini-libc)
    19   LIBC_PATH = $(ALMOS-MKH_DIR)/libs/mini-libc/
     19  LIBC_PATH = $(ALMOSMKH_DIR)/libs/mini-libc/
     20  LIBC = $(LIBC_PATH)/build/lib/
     21  LIBC_INCLUDE = $(LIBC_PATH)/build/include/
    2022endif
    2123ifeq ($(LIBC_NAME), newlib)
    22   LIBC_PATH = $(ALMOS-MKH_DIR)/libs/newlib/
     24  ifeq ($(ARCH_NAME), tsar_mips32)
     25    ARCH_NEWLIB=mipsel
     26  endif
     27  #TODO for x86
     28  LIBC_PATH = $(ALMOSMKH_DIR)/libs/newlib/
     29  LIBC = $(LIBC_PATH)/build/$(ARCH_NEWLIB)-almosmkh/lib/
     30  LIBC_INCLUDE = $(LIBC_PATH)/build/$(ARCH_NEWLIB)-almosmkh/include/
    2331endif
    2432
    2533ifeq ($(LIBPTHREAD_NAME), mini-libpthread)
    26   LIBPTHREAD_PATH = $(ALMOS-MKH_DIR)/libs/mini-libpthread/
     34  LIBPTHREAD_PATH = $(ALMOSMKH_DIR)/libs/mini-libpthread/
    2735endif
    2836
     37LIBALMOSMKH_PATH = $(ALMOSMKH_DIR)/libs/libalmos-mkh
    2938#Define path to .a and headers files for libc and libpthread
    30 LIBC = $(LIBC_PATH)/build/lib/
    31 LIBC_INCLUDE = $(LIBC_PATH)/build/include/
    3239LIBPTHREAD = $(LIBPTHREAD_PATH)/build/lib/
    3340LIBPTHREAD_INCLUDE = $(LIBPTHREAD_PATH)/build/include/
     41LIBALMOSMKH = $(LIBALMOSMKH_PATH)/build/lib/
     42LIBALMOSMKH_INCLUDE = $(LIBALMOSMKH_PATH)/build/include/
    3443
    3544
    36 HAL  = $(ALMOS-MKH_DIR)/hal
    37 KERNEL = $(ALMOS-MKH_DIR)/kernel
     45HAL  = $(ALMOSMKH_DIR)/hal
     46KERNEL = $(ALMOSMKH_DIR)/kernel
     47SHARED_INCLUDE = $(KERNEL)/syscalls/shared_include/
    3848
    3949
Note: See TracChangeset for help on using the changeset viewer.