Skip to content

Commit 48269ae

Browse files
committed
[EXPERIMENTAL] gh-actions: Add missing process in generate kernel addon package
Signed-off-by: Yang Jeong Hun <[email protected]>
1 parent ed39fdf commit 48269ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
IFS=- read -r var1 var2 var3 version <<< ${{ github.ref_name }}
6666
export addon_path=${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-EXP+/build
6767
mkdir -p $addon_path
68-
install -Dt "$addon_path" -m644 Makefile Module.symvers System.map vmlinux
68+
install -Dt "$addon_path" -m644 Makefile Module.symvers System.map vmlinux tools/bpf/bpftool/vmlinux.h
6969
install -Dt "$addon_path/kernel" -m644 kernel/Makefile
7070
if [ ${{ matrix.arch }} == "x86" ]
7171
then
@@ -74,6 +74,7 @@ jobs:
7474
install -Dt "$addon_path/arch/arm64" -m644 arch/arm64/Makefile
7575
fi
7676
cp -t "$addon_path" -a scripts
77+
ln -srt "$addon_path" "addon_path/scripts/gdb/vmlinux-gdb.py"
7778
if [ ${{ matrix.arch }} == "x86" ]
7879
then
7980
install -Dt "$addon_path/tools/objtool" tools/objtool/objtool
@@ -98,6 +99,8 @@ jobs:
9899
install -Dt "$addon_path/drivers/media/tuners" -m644 drivers/media/tuners/*.h
99100
install -Dt "$addon_path/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h
100101
find . -name 'Kconfig*' -exec install -Dm644 {} "$addon_path/{}" \;
102+
install -Dt "$addon_path/rust" -m644 rust/*.rmeta
103+
install -Dt "$addon_path/rust" rust/*.so
101104
export arch
102105
if [ ${{ matrix.arch }} == "x86" ]
103106
then
@@ -137,7 +140,6 @@ jobs:
137140
strip -v $STRIP_STATIC "$addon_path/vmlinux"
138141
fi
139142
cp -r Documentation $addon_path/Documentation
140-
rm -rf ${{ matrix.image-name }}-addon_install/lib/modules/$version-WSL2-EXP+/build/${{ matrix.image-name }}-addon_install
141143
142144
- name: Download ZFS
143145
run: |

0 commit comments

Comments
 (0)