Changeset 445 for trunk/params-soft.mk


Ignore:
Timestamp:
May 29, 2018, 9:27:23 AM (6 years ago)
Author:
alain
Message:

Restructure the mini_libc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/params-soft.mk

    r444 r445  
    11
    2 #put your absolute path to almos-mkh dir here
     2# define absolute path to almos-mkh directory
    33ALMOSMKH_DIR = /Users/alain/soc/almos-mkh
    44
     5# Select the libc
    56LIBC_NAME = mini-libc
    67#LIBC_NAME = newlib
    78
     9# Select the target architecture
    810ARCH_NAME = tsar_mips32
    911#ARCH_NAME = x86_64
    1012
    11 LIBPTHREAD_NAME = mini-libpthread
    12 
     13# check
    1314ifeq ($(ALMOSMKH_DIR),)
    1415$(error Please define ALMOSMKH_DIR parameter in params-soft.mk!)
    1516endif
    1617
     18ifeq ($(ARCH_NAME),)
     19$(error Please define ARCH_NAME parameter in params-soft.mk!)
     20endif
    1721
     22# define path for LIBC
    1823ifeq ($(LIBC_NAME), mini-libc)
    19   LIBC_PATH = $(ALMOSMKH_DIR)/libs/mini-libc/
    20   LIBC = $(LIBC_PATH)/build/lib/
     24  LIBC_PATH    = $(ALMOSMKH_DIR)/libs/mini-libc/
     25  LIBC         = $(LIBC_PATH)/build/lib/
    2126  LIBC_INCLUDE = $(LIBC_PATH)/build/include/
    2227endif
     
    2631  endif
    2732  #TODO for x86
    28   LIBC_PATH = $(ALMOSMKH_DIR)/libs/newlib/
    29   LIBC = $(LIBC_PATH)/build/$(ARCH_NEWLIB)-almosmkh/lib/
     33  LIBC_PATH    = $(ALMOSMKH_DIR)/libs/newlib/
     34  LIBC         = $(LIBC_PATH)/build/$(ARCH_NEWLIB)-almosmkh/lib/
    3035  LIBC_INCLUDE = $(LIBC_PATH)/build/$(ARCH_NEWLIB)-almosmkh/include/
    3136endif
    3237
    33 ifeq ($(LIBPTHREAD_NAME), mini-libpthread)
    34   LIBPTHREAD_PATH = $(ALMOSMKH_DIR)/libs/mini-libpthread/
    35 endif
     38# define paths for LIBPTHREAD
     39LIBPTHREAD_PATH    = $(ALMOSMKH_DIR)/libs/libpthread/
     40LIBPTHREAD         = $(LIBPTHREAD_PATH)/build/lib/
     41LIBPTHREAD_INCLUDE = $(LIBPTHREAD_PATH)/build/include/
    3642
    37 LIBALMOSMKH_PATH = $(ALMOSMKH_DIR)/libs/libalmos-mkh
    38 #Define path to .a and headers files for libc and libpthread
    39 LIBPTHREAD = $(LIBPTHREAD_PATH)/build/lib/
    40 LIBPTHREAD_INCLUDE = $(LIBPTHREAD_PATH)/build/include/
    41 LIBALMOSMKH = $(LIBALMOSMKH_PATH)/build/lib/
     43# define paths for LIBALMOSMKH
     44LIBALMOSMKH_PATH    = $(ALMOSMKH_DIR)/libs/libalmosmkh
     45LIBALMOSMKH         = $(LIBALMOSMKH_PATH)/build/lib/
    4246LIBALMOSMKH_INCLUDE = $(LIBALMOSMKH_PATH)/build/include/
    4347
     48# define paths for HAL
     49HAL      = $(ALMOSMKH_DIR)/hal
     50HAL_ARCH = $(HAL)/$(ARCH_NAME)
    4451
    45 HAL  = $(ALMOSMKH_DIR)/hal
    46 KERNEL = $(ALMOSMKH_DIR)/kernel
     52KERNEL   = $(ALMOSMKH_DIR)/kernel
     53
    4754SHARED_INCLUDE = $(KERNEL)/syscalls/shared_include/
    4855
     
    7279endif
    7380
    74 ifeq ($(ARCH_NAME),)
    75 $(error Your ARCH_NAME is not support, check params-soft.mk!)
    76 endif
    77 
    7881BOOTLOADER_PATH = boot/$(ARCH_NAME)
    79 HAL_ARCH = $(HAL)/$(ARCH_NAME)
    8082
    8183
Note: See TracChangeset for help on using the changeset viewer.