Merge pull request #1 from brain-hackers/devenv

Split setup target etc.
This commit is contained in:
Takumi Sueda 2020-10-18 13:53:03 +09:00 committed by GitHub
commit c8fc2900b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -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:

View File

@ -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.