File make.patch of Package rtl8188eu
diff -Naur rtl8188eu/hostapd-2.9/hostapd/Makefile rtl8188eun/hostapd-2.9/hostapd/Makefile --- rtl8188eu/hostapd-2.9/hostapd/Makefile 2021-10-29 17:59:41.758412777 +0200 +++ rtl8188eun/hostapd-2.9/hostapd/Makefile 2025-05-12 18:44:09.176825890 +0200 @@ -21,7 +21,7 @@ endif endif -CFLAGS += $(EXTRA_CFLAGS) +CFLAGS += $(ccflags-y) CFLAGS += -I$(abspath ../src) CFLAGS += -I$(abspath ../src/utils) diff -Naur rtl8188eu/Makefile rtl8188eun/Makefile --- rtl8188eu/Makefile 2022-08-28 09:06:32.578843541 +0200 +++ rtl8188eun/Makefile 2025-05-12 18:44:05.200829963 +0200 @@ -1,17 +1,17 @@ SHELL := /bin/bash -EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -EXTRA_CFLAGS += -O1 +ccflags-y += $(USER_EXTRA_CFLAGS) +ccflags-y += -O1 -EXTRA_CFLAGS += -Wno-unused-variable -EXTRA_CFLAGS += -Wno-unused-value -EXTRA_CFLAGS += -Wno-unused-label -EXTRA_CFLAGS += -Wno-unused-parameter -EXTRA_CFLAGS += -Wno-unused-function -EXTRA_CFLAGS += -Wno-unused +ccflags-y += -Wno-unused-variable +ccflags-y += -Wno-unused-value +ccflags-y += -Wno-unused-label +ccflags-y += -Wno-unused-parameter +ccflags-y += -Wno-unused-function +ccflags-y += -Wno-unused +ccflags-y += -Wno-implicit-fallthrough +ccflags-y += -Wno-uninitialized -EXTRA_CFLAGS += -Wno-uninitialized - -EXTRA_CFLAGS += -I$(src)/include +ccflags-y += -I$(src)/include ccflags-y += -D__CHECK_ENDIAN__ @@ -26,8 +26,6 @@ export TopDIR ?= $(shell pwd) -MSG="Directory .git does not exist indicating that you downloaded the source as a zip file. Only the 'git clone' method is now supported." - OUTSRC_FILES := \ hal/HalHWImg8188E_MAC.o \ hal/HalHWImg8188E_BB.o \ @@ -87,11 +85,11 @@ endif ifeq ($(CONFIG_BT_COEXIST), y) -EXTRA_CFLAGS += -DCONFIG_BT_COEXIST +ccflags-y += -DCONFIG_BT_COEXIST endif ifeq ($(CONFIG_WOWLAN), y) -EXTRA_CFLAGS += -DCONFIG_WOWLAN +ccflags-y += -DCONFIG_WOWLAN endif SUBARCH := $(shell uname -m | sed -e "s/i.86/i386/; s/ppc.*/powerpc/; s/armv.l/arm/; s/aarch64/arm64/;") @@ -146,11 +144,6 @@ endif -all: test modules - -test: - @if [ ! -e ./.git ] ; then echo $(MSG); exit 1; fi; - modules: $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules diff -Naur rtl8188eu/make.patch rtl8188eun/make.patch --- rtl8188eu/make.patch 1970-01-01 01:00:00.000000000 +0100 +++ rtl8188eun/make.patch 2025-05-12 18:44:10.476824558 +0200 @@ -0,0 +1,32 @@ +--- a/Makefile 2021-02-11 14:38:00.753299610 +0100 ++++ b/Makefile 2021-05-19 22:15:48.072703041 +0200 +@@ -8,7 +8,7 @@ + ccflags-y += -Wno-unused-parameter + ccflags-y += -Wno-unused-function + ccflags-y += -Wno-unused +- ++ccflags-y += -Wno-implicit-fallthrough + ccflags-y += -Wno-uninitialized + + ccflags-y += -I$(src)/include +@@ -26,8 +26,6 @@ + + export TopDIR ?= $(shell pwd) + +-MSG="Directory .git does not exist indicating that you downloaded the source as a zip file. Only the 'git clone' method is now supported." +- + OUTSRC_FILES := \ + hal/HalHWImg8188E_MAC.o \ + hal/HalHWImg8188E_BB.o \ +@@ -146,11 +144,6 @@ + + endif + +-all: test modules +- +-test: +- @if [ ! -e ./.git ] ; then echo $(MSG); exit 1; fi; +- + modules: + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules +