Skip to content

Commit

Permalink
Use patch
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Aug 10, 2024
1 parent dda3a08 commit 3e1a36d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion openwrt/net/mimic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ define KernelPackage/mimic
endef

mimic_kmod_flags := \
ccflags-y="-D_MIMIC_KMOD -std=gnu99" \
KERNEL_DIR="$(LINUX_DIR)" \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
Expand Down
10 changes: 10 additions & 0 deletions openwrt/net/mimic/patches/kmod-c99.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/kmod/Makefile
+++ b/kmod/Makefile
@@ -1,6 +1,6 @@
obj-m += mimic.o
mimic-objs := main.o
-ccflags-y := -D_MIMIC_KMOD
+ccflags-y := -D_MIMIC_KMOD -std=gnu99 -Wno-error=declaration-after-statement

KERNEL_UNAME ?= $(shell uname -r)
SYSTEM_BUILD_DIR := /lib/modules/$(KERNEL_UNAME)/build

0 comments on commit 3e1a36d

Please sign in to comment.