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 <tokita.hiroshi@fujitsu.com>
This commit is contained in:
TOKITA Hiroshi 2023-08-07 07:43:19 +09:00 committed by Fabio Baltieri
commit b2b0901c0d
6 changed files with 2 additions and 6 deletions

View file

@ -2,8 +2,6 @@
cmake_minimum_required(VERSION 3.20.0) 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}) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(iAQcore) project(iAQcore)

View file

@ -14,7 +14,7 @@ Building and Running
******************** ********************
This sample application uses the sensor connected to the i2c stated in the 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. Flash the binary to a board of choice with a sensor connected.
This sample can run on every board with i2c. This sample can run on every board with i2c.
For example build for a nucleo_f446re board: For example build for a nucleo_f446re board:

View file

@ -2,8 +2,6 @@
cmake_minimum_required(VERSION 3.20.0) 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}) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(ens210) project(ens210)

View file

@ -13,7 +13,7 @@ Building and Running
******************** ********************
This sample application uses the sensor connected to the i2c stated in the 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. Flash the binary to a board of choice with a sensor connected.
For example build for a nucleo_f446re board: For example build for a nucleo_f446re board: