nuttx/boards/arm/mx8mp/verdin-mx8mp/src/Makefile
Philippe Leduc 5b7c948aef Add GPIO
Add userleds
2023-09-06 12:30:35 +08:00

45 lines
1.3 KiB
Makefile

############################################################################
# boards/arm/mx8mp/verdin-mx8mp/src/Makefile
#
# 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.
#
############################################################################
include $(TOPDIR)/Make.defs
CSRCS = mx8mp_boot.c mx8mp_bringup.c
ifeq ($(CONFIG_BOARDCTL),y)
CSRCS += mx8mp_appinit.c
endif
ifeq ($(CONFIG_SENSORS_INA219),y)
CSRCS += mx8mp_ina219.c
endif
ifeq ($(CONFIG_MX8MP_I2C_DRIVER),y)
CSRCS += mx8mp_i2cdev.c
endif
ifeq ($(CONFIG_ARCH_LEDS),y)
#CSRCS += mx8mp_autoleds.c
else
CSRCS += mx8mp_userleds.c
endif
include $(TOPDIR)/boards/Board.mk