summaryrefslogtreecommitdiff
path: root/chip/mt_scp/build.mk
blob: 3e8f63b5a26056306493becfb666c8c360bc8913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- 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=

CPPFLAGS+=-Ichip/$(CHIP)/$(CHIP_VARIANT)
dirs-y+=chip/$(CHIP)/$(CHIP_VARIANT)
# Each chip variant can provide specific build.mk if any
-include chip/$(CHIP)/$(CHIP_VARIANT)/build.mk

ifeq ($(CHIP_VARIANT),$(filter $(CHIP_VARIANT),mt8192 mt8195))
CPPFLAGS+=-Ichip/$(CHIP)/rv32i_common
dirs-y+=chip/$(CHIP)/rv32i_common
include chip/$(CHIP)/rv32i_common/build.mk
endif