https://github.com/nerdcopter/target-convert
bf to ef target converter script
https://github.com/nerdcopter/target-convert
Last synced: 9 months ago
JSON representation
bf to ef target converter script
- Host: GitHub
- URL: https://github.com/nerdcopter/target-convert
- Owner: nerdCopter
- Created: 2023-05-24T18:18:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T16:37:27.000Z (about 2 years ago)
- Last Synced: 2024-04-17T05:20:20.540Z (about 2 years ago)
- Language: Shell
- Size: 281 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EmuFlight target conversion script
* This BASH script is a Work-In-Progress. It downloads and processes target definitions from [Betaflight/config](https://github.com/betaflight/config) and [Betaflight/unified-targets](https://github.com/betaflight/unified-targets) in attempt to convert to EmuFlight targets. Although functional, it does not account for every combination and still requires human modification to resultant files.
#### Prerequisites:
* `sudo apt install grep gawk sed coreutils findutils wget git`
#### Clone the repo:
* `git clone https://github.com/nerdCopter/target-convert.git`
#### Make the script executable:
* `cd target-convert`
* `chmod +x ./convert.sh`
#### Parameters:
* This BASH script expect two parameters:
* [unified-target-name] in the format `VEND-TARGETNAME`. (Note the hyphen! Underscore will not work.)
* [destination-folder] in POSIX path format.
#### Examples:
* `./convert.sh DIAT-MAMBAF405_2022B ./`
* `./convert.sh TURC-TUNERCF405 ./temp`
* `./convert.sh SPBE-SPEEDYBEE_F745_AIO ../EmuFlight/src/main/target/`
#### Outputs:
* Creates a target-folder in the format `TARGETNAME` containing `target.mk`, `target.c`, `target.h`.
* This folder also contains a sub-folder named `resources` which containing downloads and other output.
#### How to compile:
* Copy or move the new target folder to your EmuFlight's `./src/main/target/` folder.
* Review and modify the `target.*` files as needed in a text-editor.
* Compile and test the new target:
* `make TARGETNAME`, where TARGETNAME is the new target name (folder name) that was created.
* examples: `make TUNERCF405`, `make SPEEDYBEE_F745_AIO`.
#### Pull-Requests to EmuFlight:
* When making Pull-Requests to EmuFlight, do not include the `resources` sub-folder folder nor its contents. PR's should only include `TARGETNAME/target.*`.
* Remove all unnecessary comments from the target files.
#### Updating this script:
* Be sure to keep your clone updated:
* `git checkout master ; git pull`