summaryrefslogtreecommitdiff
path: root/chip/mt_scp/build.mk
blob: 42f61d3ff1e31ccd60658e16f7ee10a4e0849900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- makefile -*-
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# SCP specific files build
#

# Required chip modules
chip-y=

ifeq ($(CHIP_VARIANT),$(filter $(CHIP_VARIANT),mt8183 mt8186))
CPPFLAGS+=-Ichip/$(CHIP)/mt818x
dirs-y+=chip/$(CHIP)/mt818x
include chip/$(CHIP)/mt818x/build.mk
endif

ifeq ($(CHIP_VARIANT),$(filter $(CHIP_VARIANT),mt8192 mt8195))
CPPFLAGS+=-Ichip/$(CHIP)/rv32i_common -Ichip/$(CHIP)/$(CHIP_VARIANT)
dirs-y+=chip/$(CHIP)/rv32i_common chip/$(CHIP)/$(CHIP_VARIANT)
include chip/$(CHIP)/rv32i_common/build.mk
# Each chip variant can provide specific build.mk if any
include chip/$(CHIP)/$(CHIP_VARIANT)/build.mk
endif