From fc89580655813140a4bbe86b6e66cf6ac494ab07 Mon Sep 17 00:00:00 2001 From: pepepper Date: Sun, 18 Oct 2020 15:27:28 +0900 Subject: [PATCH 1/4] add nkbin_maker --- .gitmodules | 3 +++ Makefile | 5 +++++ README.md | 14 +++++++++++++- nkbin_maker | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) create mode 160000 nkbin_maker diff --git a/.gitmodules b/.gitmodules index 3384d54..4c94f47 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "linux-brain"] path = 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 diff --git a/Makefile b/Makefile index 2578cc2..5cbce00 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,11 @@ lbuild: uuu: sudo uuu ./u-boot-brain/u-boot.sb +.PHONY: +nkbin: + make -C ./nkbin_maker + ./nkbin_maker/bsd-ce ./u-boot-brain/u-boot.bin + debian: mkdir debian sudo debootstrap --arch=armel --foreign buster debian/ diff --git a/README.md b/README.md index 4588557..2177981 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ buildbrain 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 - 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`. +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`. + + - nkbin_maker packs `u-boot.bin` into `nk.bin`. + +3. To make `nk.bin`, run `make nkbin`. + + Build Linux ----------- diff --git a/nkbin_maker b/nkbin_maker new file mode 160000 index 0000000..f73a53f --- /dev/null +++ b/nkbin_maker @@ -0,0 +1 @@ +Subproject commit f73a53f54c84fac53035d89c7b931e064943f014 From ced94e4588a6abe9bd8d87ed60cba70aa96d2e6e Mon Sep 17 00:00:00 2001 From: Chiharu Shirasaka <35837918+pepepper@users.noreply.github.com> Date: Sun, 18 Oct 2020 17:21:33 +0900 Subject: [PATCH 2/4] split build target for nkbin Co-authored-by: Takumi Sueda --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5cbce00..1c43f25 100644 --- a/Makefile +++ b/Makefile @@ -61,8 +61,11 @@ uuu: sudo uuu ./u-boot-brain/u-boot.sb .PHONY: -nkbin: +nkbin-maker: make -C ./nkbin_maker + +.PHONY: +nk.bin: ./nkbin_maker/bsd-ce ./u-boot-brain/u-boot.bin debian: @@ -71,4 +74,3 @@ debian: sudo cp /usr/bin/qemu-arm-static debian/usr/bin/ sudo cp setup_debian.sh debian/ sudo chroot debian /setup_debian.sh - From e1fdf6fc2a7a05e075f548dc669d08258e9377e6 Mon Sep 17 00:00:00 2001 From: Chiharu Shirasaka <35837918+pepepper@users.noreply.github.com> Date: Sun, 18 Oct 2020 17:22:06 +0900 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2177981..9e179a2 100644 --- a/README.md +++ b/README.md @@ -60,10 +60,10 @@ Build and make NK.bin 2. Run `make ubuild` to build whole repository and generate `u-boot.bin`. - - nkbin_maker packs `u-boot.bin` into `nk.bin`. - 3. To make `nk.bin`, run `make nkbin`. + - nkbin_maker packs `u-boot.bin` into `nk.bin`. + Build Linux ----------- From 6c38b528aa341a015e34ee06d80a1c3f46f85d06 Mon Sep 17 00:00:00 2001 From: pepepper Date: Mon, 19 Oct 2020 04:56:48 +0900 Subject: [PATCH 4/4] update nkbin_maker --- nkbin_maker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nkbin_maker b/nkbin_maker index f73a53f..4a97a4e 160000 --- a/nkbin_maker +++ b/nkbin_maker @@ -1 +1 @@ -Subproject commit f73a53f54c84fac53035d89c7b931e064943f014 +Subproject commit 4a97a4e8074cec12ac8989bcfcab9b9f7d47156d