11bd4fe43Sopenharmony_ci# Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
21bd4fe43Sopenharmony_ci#
31bd4fe43Sopenharmony_ci# This program is free software; you can redistribute it and/or
41bd4fe43Sopenharmony_ci# modify it under the terms of the GNU General Public License
51bd4fe43Sopenharmony_ci# as published by the Free Software Foundation; either version 2
61bd4fe43Sopenharmony_ci# of the License, or (at your option) any later version.
71bd4fe43Sopenharmony_ci#
81bd4fe43Sopenharmony_ci# This program is distributed in the hope that it will be useful,
91bd4fe43Sopenharmony_ci# but WITHOUT ANY WARRANTY; without even the implied warranty of
101bd4fe43Sopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
111bd4fe43Sopenharmony_ci# GNU General Public License for more details.
121bd4fe43Sopenharmony_ci#
131bd4fe43Sopenharmony_ci# You should have received a copy of the GNU General Public License
141bd4fe43Sopenharmony_ci# along with this program; if not, write to the Free Software
151bd4fe43Sopenharmony_ci# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
161bd4fe43Sopenharmony_ci
171bd4fe43Sopenharmony_ciifeq ($(PARAM_FILE), ) 
181bd4fe43Sopenharmony_ci    PARAM_FILE:= ../mpp/Makefile.param
191bd4fe43Sopenharmony_ci    include $(PARAM_FILE)
201bd4fe43Sopenharmony_ciendif
211bd4fe43Sopenharmony_ci
221bd4fe43Sopenharmony_ci.PHONY:clean all interdrv common
231bd4fe43Sopenharmony_ci
241bd4fe43Sopenharmony_cisub_dir := aa
251bd4fe43Sopenharmony_cisub_dir += common
261bd4fe43Sopenharmony_ciifeq ($(CONFIG_INTERDRV), y)
271bd4fe43Sopenharmony_ci    sub_dir += interdrv
281bd4fe43Sopenharmony_ciendif
291bd4fe43Sopenharmony_ci
301bd4fe43Sopenharmony_ciall: $(sub_dir)
311bd4fe43Sopenharmony_ci
321bd4fe43Sopenharmony_ciinterdrv:
331bd4fe43Sopenharmony_ci	@cd $(INTER_DRV) && make
341bd4fe43Sopenharmony_cicommon:
351bd4fe43Sopenharmony_ci	@cd common && make
361bd4fe43Sopenharmony_ciclean:
371bd4fe43Sopenharmony_ci	@cd common && make clean
381bd4fe43Sopenharmony_ci	@cd $(INTER_DRV) && make clean
391bd4fe43Sopenharmony_ciaa:
401bd4fe43Sopenharmony_ci	echo "$(CONFIG_HI_CHIP_TYPE)"
41