Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to build with clang too #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ jobs:
- master
host:
- ubuntu-22.04
cc:
- gcc
include:
- linux: v5.10
host: ubuntu-20.04
cc: gcc
- linux: master
host: ubuntu-22.04
cc: clang
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -38,14 +44,14 @@ jobs:
- run: sudo apt-get install -y libelf-dev ccache
- uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.linux }}
key: ${{ matrix.linux }}-${{ matrix.cc }}
- name: Configure kernel
run: |
make -C linux tinyconfig
make -C linux tinyconfig CC=${{ matrix.cc }}
echo -e "CONFIG_64BIT=y\nCONFIG_X86_64=y\nCONFIG_MODULES=y\nCONFIG_INPUT=y" > linux/kernel/configs/ci.config
make -C linux ci.config
- name: Run make -C linux
make -C linux ci.config CC=${{ matrix.cc }}
- name: Run make -C linux CC=${{ matrix.cc }}
run: |
export PATH="/usr/lib/ccache:$PATH"
make -C linux -j $(nproc)
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1
make -C linux -j $(nproc) CC=${{ matrix.cc }}
- run: make -C tp_smapi modules KBUILD=../linux HDAPS=1 CC=${{ matrix.cc }}
2 changes: 1 addition & 1 deletion tp_smapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int smapi_request(u32 inEBX, u32 inECX,
"=m"(tmpEDI),
"=m"(tmpESI)
:"m"(inEBX), "m"(inECX), "m"(inEDI), "m"(inESI),
"m"((u16)smapi_port)
"m"(smapi_port)
:"%eax", "%ebx", "%ecx", "%edx", "%edi",
"%esi");

Expand Down