mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-12-22 20:20:11 +09:00
Add workflow for building U-Boot and Linux
This commit is contained in:
parent
3de592755b
commit
79ef99279b
29
.github/workflows/build.yml
vendored
Normal file
29
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Install deps
|
||||||
|
run: sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi qemu-user-static
|
||||||
|
|
||||||
|
- name: Build nkbin-maker
|
||||||
|
run: make nkbin-maker
|
||||||
|
- name: Configure for U-Boot
|
||||||
|
run: make udefconfig
|
||||||
|
- name: Build U-Boot
|
||||||
|
run: make ubuild
|
||||||
|
- name: Generate NK.bin
|
||||||
|
run: make nk.bin
|
||||||
|
|
||||||
|
- name: Configure for Linux
|
||||||
|
run: make ldefconfig
|
||||||
|
- name: Build Linux
|
||||||
|
run: make lbuild
|
2
Makefile
2
Makefile
@ -81,7 +81,7 @@ debian:
|
|||||||
echo "Debootstrap is only available in Linux!"; \
|
echo "Debootstrap is only available in Linux!"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
mkdir debian
|
mkdir -p debian
|
||||||
sudo debootstrap --arch=armel --foreign buster debian/ http://localhost:65432/debian/
|
sudo debootstrap --arch=armel --foreign buster debian/ http://localhost:65432/debian/
|
||||||
sudo cp /usr/bin/qemu-arm-static debian/usr/bin/
|
sudo cp /usr/bin/qemu-arm-static debian/usr/bin/
|
||||||
sudo cp ./tools/setup_debian.sh debian/
|
sudo cp ./tools/setup_debian.sh debian/
|
||||||
|
Loading…
Reference in New Issue
Block a user