coreboot-libre-fam15h-rdimm/3rdparty/chromeec/chip/mt_scp/build.mk

35 lines
973 B
Makefile
Raw Normal View History

2024-03-04 11:14:53 +01:00
# -*- 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
#
CORE:=cortex-m
CFLAGS_CPU+=-march=armv7e-m -mcpu=cortex-m4
# Required chip modules
chip-y=clock.o gpio.o memmap.o system.o uart.o
ifeq ($(CONFIG_IPI),y)
$(out)/RO/chip/$(CHIP)/ipi_table.o: $(out)/ipi_table_gen.inc
$(out)/RW/chip/$(CHIP)/ipi_table.o: $(out)/ipi_table_gen.inc
endif
ifeq ($(CONFIG_AUDIO_CODEC_WOV),y)
HOTWORD_PRIVATE_LIB:=private/libkukui_scp_google_hotword_dsp_api.a
ifneq ($(wildcard $(HOTWORD_PRIVATE_LIB)),)
LDFLAGS_EXTRA+=$(HOTWORD_PRIVATE_LIB)
HAVE_PRIVATE_AUDIO_CODEC_WOV_LIBS:=y
endif
endif
# Optional chip modules
chip-$(CONFIG_AUDIO_CODEC_WOV)+=audio_codec_wov.o
chip-$(CONFIG_COMMON_TIMER)+=hrtimer.o
chip-$(CONFIG_I2C)+=i2c.o
chip-$(CONFIG_IPI)+=ipi.o ipi_table.o
chip-$(CONFIG_SPI)+=spi.o
chip-$(CONFIG_WATCHDOG)+=watchdog.o