1.自动构建脚本新增对eclipse的支持。
This commit is contained in:
27
README_EN.md
27
README_EN.md
@@ -182,30 +182,15 @@ version (the `MR` scripting tool relies on Python, install it yourself if there
|
||||
|
||||

|
||||
|
||||
5. Add the files to the IDE (most ides automatically recognize the files in the project path, eliminating the need for
|
||||
this step). Add `mr-library` to the compiler
|
||||
Contains the path. Configure the GNU syntax. If you are using a non-gcc compiler, enable GNU syntax.
|
||||
5. Use the automatic build script to complete the automatic build. In the `mr-library` path, open the command line tool and run:
|
||||
|
||||
The `MR` configuration script supports the `MDK` project automatic configuration. In the `mr-library` path, open the
|
||||
command line tool and run `python build.py -mdk` to complete the configuration automatically (when done, skip the
|
||||
remaining steps to `Configuration menu options`).
|
||||
- `MDK`:`python build.py -mdk`
|
||||
- `Eclipse`:`python build.py -ecl`
|
||||
|
||||
Take `MDK` as an example:
|
||||
|
||||

|
||||
|
||||
6. Configure automatic initialization (GCC environment), find the connection script file with suffix `.ld `under your
|
||||
project (usually` link.ld `), and add code to the script file (such as using the environment that can automatically
|
||||
generate link scripts such as` MDK `, please skip this step) :
|
||||
|
||||
```c
|
||||
/* mr-library auto init */
|
||||
. = ALIGN(4);
|
||||
_mr_auto_init_start = .;
|
||||
KEEP(*(SORT(.auto_init*)))
|
||||
_mr_auto_init_end = .;
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Configure Menu Options
|
||||
|
||||
1. Open the command line tool in the `mr-library` directory and run `python build.py -m` for menu configuration.
|
||||
@@ -228,6 +213,8 @@ version (the `MR` scripting tool relies on Python, install it yourself if there
|
||||
4. In the project, introduce `#include` include/mr_lib.h `and add` mr_auto_init() `to` main `function; `
|
||||
Automatically initialize the function and start using it.
|
||||
|
||||
Note: More commands can be entered: `python build.py -h` to view.
|
||||
|
||||
----------
|
||||
|
||||
# Let`s Light an LED
|
||||
|
||||
Reference in New Issue
Block a user