Changeset 445 for trunk/params-soft.mk
- Timestamp:
- May 29, 2018, 9:27:23 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/params-soft.mk
r444 r445 1 1 2 # put your absolute path to almos-mkh dir here2 # define absolute path to almos-mkh directory 3 3 ALMOSMKH_DIR = /Users/alain/soc/almos-mkh 4 4 5 # Select the libc 5 6 LIBC_NAME = mini-libc 6 7 #LIBC_NAME = newlib 7 8 9 # Select the target architecture 8 10 ARCH_NAME = tsar_mips32 9 11 #ARCH_NAME = x86_64 10 12 11 LIBPTHREAD_NAME = mini-libpthread 12 13 # check 13 14 ifeq ($(ALMOSMKH_DIR),) 14 15 $(error Please define ALMOSMKH_DIR parameter in params-soft.mk!) 15 16 endif 16 17 18 ifeq ($(ARCH_NAME),) 19 $(error Please define ARCH_NAME parameter in params-soft.mk!) 20 endif 17 21 22 # define path for LIBC 18 23 ifeq ($(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/ 21 26 LIBC_INCLUDE = $(LIBC_PATH)/build/include/ 22 27 endif … … 26 31 endif 27 32 #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/ 30 35 LIBC_INCLUDE = $(LIBC_PATH)/build/$(ARCH_NEWLIB)-almosmkh/include/ 31 36 endif 32 37 33 ifeq ($(LIBPTHREAD_NAME), mini-libpthread) 34 LIBPTHREAD_PATH = $(ALMOSMKH_DIR)/libs/mini-libpthread/ 35 endif 38 # define paths for LIBPTHREAD 39 LIBPTHREAD_PATH = $(ALMOSMKH_DIR)/libs/libpthread/ 40 LIBPTHREAD = $(LIBPTHREAD_PATH)/build/lib/ 41 LIBPTHREAD_INCLUDE = $(LIBPTHREAD_PATH)/build/include/ 36 42 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 44 LIBALMOSMKH_PATH = $(ALMOSMKH_DIR)/libs/libalmosmkh 45 LIBALMOSMKH = $(LIBALMOSMKH_PATH)/build/lib/ 42 46 LIBALMOSMKH_INCLUDE = $(LIBALMOSMKH_PATH)/build/include/ 43 47 48 # define paths for HAL 49 HAL = $(ALMOSMKH_DIR)/hal 50 HAL_ARCH = $(HAL)/$(ARCH_NAME) 44 51 45 HAL = $(ALMOSMKH_DIR)/hal46 KERNEL = $(ALMOSMKH_DIR)/kernel 52 KERNEL = $(ALMOSMKH_DIR)/kernel 53 47 54 SHARED_INCLUDE = $(KERNEL)/syscalls/shared_include/ 48 55 … … 72 79 endif 73 80 74 ifeq ($(ARCH_NAME),)75 $(error Your ARCH_NAME is not support, check params-soft.mk!)76 endif77 78 81 BOOTLOADER_PATH = boot/$(ARCH_NAME) 79 HAL_ARCH = $(HAL)/$(ARCH_NAME)80 82 81 83
Note: See TracChangeset
for help on using the changeset viewer.