• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
2#
3# This program is free software; you can redistribute it and/or
4# modify it under the terms of the GNU General Public License
5# as published by the Free Software Foundation; either version 2
6# of the License, or (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
15# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
16
17#*************************************************************************
18ifeq ($(PARAM_FILE), )
19    PARAM_FILE:=../../Makefile.param
20    include $(PARAM_FILE)
21endif
22
23ifeq ($(CBB_PARAM_FILE), )
24    CBB_PARAM_FILE:=../Makefile.param
25    include $(CBB_PARAM_FILE)
26endif
27#*************************************************************************
28# local header
29MKP_CFLAGS+=-I $(PWD)/mkp/include
30MKP_CFLAGS+=-I $(PWD)/arch/include
31MKP_CFLAGS+=-I $(PWD)/arch/$(HIARCH)/include
32MKP_CFLAGS+=-I $(SDK_PATH)/interdrv/$(HIARCH)
33
34MKP_CFLAGS :=$(subst base/,based/,$(MKP_CFLAGS))
35MKP_CFLAGS :=$(subst sys/,sysd/,$(MKP_CFLAGS))
36#*************************************************************************
37# all source file in this module
38#SRCS := mkp/src/sys_ext.c \
39#        mkp/src/sys_bind.c
40SRCS:=
41
42# src relative path
43CBB_SYS_ROOT=./
44CBB_SYS_ARCH=arch/$(HIARCH)/
45
46# Makefile absolute path
47ifeq ($(CONFIG_DRIVER_SPACE_TYPE),user_space)
48include $(CBB_ROOT)/sysd/mkp/src/Makefile
49include $(CBB_ROOT)/sysd/arch/$(HIARCH)/hal/Makefile
50else
51include $(CBB_ROOT)/sys/mkp/src/Makefile
52include $(CBB_ROOT)/sys/arch/$(HIARCH)/hal/Makefile
53endif
54
55INIT_FILE := ../init/$(HIARCH)/$(OSTYPE)/sys_init.c
56
57SRCS_O := $(SRCS)
58SRCS += $(INIT_FILE)
59
60#*************************************************************************
61# release header
62INC_FILE := $(wildcard include/*.h)
63
64MOD_NAME := hi_sys
65
66TARGET   := $(ARCH_LIBNAME)_sys
67#*************************************************************************
68# compile linux or huawei_liteos
69include $(PWD)/../Makefile.$(OSTYPE)
70