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_cisub_dir:= 231bd4fe43Sopenharmony_ci 241bd4fe43Sopenharmony_ciifeq ($(CONFIG_MIPI_RX), y) 251bd4fe43Sopenharmony_ci sub_dir += mipi_rx 261bd4fe43Sopenharmony_ciendif 271bd4fe43Sopenharmony_ci 281bd4fe43Sopenharmony_ciifeq ($(CONFIG_MIPI_TX), y) 291bd4fe43Sopenharmony_ci sub_dir += mipi_tx 301bd4fe43Sopenharmony_ciendif 311bd4fe43Sopenharmony_ci 321bd4fe43Sopenharmony_ciifeq ($(CONFIG_HI_SYSCFG), y) 331bd4fe43Sopenharmony_ci sub_dir += sysconfig 341bd4fe43Sopenharmony_ciendif 351bd4fe43Sopenharmony_ci 361bd4fe43Sopenharmony_ciclean_dir:= $(foreach dir, $(sub_dir), $(patsubst %, %_clean, $(dir))) 371bd4fe43Sopenharmony_ci 381bd4fe43Sopenharmony_ci.PHONY: all clean $(sub_dir) $(clean_dir) 391bd4fe43Sopenharmony_ci 401bd4fe43Sopenharmony_ciall: $(sub_dir) 411bd4fe43Sopenharmony_ci 421bd4fe43Sopenharmony_ci$(sub_dir): 431bd4fe43Sopenharmony_ci @cd $@; make || exit1; 441bd4fe43Sopenharmony_ci 451bd4fe43Sopenharmony_ciclean: $(clean_dir) 461bd4fe43Sopenharmony_ci 471bd4fe43Sopenharmony_ci$(clean_dir): 481bd4fe43Sopenharmony_ci @cd $(patsubst %_clean, %, $@) ; make clean; 49