mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-11-14 22:38:01 +09:00
1.6 KiB
1.6 KiB
buildbrain
This repository includes:
- linux-brain and u-boot-brain as submodules
- Useful build targets in Makefile
- r3build.toml to watch changes that occur in submodules
Getting Started
-
Clone this repository with recursive clone enabled.
$ git clone --recursive git@github.com:puhitaku/buildbrain.git
- If you've cloned it without
--recursive
, run following command:
$ git submodule update --init --recursive
- If you've cloned it without
-
Then run
make setup
to prepare an build environment. Namely;- Python 3 venv in
env
- r3build command in the env
- Python 3 venv in
-
Install uuu.
- Follow the instruction and build
uuu
executable. - Put
uuu
where the PATH executable points to.
- Follow the instruction and build
Build and inject U-Boot
-
Run
make udefconfig
to generate.config
. -
Run
make ubuild
to build whole repository and generateu-boot.sb
.- i.MX283 loads a packed U-Boot executable called
u-boot.sb
.
- i.MX283 loads a packed U-Boot executable called
-
To inject the executable into i.MX283 in recovery mode, run
make uuu
.
Build Linux
-
Run
make ldefconfig
to generate.config
. -
Run
make lbuild
to generatezImage
. -
Confirm that
linux-brain/arch/arm/boot/zImage
exists.
Watch changes in submodules & auto-build
- Run
r3build
. It'll detect the changes you make and builds the corresponding executable automatically.
What's r3build?
r3build is a smart file watcher that aims to provide hot-reloading feature like Web frontend development.