Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
add source info to module description
Browse files Browse the repository at this point in the history
  • Loading branch information
whi-tw committed Dec 10, 2022
1 parent 8648a7a commit d53e24f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@ jobs:
- uses: actions/checkout@v3
with:
lfs: "true"
fetch-depth: 0
- name: Extract Kernel
run: |
mkdir linux-source
tar -xf firmware/${{ matrix.firmware }}/linux-udr.tar.gz --strip-components=1 -C linux-source
- name: Copy kernel config file into kernel directory
run: cp firmware/${{ matrix.firmware }}/kernel-config linux-source/.config
- name: Update git tag placeholder in any patches
run: |
REF_STRING="$(git describe --tags)"
sed -i "s@%%GIT_REF%%@${REF_STRING}@" firmware/${{ matrix.firmware }}/patches/*.patch
- name: Apply firmware-specific patches
run: find firmware/${{ matrix.firmware }}/patches -type f -name '*.patch' -print0 | sort -z | xargs -t -0 -n 1 patch -p0 -i
- name: Restore cached apt depentencies
Expand All @@ -51,7 +56,7 @@ jobs:
- name: Prepare for building
run: |
cd linux-source
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- olddefconfig prepare modules_prepare
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- olddefconfig prepare
- name: Build the module
run: |
cd linux-source
Expand Down
2 changes: 1 addition & 1 deletion firmware/2.2.12/kernel-config
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set
# CONFIG_MODULE_COMPRESS is not set
CONFIG_MODULE_STRIPPED=y
CONFIG_MODULE_STRIPPED=n
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLK_DEV_BSG=y
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- linux-source/drivers/net/macvlan.c 2021-10-28 11:55:15.000000000 +0000
+++ macvlan.c 2022-12-10 17:11:50.515520812 +0000
@@ -1614,5 +1614,5 @@

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
-MODULE_DESCRIPTION("Driver for MAC address based VLANs");
+MODULE_DESCRIPTION("Driver for MAC address based VLANs (https://github.com/whi-tw/macvlan-unifi-udr %%GIT_REF%%)");
MODULE_ALIAS_RTNL_LINK("macvlan");
2 changes: 1 addition & 1 deletion firmware/3.0.13/kernel-config
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set
# CONFIG_MODULE_COMPRESS is not set
CONFIG_MODULE_STRIPPED=y
CONFIG_MODULE_STRIPPED=n
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLK_DEV_BSG=y
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- linux-source/drivers/net/macvlan.c 2021-10-28 11:55:15.000000000 +0000
+++ macvlan.c 2022-12-10 17:11:50.515520812 +0000
@@ -1614,5 +1614,5 @@

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
-MODULE_DESCRIPTION("Driver for MAC address based VLANs");
+MODULE_DESCRIPTION("Driver for MAC address based VLANs (https://github.com/whi-tw/macvlan-unifi-udr %%GIT_REF%%)");
MODULE_ALIAS_RTNL_LINK("macvlan");

0 comments on commit d53e24f

Please sign in to comment.