Skip to content

Commit

Permalink
ppp: clean up makefile
Browse files Browse the repository at this point in the history
The latest ppp version seems to no longer require these ancient
build fixes.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
DragonBluep authored and hauke committed Oct 12, 2024
1 parent 7eb6bf1 commit eb05baf
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions package/network/services/ppp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,37 +184,11 @@ This tool performs the same discovery process as pppoe, but does
not initiate a session. Can be useful to debug pppoe.
endef


define Build/Configure
$(call Build/Configure/Default,, \
UNAME_S="Linux" \
UNAME_R="$(LINUX_VERSION)" \
UNAME_M="$(ARCH)" \
)
mkdir -p $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux
$(CP) \
$(LINUX_DIR)/include/linux/compiler.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/
endef

MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
STAGING_DIR="$(STAGING_DIR)"

ifeq ($(BUILD_VARIANT),multilink)
CONFIGURE_VARS += \
enable_multilink=yes
endif

ifdef CONFIG_USE_MUSL
MAKE_FLAGS += USE_LIBUTIL=
endif

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/pppd $(1)/usr/include/
Expand Down

0 comments on commit eb05baf

Please sign in to comment.