-
Notifications
You must be signed in to change notification settings - Fork 59
variants: Relocating the overlays #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variants: Relocating the overlays #156
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR relocates board variant overlay files and header files to align with the Arduino repository structure. The changes restructure how overlay files are organized and improve the CMake build system's search logic to locate these files flexibly across different naming conventions.
Changes:
- Add variant-specific overlay files and header files for 7 board variants (rpi_pico, cc3220sf_launchxl, beagleconnect_freedom, arduino_nano_33_iot, arduino_nano_33_ble, arduino_mkrzero)
- Update CMakeLists.txt files in all 10 sample directories to implement an enhanced variant directory search mechanism that supports multiple naming patterns
Reviewed changes
Copilot reviewed 10 out of 22 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| variants/rpi_pico/variant.h | Add copyright header for Raspberry Pi Pico variant |
| variants/rpi_pico/rpi_pico.overlay | Add device tree overlay with GPIO, PWM, and ADC pin configurations for Raspberry Pi Pico |
| variants/cc3220sf_launchxl/variant.h | Add variant header defining LED pin constants for CC3220SF LaunchXL board |
| variants/cc3220sf_launchxl/cc3220sf_launchxl.overlay | Add device tree overlay with GPIO pin mappings for CC3220SF LaunchXL boosterpack |
| variants/beagleconnect_freedom/variant.h | Add variant header defining I2C pin mappings for BeagleConnect Freedom |
| variants/beagleconnect_freedom/beagleconnect_freedom.overlay | Add device tree overlay with extensive GPIO, PWM, and ADC configurations for BeagleConnect Freedom |
| variants/arduino_nano_33_iot/variant.h | Add copyright header for Arduino Nano 33 IoT variant |
| variants/arduino_nano_33_iot/arduino_nano_33_iot.overlay | Add device tree overlay with GPIO, PWM, and ADC configurations for Arduino Nano 33 IoT |
| variants/arduino_nano_33_ble/variant.h | Add copyright header for Arduino Nano 33 BLE variant |
| variants/arduino_nano_33_ble/arduino_nano_33_ble.overlay | Add device tree overlay with GPIO, PWM, and ADC configurations for Arduino Nano 33 BLE |
| variants/arduino_mkrzero/variant.h | Add copyright header for Arduino MKR Zero variant |
| variants/arduino_mkrzero/arduino_mkrzero.overlay | Add device tree overlay with GPIO, PWM, and ADC configurations for Arduino MKR Zero |
| samples/threads_arduino/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/spi_controller/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/serial_event/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/i2cdemo/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/hello_arduino/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/fade/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/button_press_led/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/blinky_arduino/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/attach_interrupt/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
| samples/analog_input/CMakeLists.txt | Update overlay search logic to support flexible variant directory naming patterns |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
If possible, could you also consider adding an SPDX-compatible license (suitable for inclusion in Zephyr) to the files under the variants directory, and ensuring it is clearly stated in the files? > @pillo79 |
…_setup_readme Update README.md: pre-requirements for macOS and fix flash loader instructions
|
Will do, sorry I couldn't add it in time for 0.53.1. |
06ab039 to
9339e59
Compare
This PR can be merged without waiting for @pillo79 's comment to be addressed. > @DhruvaG2000 |
9339e59 to
fc372d4
Compare
Directories and filenames are now searched in the following order:
- ${board}_${qualifier}_${revision}
- ${board}_${qualifier}
- ${board}
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Move the overlay path to match the arduino-repo. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
fc372d4 to
2122739
Compare
Move the overlay path to match the arduino-repo.
We will also improve the search path accordingly.