Exclude the removed YT6801 private implementation from DKMS sources
This commit is contained in:
1 parent
63f9583d47
commit
3015e9f90e
2 files changed
+6
No files matched your search
@@ -19,10 +19,12 @@ prepare() {
|
||||
mkdir -p src
|
||||
tar -zxf "${_pkgbase}-${pkgver}.tar.gz" -C src
|
||||
patch --fuzz=0 -p1 < patch.diff
|
||||
rm -- src/fuxi-gmac-ioctl.c
|
||||
}
|
||||
|
||||
check() {
|
||||
local result file pattern
|
||||
[[ ! -e $srcdir/src/fuxi-gmac-ioctl.c ]] || return 1
|
||||
# A missing or unreadable input is a failed verification, not proof that the
|
||||
# private interface is absent. grep returns 1 only for a successful no-match.
|
||||
for file in fuxi-gmac-net.c Makefile; do
|
||||
|
||||
@@ -7,6 +7,7 @@ srcdir="$test_root/source with spaces"
|
||||
mkdir -p "$srcdir/src" "$test_root/bin"
|
||||
reset_inputs() {
|
||||
chmod -R u+rwX "$srcdir"
|
||||
rm -f "$srcdir/src/fuxi-gmac-ioctl.c"
|
||||
printf 'static const struct net_device_ops operations = { };\n' >"$srcdir/src/fuxi-gmac-net.c"
|
||||
printf 'yt6801-objs := fuxi-gmac-net.o\n' >"$srcdir/src/Makefile"
|
||||
}
|
||||
@@ -18,6 +19,9 @@ reject() {
|
||||
}
|
||||
reset_inputs
|
||||
check
|
||||
: >"$srcdir/src/fuxi-gmac-ioctl.c"
|
||||
reject 'dormant private implementation'
|
||||
reset_inputs
|
||||
printf '.ndo_do_ioctl = handler,\n' >>"$srcdir/src/fuxi-gmac-net.c"
|
||||
reject 'private netdev callback'
|
||||
reset_inputs
|
||||
|
||||
Reference in new issue
Block a user