Skip to content

Commit

Permalink
workflows : revert kernel version on Linux/Android arm64 due QEMU hav…
Browse files Browse the repository at this point in the history
…e not kconfig.h header file.

fatal error: 'linux/kconfig.h' file not found.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Nov 5, 2022
1 parent 7dea083 commit 839026e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/go-c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ jobs:
run: go test -v ./...

build-on-ubuntu2004-arm64:
runs-on: ubuntu-20.04
name: build on ubuntu-20.04 arm64
runs-on: ubuntu-22.04
name: build on ubuntu-22.04 arm64
# Run steps on a matrix of 3 arch/distro combinations
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu20.04
distro: ubuntu22.04
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -177,19 +177,17 @@ jobs:
install: |
uname -a
apt-get update
apt-get install --yes wget git golang build-essential pkgconf libelf-dev llvm-9 clang-9 linux-tools-generic linux-tools-common
wget https://golang.google.cn/dl/go1.18.8.linux-arm64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.8.linux-arm64.tar.gz
apt-get install --yes wget git golang build-essential pkgconf libelf-dev llvm-12 clang-12 linux-tools-generic linux-tools-common
# Produce a binary artifact and place it in the mounted volume
run: |
uname -a
date
export PATH=/usr/local/go/bin:$PATH:/usr/local/bin
export PATH=$PATH:/usr/local/bin
echo $PATH
for tool in "clang" "llc" "llvm-strip"
do
rm -f /usr/bin/$tool
ln -s /usr/bin/$tool-9 /usr/bin/$tool
ln -s /usr/bin/$tool-12 /usr/bin/$tool
done
clang --version
which bpftool
Expand All @@ -202,7 +200,7 @@ jobs:
echo "-------------------start: Create ecapture.tar.gz of Linux -------------------"
make env
make clean
make nocore
make
echo "-------------------ecapture --help-------------------"
bin/ecapture -v
echo "-------------------create tar.gz file-------------------"
Expand All @@ -229,7 +227,7 @@ jobs:
echo "-------------------start: Create ecapture.tar.gz of Android kernel CO:RE -------------------"
make env
make clean
ANDROID=1 make nocore
ANDROID=1 make
echo "-------------------ecapture --help-------------------"
echo "bin/ecapture -v"
echo "-------------------create tar.gz file-------------------"
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ jobs:
make -f builder/Makefile.release release SNAPSHOT_VERSION=${{ steps.get_tags.outputs.VERSION }}
build-on-ubuntu2004-arm64:
runs-on: ubuntu-20.04
name: build on ubuntu-20.04 arm64
runs-on: ubuntu-22.04
name: build on ubuntu-22.04 arm64
# Run steps on a matrix of 3 arch/distro combinations
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu20.04
distro: ubuntu22.04
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -126,19 +126,17 @@ jobs:
install: |
uname -a
apt-get update
apt-get install --yes wget git build-essential pkgconf libelf-dev llvm-9 clang-9 linux-tools-generic linux-tools-common
wget https://golang.google.cn/dl/go1.18.8.linux-arm64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.8.linux-arm64.tar.gz
apt-get install --yes wget git build-essential golang pkgconf libelf-dev llvm-12 clang-12 linux-tools-generic linux-tools-common
# Produce a binary artifact and place it in the mounted volume
run: |
uname -a
date
export PATH=/usr/local/go/bin:$PATH:/usr/local/bin
export PATH=$PATH:/usr/local/bin
echo $PATH
for tool in "clang" "llc" "llvm-strip"
do
rm -f /usr/bin/$tool
ln -s /usr/bin/$tool-9 /usr/bin/$tool
ln -s /usr/bin/$tool-12 /usr/bin/$tool
done
clang --version
which bpftool
Expand All @@ -147,7 +145,7 @@ jobs:
echo "-------------------end: Create ecapture.tar.gz of Linux -------------------"
make env
make clean
make nocore
make
echo "-------------------ecapture --help-------------------"
bin/ecapture -v
echo "-------------------create tar.gz file-------------------"
Expand All @@ -174,7 +172,7 @@ jobs:
echo "-------------------start: Create ecapture.tar.gz of Android kernel CO:RE -------------------"
make env
make clean
ANDROID=1 make nocore
ANDROID=1 make
echo "-------------------ecapture --help-------------------"
echo "bin/ecapture -v"
echo "-------------------create tar.gz file-------------------"
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ $(KERN_OBJECTS): %.o: %.c \
-target bpfel -c $< -o $(subst kern/,user/bytecode/,$@) \
-fno-ident -fdebug-compilation-dir . -g -D__BPF_TARGET_MISSING="GCC error \"The eBPF is using target specific macros, please provide -target\"" \
-MD -MP
#KERNEL_LESS_5_2
$(CMD_CLANG) -D__TARGET_ARCH_$(LINUX_ARCH) \
$(EXTRA_CFLAGS) \
$(BPFHEADER) \
Expand Down Expand Up @@ -348,7 +347,6 @@ $(KERN_OBJECTS_NOCORE): %.nocore: %.c \
-march=bpf \
-filetype=obj \
-o $(subst kern/,user/bytecode/,$(subst .c,.o,$<))
# -DKERNEL_LESS_5_2
$(CMD_CLANG) \
$(BPFHEADER) \
-I $(KERN_SRC_PATH)/arch/$(LINUX_ARCH)/include \
Expand Down

0 comments on commit 839026e

Please sign in to comment.