Add GPL-3.0 copyright headers to all source files#2
Merged
Conversation
Add the standard GPL-3.0-or-later copyright and license header to all source files (.cpp, .h, .c), HTML files, and the sim_build.py script. Update copilot-instructions.md with mandatory copyright header section.
There was a problem hiding this comment.
Pull request overview
Dieser PR ergänzt in OpenDriveHub durchgängig den standardisierten GPL-3.0-or-later Copyright-/Lizenz-Header (inkl. SPDX) am Dateianfang, um die Lizenzkennzeichnung über Firmware-, Simulations- und Web-Assets hinweg konsistent zu machen. Zusätzlich wird die Contributor-Anleitung aktualisiert, damit neue Dateien künftig verpflichtend mit dem Header starten.
Changes:
- GPL-3.0-or-later Header (inkl. SPDX) zu C/C++ Quellen & Headern in
firmware/src,firmware/lib,firmware/include,firmware/simsowie zu Unity-Tests hinzugefügt. - GPL-Header zu den Receiver/Transmitter Web-
index.htmlDateien und zusim_build.pyhinzugefügt. .github/copilot-instructions.mdum eine verpflichtende Copyright-Header-Sektion ergänzt; kleinere Formatierungsanpassungen in einigen Dateien.
Reviewed changes
Copilot reviewed 80 out of 80 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| firmware/test/test_native/test_protocol.cpp | GPL-Header hinzugefügt; kleinere Formatierung/Umbrüche angepasst |
| firmware/test/test_native/test_function_map.cpp | GPL-Header hinzugefügt; kleine Formatierung angepasst |
| firmware/test/test_native/test_display.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/web/TransmitterApi.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/web/TransmitterApi.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/SwitchModule.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/SwitchModule.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/PotModule.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/PotModule.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/ModuleManager.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/ModuleManager.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/InputMap.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/IModule.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/EncoderModule.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/EncoderModule.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/ButtonModule.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/modules/ButtonModule.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/main.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/display/display_utils.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/display/Display.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/display/Display.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/backplane/Backplane.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/backplane/Backplane.cpp | GPL-Header hinzugefügt |
| firmware/src/transmitter/TransmitterApp.h | GPL-Header hinzugefügt |
| firmware/src/transmitter/TransmitterApp.cpp | GPL-Header hinzugefügt |
| firmware/src/receiver/web/ReceiverApi.h | GPL-Header hinzugefügt |
| firmware/src/receiver/web/ReceiverApi.cpp | GPL-Header hinzugefügt |
| firmware/src/receiver/output/Pca9685Output.h | GPL-Header hinzugefügt |
| firmware/src/receiver/output/Pca9685Output.cpp | GPL-Header hinzugefügt |
| firmware/src/receiver/output/LoggingOutput.h | GPL-Header hinzugefügt |
| firmware/src/receiver/output/IOutputDriver.h | GPL-Header hinzugefügt |
| firmware/src/receiver/main.cpp | GPL-Header hinzugefügt |
| firmware/src/receiver/ReceiverApp.h | GPL-Header hinzugefügt |
| firmware/src/receiver/ReceiverApp.cpp | GPL-Header hinzugefügt |
| firmware/src/receiver/OutputManager.h | GPL-Header hinzugefügt |
| firmware/src/receiver/OutputManager.cpp | GPL-Header hinzugefügt |
| firmware/sim/src/sim_wire.cpp | GPL-Header hinzugefügt |
| firmware/sim/src/sim_wifi.cpp | GPL-Header hinzugefügt |
| firmware/sim/src/sim_preferences.cpp | GPL-Header hinzugefügt |
| firmware/sim/src/sim_keyboard.cpp | GPL-Header hinzugefügt |
| firmware/sim/src/sim_freertos.cpp | GPL-Header hinzugefügt; Includes/Formatierung angepasst |
| firmware/sim/src/sim_espnow.cpp | GPL-Header hinzugefügt; Include-Order/Formatierung angepasst |
| firmware/sim/src/sim_async_webserver.cpp | GPL-Header hinzugefügt |
| firmware/sim/src/sim_arduino.cpp | GPL-Header hinzugefügt; kleine Formatierung angepasst |
| firmware/sim/sim_build.py | GPL-Header (Python-Kommentare) hinzugefügt |
| firmware/sim/include/sim_keyboard.h | GPL-Header hinzugefügt |
| firmware/sim/include/freertos/task.h | GPL-Header hinzugefügt; Deklaration formatiert |
| firmware/sim/include/freertos/semphr.h | GPL-Header hinzugefügt |
| firmware/sim/include/freertos/FreeRTOS.h | GPL-Header hinzugefügt; Makro-Spacing angepasst |
| firmware/sim/include/esp_now.h | GPL-Header hinzugefügt; Makro-Spacing angepasst |
| firmware/sim/include/Wire.h | GPL-Header hinzugefügt; Inline-Methoden formatiert |
| firmware/sim/include/WiFi.h | GPL-Header hinzugefügt; Formatierung angepasst |
| firmware/sim/include/TFT_eSPI.h | GPL-Header hinzugefügt; Inline-Methoden formatiert |
| firmware/sim/include/Preferences.h | GPL-Header hinzugefügt |
| firmware/sim/include/LittleFS.h | GPL-Header hinzugefügt |
| firmware/sim/include/ESPAsyncWebServer.h | GPL-Header hinzugefügt |
| firmware/sim/include/Arduino.h | GPL-Header hinzugefügt |
| firmware/sim/include/Adafruit_PCF8574.h | GPL-Header hinzugefügt |
| firmware/sim/include/Adafruit_ADS1X15.h | GPL-Header hinzugefügt; Inline-Methoden formatiert |
| firmware/lib/odh-web/OdhWebServer.h | GPL-Header hinzugefügt |
| firmware/lib/odh-web/OdhWebServer.cpp | GPL-Header hinzugefügt |
| firmware/lib/odh-web/ApiHandler.h | GPL-Header hinzugefügt |
| firmware/lib/odh-telemetry/TelemetryData.h | GPL-Header hinzugefügt |
| firmware/lib/odh-telemetry/TelemetryData.cpp | GPL-Header hinzugefügt |
| firmware/lib/odh-telemetry/BatteryMonitor.h | GPL-Header hinzugefügt |
| firmware/lib/odh-telemetry/BatteryMonitor.cpp | GPL-Header hinzugefügt |
| firmware/lib/odh-radio/TransmitterRadioLink.h | GPL-Header hinzugefügt |
| firmware/lib/odh-radio/TransmitterRadioLink.cpp | GPL-Header hinzugefügt |
| firmware/lib/odh-radio/ReceiverRadioLink.h | GPL-Header hinzugefügt |
| firmware/lib/odh-radio/ReceiverRadioLink.cpp | GPL-Header hinzugefügt |
| firmware/lib/odh-radio/IRadioLink.h | GPL-Header hinzugefügt |
| firmware/lib/odh-protocol/Protocol.h | GPL-Header hinzugefügt |
| firmware/lib/odh-protocol/FunctionMap.h | GPL-Header hinzugefügt |
| firmware/lib/odh-config/NvsStore.h | GPL-Header hinzugefügt |
| firmware/lib/odh-config/Config.h | GPL-Header hinzugefügt |
| firmware/include/lv_conf.h | GPL-Header hinzugefügt |
| firmware/include/User_Setup.h | GPL-Header hinzugefügt |
| firmware/data/transmitter/index.html | GPL-Header (HTML-Kommentar) hinzugefügt |
| firmware/data/receiver/index.html | GPL-Header (HTML-Kommentar) hinzugefügt |
| .github/copilot-instructions.md | “Copyright Header (mandatory)” Sektion ergänzt |
Verifies that all source files (.cpp, .h, .c), HTML files, and Python scripts contain the SPDX-License-Identifier: GPL-3.0-or-later marker in the first 25 lines. Update copilot-instructions.md with the new job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the standard GPL-3.0-or-later copyright and license header to all source files (.cpp, .h, .c), HTML files, and the sim_build.py script. Update copilot-instructions.md with mandatory copyright header section.