Skip to content

Commit

Permalink
fix ppp compile on loongarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
phorcys committed Dec 7, 2023
1 parent 03b4ede commit 4cfa315
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/network/services/ppp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,16 @@ $(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/

# Kernel 4.14.9+ only, ignore the exit status of cp in case the file
# 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)" \
Expand Down

0 comments on commit 4cfa315

Please sign in to comment.