• 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
17TDE_DIR = $(PWD)
18
19export HI_MAKE_DEBUG :=
20export MAIN_VERSION := "v2.0.0.0"
21export ADP_VERSION := $(CHIP_ARCH)"adp v2.0.0.0"
22export CHIP_VERSION := _TDE_V400
23
24ifeq ($(CFG_KERNEL_AARCH64_LINUX_GNU), y)
25export SIXTYFOUR_SYS_STATUS = y
26else
27export SIXTYFOUR_SYS_STATUS = n
28endif
29
30.PHONY:clean all driver driverclean
31
32all: driver
33
34driver:
35	@cd driver; make
36	@cp $(TDE_DIR)/driver/$(ARCH_LIBNAME)_tde.ko $(REL_KO)/ -f
37
38clean:driverclean
39	@rm -rf $(PWD)/lib
40
41driverclean:
42	@cd driver; make clean
43	@rm $(REL_KO)/$(ARCH_LIBNAME)_tde.ko -f
44