2022-10-24 14:14:47 +02:00
|
|
|
############################################################################
|
|
|
|
# apps/testing/drivertest/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 $(APPDIR)/Make.defs
|
|
|
|
|
|
|
|
PRIORITY = $(CONFIG_TESTING_DRIVER_TEST_PRIORITY)
|
|
|
|
STACKSIZE = $(CONFIG_TESTING_DRIVER_TEST_STACKSIZE)
|
|
|
|
MODULE = $(CONFIG_TESTING_DRIVER_TEST)
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_TESTING_DRIVER_TEST_SIMPLE),)
|
2022-10-25 04:55:32 +02:00
|
|
|
MAINSRC += drivertest_simple.c
|
2022-10-24 14:14:47 +02:00
|
|
|
PROGNAME += cmocka_driver_simple
|
|
|
|
endif
|
|
|
|
|
2023-06-07 09:14:53 +02:00
|
|
|
ifeq ($(CONFIG_BCH),y)
|
|
|
|
CFLAGS += ${INCDIR_PREFIX}${TOPDIR}/fs
|
|
|
|
PROGNAME += cmocka_driver_block
|
|
|
|
MAINSRC += drivertest_block.c
|
|
|
|
endif
|
|
|
|
|
2023-02-03 07:36:42 +01:00
|
|
|
ifneq ($(CONFIG_RTC),)
|
2023-05-25 08:19:10 +02:00
|
|
|
ifneq ($(CONFIG_SIG_EVTHREAD),)
|
2023-02-03 07:36:42 +01:00
|
|
|
MAINSRC += drivertest_rtc.c
|
|
|
|
PROGNAME += cmocka_driver_rtc
|
|
|
|
endif
|
2023-05-25 08:19:10 +02:00
|
|
|
endif
|
2023-02-03 07:36:42 +01:00
|
|
|
|
2023-02-03 07:51:56 +01:00
|
|
|
ifneq ($(CONFIG_TIMER),)
|
|
|
|
MAINSRC += drivertest_timer.c
|
|
|
|
PROGNAME += cmocka_driver_timer
|
|
|
|
endif
|
|
|
|
|
2023-03-29 08:59:30 +02:00
|
|
|
ifneq ($(CONFIG_ONESHOT),)
|
|
|
|
MAINSRC += drivertest_oneshot.c
|
|
|
|
PROGNAME += cmocka_driver_oneshot
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_POSIX_TIMERS),y)
|
|
|
|
ifneq ($(CONFIG_SIG_EVTHREAD),)
|
|
|
|
MAINSRC += drivertest_posix_timer.c
|
|
|
|
PROGNAME += cmocka_posix_timer
|
|
|
|
endif
|
2023-08-11 10:02:55 +02:00
|
|
|
endif
|
2023-04-17 09:58:15 +02:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_WATCHDOG),)
|
|
|
|
ifneq ($(CONFIG_BOARDCTL_RESET_CAUSE),)
|
|
|
|
MAINSRC += drivertest_watchdog.c
|
|
|
|
PROGNAME += cmocka_driver_watchdog
|
|
|
|
endif
|
2023-03-29 08:59:30 +02:00
|
|
|
endif
|
|
|
|
|
2023-02-08 04:38:09 +01:00
|
|
|
ifneq ($(CONFIG_PWM),)
|
|
|
|
MAINSRC += drivertest_pwm.c
|
|
|
|
PROGNAME += cmocka_driver_pwm
|
|
|
|
endif
|
2023-02-03 07:51:56 +01:00
|
|
|
|
2023-02-03 08:25:55 +01:00
|
|
|
ifneq ($(CONFIG_WATCHDOG),)
|
|
|
|
MAINSRC += drivertest_watchdog.c
|
|
|
|
PROGNAME += cmocka_driver_watchdog
|
|
|
|
endif
|
|
|
|
|
2023-06-06 10:28:31 +02:00
|
|
|
ifneq ($(CONFIG_ADC),)
|
|
|
|
MAINSRC += drivertest_adc.c
|
|
|
|
PROGNAME += cmocka_driver_adc
|
|
|
|
endif
|
|
|
|
|
2023-02-20 10:38:41 +01:00
|
|
|
ifneq ($(CONFIG_I2C)$(CONFIG_SPI),)
|
|
|
|
ifneq ($(CONFIG_SENSORS_BMI160),)
|
|
|
|
MAINSRC += drivertest_i2c_spi.c
|
|
|
|
PROGNAME += cmocka_driver_i2c_spi
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2023-02-09 07:00:01 +01:00
|
|
|
ifneq ($(CONFIG_BCH),)
|
|
|
|
PROGNAME += cmocka_driver_block
|
|
|
|
MAINSRC += drivertest_block.c
|
|
|
|
endif
|
|
|
|
|
2023-02-12 11:12:05 +01:00
|
|
|
ifneq ($(CONFIG_DEV_GPIO),)
|
|
|
|
PROGNAME += cmocka_driver_gpio
|
|
|
|
MAINSRC += drivertest_gpio.c
|
|
|
|
endif
|
|
|
|
|
2023-02-17 06:11:16 +01:00
|
|
|
ifneq ($(CONFIG_RELAY),)
|
|
|
|
MAINSRC += drivertest_relay.c
|
|
|
|
PROGNAME += cmocka_driver_relay
|
|
|
|
endif
|
|
|
|
|
2022-10-27 09:02:39 +02:00
|
|
|
ifneq ($(CONFIG_SERIAL),)
|
|
|
|
MAINSRC += drivertest_uart.c
|
|
|
|
PROGNAME += cmocka_driver_uart
|
|
|
|
endif
|
|
|
|
|
2023-08-09 04:21:30 +02:00
|
|
|
ifneq ($(CONFIG_AUDIO),)
|
|
|
|
MAINSRC += drivertest_audio.c
|
|
|
|
PROGNAME += cmocka_driver_audio
|
2023-03-15 11:44:29 +01:00
|
|
|
endif
|
2023-01-03 07:47:55 +01:00
|
|
|
|
2023-03-15 11:44:29 +01:00
|
|
|
ifneq ($(CONFIG_VIDEO_FB),)
|
2023-01-03 07:47:55 +01:00
|
|
|
MAINSRC += drivertest_framebuffer.c
|
|
|
|
PROGNAME += cmocka_driver_framebuffer
|
2023-08-09 04:21:30 +02:00
|
|
|
endif
|
|
|
|
|
2023-01-09 09:00:37 +01:00
|
|
|
ifneq ($(CONFIG_LCD_DEV),)
|
|
|
|
MAINSRC += drivertest_lcd.c
|
|
|
|
PROGNAME += cmocka_driver_lcd
|
|
|
|
endif
|
|
|
|
|
2023-08-10 08:01:02 +02:00
|
|
|
ifneq ($(CONFIG_REGULATOR),)
|
|
|
|
MAINSRC += drivertest_regulator.c
|
|
|
|
PROGNAME += cmocka_driver_regulator
|
|
|
|
endif
|
|
|
|
|
2023-04-20 04:30:21 +02:00
|
|
|
ifneq ($(CONFIG_LV_USE_TOUCHPAD_INTERFACE),)
|
|
|
|
MAINSRC += drivertest_touchpanel.c
|
|
|
|
PROGNAME += cmocka_driver_touchpanel
|
|
|
|
endif
|
|
|
|
|
2022-10-24 14:14:47 +02:00
|
|
|
include $(APPDIR)/Application.mk
|