mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
feat: la64 boot (#1132)
* la64能够进入到kernel_main * ci: 添加为ubuntu编译qemu-loongarch64的脚本 * feat: la64能输出hello world * la64 安装gcc && 配置github ci * chore: 更新CI工作流和构建脚本中的Docker镜像版本至v1.10 Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
70
.github/workflows/makefile.yml
vendored
70
.github/workflows/makefile.yml
vendored
@ -11,14 +11,14 @@ jobs:
|
||||
name: Format check ${{ matrix.arch }}
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
container: dragonos/dragonos-dev:v1.9
|
||||
container: dragonos/dragonos-dev:v1.10
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [x86_64, riscv64]
|
||||
arch: [x86_64, riscv64, loongarch64]
|
||||
|
||||
steps:
|
||||
- run: echo "Running in dragonos/dragonos-dev:v1.9"
|
||||
- run: echo "Running in dragonos/dragonos-dev:v1.10"
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Format check
|
||||
@ -35,14 +35,14 @@ jobs:
|
||||
name: Kernel static test ${{ matrix.arch }}
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
container: dragonos/dragonos-dev:v1.9
|
||||
container: dragonos/dragonos-dev:v1.10
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [x86_64, riscv64]
|
||||
arch: [x86_64, riscv64, loongarch64]
|
||||
|
||||
steps:
|
||||
- run: echo "Running in dragonos/dragonos-dev:v1.9"
|
||||
- run: echo "Running in dragonos/dragonos-dev:v1.10"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@ -53,46 +53,40 @@ jobs:
|
||||
HOME: /root
|
||||
run: bash -c "source /root/.cargo/env && cd kernel && make test && make test-rbpf"
|
||||
|
||||
build-x86_64:
|
||||
build:
|
||||
name: Build ${{ matrix.arch }}
|
||||
runs-on: ubuntu-latest
|
||||
container: dragonos/dragonos-dev:v1.9
|
||||
container: dragonos/dragonos-dev:v1.10
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- arch: x86_64
|
||||
make_target: all
|
||||
checkout_params: {}
|
||||
- arch: riscv64
|
||||
make_target: all
|
||||
checkout_params:
|
||||
submodules: "recursive"
|
||||
- arch: loongarch64
|
||||
make_target: all
|
||||
checkout_params: {}
|
||||
|
||||
steps:
|
||||
- run: echo "Running in dragonos/dragonos-dev:v1.9"
|
||||
|
||||
- run: echo "Running in dragonos/dragonos-dev:v1.10"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- name: build the DragonOS
|
||||
with: ${{ matrix.checkout_params }}
|
||||
|
||||
- name: Build the DragonOS
|
||||
env:
|
||||
ARCH: x86_64
|
||||
ARCH: ${{ matrix.arch }}
|
||||
HOME: /root
|
||||
shell: bash -ileo pipefail {0}
|
||||
|
||||
run: |
|
||||
source ~/.bashrc
|
||||
source ~/.cargo/env
|
||||
export DragonOS_GCC=$HOME/opt/dragonos-gcc/gcc-x86_64-unknown-none/bin
|
||||
if [[ "$ARCH" == "x86_64" ]]; then
|
||||
export DragonOS_GCC=$HOME/opt/dragonos-gcc/gcc-x86_64-unknown-none/bin
|
||||
fi
|
||||
sed -i 's/arch = ".*"/arch = "${{ env.ARCH }}"/' dadk-manifest.toml
|
||||
|
||||
make all -j $(nproc)
|
||||
|
||||
build-riscv64:
|
||||
runs-on: ubuntu-latest
|
||||
container: dragonos/dragonos-dev:v1.9
|
||||
|
||||
steps:
|
||||
- run: echo "Running in dragonos/dragonos-dev:v1.9"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: "recursive"
|
||||
|
||||
- name: build the DragonOS
|
||||
shell: bash -ileo pipefail {0}
|
||||
env:
|
||||
ARCH: riscv64
|
||||
HOME: /root
|
||||
|
||||
run: |
|
||||
source ~/.bashrc && source ~/.cargo/env
|
||||
sed -i 's/arch = ".*"/arch = "${{ env.ARCH }}"/' dadk-manifest.toml
|
||||
make kernel -j $(nproc)
|
||||
make ${{ matrix.make_target }} -j $(nproc)
|
||||
|
Reference in New Issue
Block a user