From b2b0901c0d7163b50b371ffd1f9381b2b30a330f Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Mon, 7 Aug 2023 07:43:19 +0900 Subject: [PATCH] samples: sensor: change to use the app.overlay file The DTC_OVERLAY_FILE variable is specified on the command line. It's not preferable to set it in CMakeLists.txt. The app.overlay file is used as the default overlay file, so use it. Signed-off-by: TOKITA Hiroshi --- samples/sensor/ams_iAQcore/CMakeLists.txt | 2 -- samples/sensor/ams_iAQcore/README.rst | 2 +- samples/sensor/ams_iAQcore/{iaq_core.overlay => app.overlay} | 0 samples/sensor/ens210/CMakeLists.txt | 2 -- samples/sensor/ens210/README.rst | 2 +- samples/sensor/ens210/{ens210.overlay => app.overlay} | 0 6 files changed, 2 insertions(+), 6 deletions(-) rename samples/sensor/ams_iAQcore/{iaq_core.overlay => app.overlay} (100%) rename samples/sensor/ens210/{ens210.overlay => app.overlay} (100%) diff --git a/samples/sensor/ams_iAQcore/CMakeLists.txt b/samples/sensor/ams_iAQcore/CMakeLists.txt index c570a9d8510..d87712b12ce 100644 --- a/samples/sensor/ams_iAQcore/CMakeLists.txt +++ b/samples/sensor/ams_iAQcore/CMakeLists.txt @@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 3.20.0) -set(DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/iaq_core.overlay") - find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(iAQcore) diff --git a/samples/sensor/ams_iAQcore/README.rst b/samples/sensor/ams_iAQcore/README.rst index 681dab15729..0bc8953d791 100644 --- a/samples/sensor/ams_iAQcore/README.rst +++ b/samples/sensor/ams_iAQcore/README.rst @@ -14,7 +14,7 @@ Building and Running ******************** This sample application uses the sensor connected to the i2c stated in the -iaq_core.overlay file. +app.overlay file. Flash the binary to a board of choice with a sensor connected. This sample can run on every board with i2c. For example build for a nucleo_f446re board: diff --git a/samples/sensor/ams_iAQcore/iaq_core.overlay b/samples/sensor/ams_iAQcore/app.overlay similarity index 100% rename from samples/sensor/ams_iAQcore/iaq_core.overlay rename to samples/sensor/ams_iAQcore/app.overlay diff --git a/samples/sensor/ens210/CMakeLists.txt b/samples/sensor/ens210/CMakeLists.txt index d4e19f92e1b..173af076170 100644 --- a/samples/sensor/ens210/CMakeLists.txt +++ b/samples/sensor/ens210/CMakeLists.txt @@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 3.20.0) -set(DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ens210.overlay") - find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(ens210) diff --git a/samples/sensor/ens210/README.rst b/samples/sensor/ens210/README.rst index 57ee2e868d9..e5edf6086e9 100644 --- a/samples/sensor/ens210/README.rst +++ b/samples/sensor/ens210/README.rst @@ -13,7 +13,7 @@ Building and Running ******************** This sample application uses the sensor connected to the i2c stated in the -ens210.overlay file. +app.overlay file. Flash the binary to a board of choice with a sensor connected. For example build for a nucleo_f446re board: diff --git a/samples/sensor/ens210/ens210.overlay b/samples/sensor/ens210/app.overlay similarity index 100% rename from samples/sensor/ens210/ens210.overlay rename to samples/sensor/ens210/app.overlay