mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: add rsource test app
This commit is contained in:
parent
86d3b962d2
commit
f77eeb34d5
6
tools/test_apps/build_system/rsource_test/CMakeLists.txt
Normal file
6
tools/test_apps/build_system/rsource_test/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# The following lines of boilerplate have to be in your project's
|
||||
# CMakeLists in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(rsource_test)
|
5
tools/test_apps/build_system/rsource_test/Kconfig.extra
Normal file
5
tools/test_apps/build_system/rsource_test/Kconfig.extra
Normal file
@ -0,0 +1,5 @@
|
||||
menu "RSOURCE test"
|
||||
config RSOURCE_EXTRA_CONFIG
|
||||
bool "rsource extra config"
|
||||
default y
|
||||
endmenu
|
8
tools/test_apps/build_system/rsource_test/Makefile
Normal file
8
tools/test_apps/build_system/rsource_test/Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
|
||||
# project subdirectory.
|
||||
#
|
||||
|
||||
PROJECT_NAME := rsource_test
|
||||
|
||||
include $(IDF_PATH)/make/project.mk
|
1
tools/test_apps/build_system/rsource_test/README.txt
Normal file
1
tools/test_apps/build_system/rsource_test/README.txt
Normal file
@ -0,0 +1 @@
|
||||
This project tests that use of rsource in Kconfig files. The main component will source a Kconfig file depending on the target (IDF_TARGET), which in turn will source a Kconfig file in the project directory -- all specified via relative paths.
|
@ -0,0 +1,6 @@
|
||||
idf_component_register(SRCS "test_main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
if(NOT CONFIG_RSOURCE_EXTRA_CONFIG)
|
||||
message(FATAL_ERROR "RSOURCE config not included")
|
||||
endif()
|
1
tools/test_apps/build_system/rsource_test/main/Kconfig
Normal file
1
tools/test_apps/build_system/rsource_test/main/Kconfig
Normal file
@ -0,0 +1 @@
|
||||
rsource "port/$IDF_TARGET/Kconfig"
|
@ -0,0 +1,3 @@
|
||||
ifndef CONFIG_RSOURCE_EXTRA_CONFIG
|
||||
$(error RSOURCE config not included)
|
||||
endif
|
@ -0,0 +1 @@
|
||||
rsource "../../../Kconfig.extra"
|
@ -0,0 +1 @@
|
||||
rsource "../../../Kconfig.extra"
|
@ -0,0 +1,3 @@
|
||||
void app_main(void)
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue
Block a user