mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-12-22 12:10:12 +09:00
commit
88ccb106aa
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -4,3 +4,6 @@
|
|||||||
[submodule "linux-brain"]
|
[submodule "linux-brain"]
|
||||||
path = linux-brain
|
path = linux-brain
|
||||||
url = https://github.com/brain-hackers/linux-brain
|
url = https://github.com/brain-hackers/linux-brain
|
||||||
|
[submodule "nkbin_maker"]
|
||||||
|
path = nkbin_maker
|
||||||
|
url = https://github.com/brain-hackers/nkbin_maker.git
|
||||||
|
9
Makefile
9
Makefile
@ -60,10 +60,17 @@ lbuild:
|
|||||||
uuu:
|
uuu:
|
||||||
sudo uuu ./u-boot-brain/u-boot.sb
|
sudo uuu ./u-boot-brain/u-boot.sb
|
||||||
|
|
||||||
|
.PHONY:
|
||||||
|
nkbin-maker:
|
||||||
|
make -C ./nkbin_maker
|
||||||
|
|
||||||
|
.PHONY:
|
||||||
|
nk.bin:
|
||||||
|
./nkbin_maker/bsd-ce ./u-boot-brain/u-boot.bin
|
||||||
|
|
||||||
debian:
|
debian:
|
||||||
mkdir debian
|
mkdir debian
|
||||||
sudo debootstrap --arch=armel --foreign buster debian/
|
sudo debootstrap --arch=armel --foreign buster debian/
|
||||||
sudo cp /usr/bin/qemu-arm-static debian/usr/bin/
|
sudo cp /usr/bin/qemu-arm-static debian/usr/bin/
|
||||||
sudo cp setup_debian.sh debian/
|
sudo cp setup_debian.sh debian/
|
||||||
sudo chroot debian /setup_debian.sh
|
sudo chroot debian /setup_debian.sh
|
||||||
|
|
||||||
|
14
README.md
14
README.md
@ -3,7 +3,7 @@ buildbrain
|
|||||||
|
|
||||||
This repository includes:
|
This repository includes:
|
||||||
|
|
||||||
- linux-brain and u-boot-brain as submodules
|
- linux-brain, u-boot-brain and nkbin_maker as submodules
|
||||||
- Useful build targets in Makefile
|
- Useful build targets in Makefile
|
||||||
- r3build.toml to watch changes that occur in submodules
|
- r3build.toml to watch changes that occur in submodules
|
||||||
|
|
||||||
@ -53,6 +53,18 @@ Build and inject U-Boot
|
|||||||
3. To inject the executable into i.MX283 in recovery mode, run `make uuu`.
|
3. To inject the executable into i.MX283 in recovery mode, run `make uuu`.
|
||||||
|
|
||||||
|
|
||||||
|
Build and make NK.bin
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
1. Run `make udefconfig` to generate `.config`.
|
||||||
|
|
||||||
|
2. Run `make ubuild` to build whole repository and generate `u-boot.bin`.
|
||||||
|
|
||||||
|
3. To make `nk.bin`, run `make nkbin`.
|
||||||
|
|
||||||
|
- nkbin_maker packs `u-boot.bin` into `nk.bin`.
|
||||||
|
|
||||||
|
|
||||||
Build Linux
|
Build Linux
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
1
nkbin_maker
Submodule
1
nkbin_maker
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 4a97a4e8074cec12ac8989bcfcab9b9f7d47156d
|
Loading…
Reference in New Issue
Block a user