-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathMake.defs
More file actions
57 lines (46 loc) · 1.88 KB
/
Copy pathMake.defs
File metadata and controls
57 lines (46 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
############################################################################
# arch/arm64/src/am62x/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
# Pull in arch/arm64/src/common/Make.defs which contributes the shared
# AArch64 C and assembly sources (head.S, mmu, gic, arch_timer, etc.)
include common/Make.defs
# AM62x SoC-specific C sources (always compiled)
CHIP_CSRCS = am62x_boot.c
CHIP_CSRCS += am62x_16550serial.c
ifeq ($(CONFIG_AM62X_GPIO),y)
CHIP_CSRCS += am62x_gpio.c
endif
AM62X_I2C_CONFIGS := $(CONFIG_AM62X_I2C0)
AM62X_I2C_CONFIGS += $(CONFIG_AM62X_I2C1)
AM62X_I2C_CONFIGS += $(CONFIG_AM62X_I2C2)
AM62X_I2C_CONFIGS += $(CONFIG_AM62X_I2C3)
ifneq ($(AM62X_I2C_CONFIGS),)
CHIP_CSRCS += am62x_i2c.c
endif
ifeq ($(CONFIG_AM62X_TISCI),y)
CHIP_CSRCS += am62x_tisci.c
endif
# Early UART assembly (only when CONFIG_ARCH_EARLY_PRINT is set, which
# is selected automatically when CONFIG_ARCH_HAVE_LOWPUTC is enabled
# and the common arch layer needs early console output).
ifeq ($(CONFIG_ARCH_EARLY_PRINT),y)
CHIP_ASRCS = am62x_lowputc.S
endif