mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-12-22 12:10:12 +09:00
Split setup target etc.
This commit is contained in:
parent
cf95337058
commit
56b593ff0d
4
Makefile
4
Makefile
@ -7,10 +7,14 @@ export CROSS_COMPILE=arm-linux-gnueabi-
|
|||||||
setup:
|
setup:
|
||||||
@echo "Updating submodules"
|
@echo "Updating submodules"
|
||||||
@git submodule update --init --recursive
|
@git submodule update --init --recursive
|
||||||
|
|
||||||
|
.PHONY:
|
||||||
|
setup-dev:
|
||||||
@echo "Creating venv"
|
@echo "Creating venv"
|
||||||
@python3 -m venv env
|
@python3 -m venv env
|
||||||
@echo "Installing r3build"
|
@echo "Installing r3build"
|
||||||
@. ./env/bin/activate; \
|
@. ./env/bin/activate; \
|
||||||
|
pip install wheel; \
|
||||||
pip install r3build
|
pip install r3build
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
|
16
README.md
16
README.md
@ -8,6 +8,12 @@ This repository includes:
|
|||||||
- r3build.toml to watch changes that occur in submodules
|
- r3build.toml to watch changes that occur in submodules
|
||||||
|
|
||||||
|
|
||||||
|
Confirmed environments
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
- Debian 10 (buster) amd64
|
||||||
|
|
||||||
|
|
||||||
Getting Started
|
Getting Started
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
@ -29,11 +35,6 @@ Getting Started
|
|||||||
$ git submodule update --init --recursive
|
$ git submodule update --init --recursive
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Then run `make setup` to prepare an build environment. Namely;
|
|
||||||
|
|
||||||
- Python 3 venv in `env`
|
|
||||||
- r3build command in the env
|
|
||||||
|
|
||||||
1. Install uuu.
|
1. Install uuu.
|
||||||
|
|
||||||
- Follow [the instruction](https://github.com/NXPmicro/mfgtools#linux) and build `uuu` executable.
|
- Follow [the instruction](https://github.com/NXPmicro/mfgtools#linux) and build `uuu` executable.
|
||||||
@ -65,6 +66,11 @@ Build Linux
|
|||||||
Watch changes in submodules & auto-build
|
Watch changes in submodules & auto-build
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
|
1. Run `make setup-dev` to prepare a Python venv to watch code changes. Namely;
|
||||||
|
|
||||||
|
- Python 3 venv in `env`
|
||||||
|
- r3build command in the env
|
||||||
|
|
||||||
1. Run `r3build`. It'll detect the changes you make and builds the corresponding executable automatically.
|
1. Run `r3build`. It'll detect the changes you make and builds the corresponding executable automatically.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user