From 4cfa315070142421a4695dc6abdef9f479d5028e Mon Sep 17 00:00:00 2001 From: phorcys Date: Thu, 7 Dec 2023 12:44:39 +0800 Subject: [PATCH] fix ppp compile on loongarch64 --- package/network/services/ppp/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile index 40ec5c5cf12da7..e30a142ab104b6 100644 --- a/package/network/services/ppp/Makefile +++ b/package/network/services/ppp/Makefile @@ -184,6 +184,7 @@ $(call Build/Configure/Default,, \ mkdir -p $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux $(CP) \ $(LINUX_DIR)/include/linux/compiler.h \ + $(LINUX_DIR)/include/asm-generic/rwonce.h \ $(LINUX_DIR)/include/$(LINUX_UAPI_DIR)linux/atm*.h \ $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/ @@ -191,6 +192,8 @@ $(call Build/Configure/Default,, \ # doesn't exits -$(CP) $(LINUX_DIR)/include/linux/compiler_types.h \ $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/ + + if [ "$(ARCH)" = "loongarch64" ];then $(RM) -rf $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/;fi endef MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \