From 79ef99279b454ef7fa40bad5c76db0f7b3030ed6 Mon Sep 17 00:00:00 2001 From: f0reachARR Date: Wed, 4 Nov 2020 19:39:09 +0900 Subject: [PATCH] Add workflow for building U-Boot and Linux --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..af8af09 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile index 004bb71..8dc840f 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ debian: echo "Debootstrap is only available in Linux!"; \ exit 1; \ fi - mkdir debian + mkdir -p debian sudo debootstrap --arch=armel --foreign buster debian/ http://localhost:65432/debian/ sudo cp /usr/bin/qemu-arm-static debian/usr/bin/ sudo cp ./tools/setup_debian.sh debian/