Skip to content

Commit

Permalink
feat: remove axlibc and port to ext4
Browse files Browse the repository at this point in the history
1. remove axlibc from the main repo
2. fix some bugs for ext4
  • Loading branch information
Azure-stars committed May 7, 2024
1 parent 537d053 commit 4d104f6
Show file tree
Hide file tree
Showing 133 changed files with 60 additions and 12,050 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

[env]
AX_WORK_DIR = { value = ".", relative = true }
AX_LIBC_DIR = { value = "tools/axlibc", relative = true }
AX_LIBC_DIR = { value = "crates/axlibc", relative = true }
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
with:
arch: aarch64
- name: Clippy for the default target
run: make clippy
run: make pre_libc && make clippy
- name: Clippy for x86_64
run: make clippy ARCH=x86_64
run: make pre_libc && make clippy ARCH=x86_64
- name: Clippy for riscv64
run: make clippy ARCH=riscv64
run: make pre_libc && make clippy ARCH=riscv64
- name: Clippy for aarch64
run: make clippy ARCH=aarch64
run: make pre_libc && make clippy ARCH=aarch64
- name: Check code format
run: cargo fmt --all -- --check

Expand Down Expand Up @@ -95,21 +95,21 @@ jobs:
with:
arch: ${{ matrix.arch }}
- name: Build c/helloworld
run: make ARCH=${{ matrix.arch }} A=apps/c/helloworld
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/helloworld
- name: Build c/memtest
run: make ARCH=${{ matrix.arch }} A=apps/c/memtest
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/memtest
- name: Build c/sqlite3
run: make ARCH=${{ matrix.arch }} A=apps/c/sqlite3
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/sqlite3
- name: Build c/httpclient
run: make ARCH=${{ matrix.arch }} A=apps/c/httpclient
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/httpclient
- name: Build c/httpserver
run: make ARCH=${{ matrix.arch }} A=apps/c/httpserver
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/httpserver
- name: Build c/udpserver
run: make ARCH=${{ matrix.arch }} A=apps/c/udpserver
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/udpserver
- name: Build c/iperf
run: make ARCH=${{ matrix.arch }} A=apps/c/iperf
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/iperf
- name: Build c/redis
run: make ARCH=${{ matrix.arch }} A=apps/c/redis SMP=4
run: make pre_libc && make ARCH=${{ matrix.arch }} A=apps/c/redis SMP=4

build-apps-for-other-platforms:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -139,9 +139,9 @@ jobs:
- name: Build net/httpserver for x86_64-pc-oslab
run: make PLATFORM=x86_64-pc-oslab A=apps/net/httpserver FEATURES=driver-ixgbe
- name: Build c/iperf for x86_64-pc-oslab
run: make PLATFORM=x86_64-pc-oslab A=apps/c/iperf FEATURES=driver-ixgbe,driver-ramdisk
run: make pre_libc && make PLATFORM=x86_64-pc-oslab A=apps/c/iperf FEATURES=driver-ixgbe,driver-ramdisk
- name: Build c/redis for x86_64-pc-oslab
run: make PLATFORM=x86_64-pc-oslab A=apps/c/redis FEATURES=driver-ixgbe,driver-ramdisk SMP=4
run: make pre_libc && make PLATFORM=x86_64-pc-oslab A=apps/c/redis FEATURES=driver-ixgbe,driver-ramdisk SMP=4

- name: Build helloworld for aarch64-raspi4
run: make PLATFORM=aarch64-raspi4 A=apps/helloworld
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
arch: aarch64
- name: Build docs
continue-on-error: ${{ github.ref != env.default-branch && github.event_name != 'pull_request' }}
run: make doc_check_missing
run: make pre_libc && make doc_check_missing
- name: Deploy to Github Pages
if: ${{ github.ref == env.default-branch }}
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Run app tests
run: |
make disk_img
make test ARCH=${{ matrix.arch }}
make pre_libc && make test ARCH=${{ matrix.arch }}
app-test-for-monolithic:
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ arceos-fada.bin.gz
arceos-fada.itb
.tmp_its
!tools/rk3588/ramdisk.img
!tools/axlibc
linker_*
crates/
Loading

0 comments on commit 4d104f6

Please sign in to comment.