• 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# $(ROOT)/mpp/component/Makefile
18
19ifeq ($(PARAM_FILE), )
20    PARAM_FILE:=../Makefile.param
21    include $(PARAM_FILE)
22endif
23
24ifeq ($(HIARCH),hi3516ev200)
25        TDE_ROOT    := tde_hi3516ev200
26        PM_ROOT     := pm3
27else
28        TDE_ROOT    := tde
29        PM_ROOT     := pm2
30endif
31
32ifeq ($(CONFIG_HI_TDE_SUPPORT), y)
33components += tde
34endif
35
36ifeq ($(CONFIG_HI_HDMI_SUPPORT),y)
37components += hdmi
38endif
39
40ifeq ($(CONFIG_HI_HIFB_SUPPORT),y)
41components += hifb
42endif
43
44components_clean := $(foreach dir, $(components), $(patsubst %, %_clean, $(dir)))
45
46.PHONY:clean all $(components) $(components_clean)
47
48all: $(components)
49	@echo -e "\e[0;32;1m--Compiling 'component'... Configs as follow:\e[0;36;1m"
50	@echo ---- CROSS=$(CROSS)
51	@echo ---- HIARCH=$(HIARCH), HICHIP=$(HICHIP), CVER=$(CVER), HIDBG=$(HIDBG)
52	@echo ---- SDK_PATH=$(SDK_PATH) , PARAM_FILE=$(PARAM_FILE)
53	@echo ---- KERNEL_ROOT=$(KERNEL_ROOT)
54	@echo -e "\e[0m"
55
56clean: $(components_clean)
57	@echo -e "\e[0;32;1m Clean ok! \e[0m"
58
59tde:
60	@cd $(TDE_ROOT) && make
61tde_clean:
62	@cd $(TDE_ROOT) && make clean
63
64hdmi:
65	@cd hdmi/src && make
66hdmi_clean:
67	@cd hdmi/src && make clean
68
69hifb:
70	@cd hifb && make
71hifb_clean:
72	@cd hifb && make clean
73
74avs_lut:
75	@cd avs_lut && make
76avs_lut_clean:
77	@cd avs_lut && make clean
78
79pos_query:
80	@cd pos_query && make
81pos_query_clean:
82	@cd pos_query && make clean
83
84pciv:
85	@cd pci && make
86pciv_clean:
87	@cd pci && make clean
88
89fisheye_adjust:
90	@cd fisheye_adjust && make
91fisheye_adjust_clean:
92	@cd fisheye_adjust && make clean
93vcmp:
94	@cd vcmp && make
95vcmp_clean:
96	@cd vcmp && make clean
97
98photo:
99	@cd photo && make
100photo_clean:
101	@cd photo && make clean
102
103svp:
104	@cd svp && make
105svp_clean:
106	@cd svp && make clean
107
108pm:
109	@cd $(PM_ROOT) && make
110pm_clean:
111	@cd $(PM_ROOT) && make clean
112
113avs_transcode:
114	@cd avc_transcode && make
115avs_transcode_clean:
116	@cd avc_transcode && make clean
117
118tzasc:
119	@cd tzasc && make
120tzasc_clean:
121	@cd tzasc && make clean
122
123motionfusion:
124	@cd motionfusion && make
125motionfusion_clean:
126	@cd motionfusion && make clean
127
128mcf_calibration:
129	@cd mcf_calibration && make
130mcf_calibration_clean:
131	@cd mcf_calibration && make clean
132
133hisyslink:
134	@cd hisyslink && make
135hisyslink_clean:
136	@cd hisyslink; make clean
137
138