propagate atm header changes into pppoatm and br2684ctl as well
authorFelix Fietkau <nbd@openwrt.org>
Sun, 28 Mar 2010 21:55:54 +0000 (21:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 28 Mar 2010 21:55:54 +0000 (21:55 +0000)
SVN-Revision: 20558

package/br2684ctl/Makefile
package/ppp/Makefile

index 4de325ac8e78ec9b7d7c09f406673621a206a594..4af040b4e13cafd7528c606ba970a9e760855b27 100644 (file)
@@ -6,6 +6,7 @@
 #
 
 include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=br2684ctl
 PKG_VERSION:=20040226
@@ -15,7 +16,7 @@ PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/br2684ctl
 PKG_MD5SUM:=6eb4d8cd174e24a7c078eb4f594f5b69
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
+PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
 PKG_BUILD_DEPENDS:=linux-atm
 
 include $(INCLUDE_DIR)/package.mk
@@ -28,6 +29,7 @@ define Package/$(PKG_NAME)
   URL:=http://ftp.debian.org/debian/pool/main/b/br2684ctl
 endef
 
+TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
 MAKE_FLAGS += CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)"
 
 define Package/$(PKG_NAME)/install
index b90fa4f2e67c475a4cbb357385e5b5abde4f6846..f8bfa48b6b3fe43db84f89f30b04fa328107d4c6 100644 (file)
@@ -6,6 +6,7 @@
 #
 
 include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=ppp
 PKG_VERSION:=2.4.4
@@ -20,7 +21,6 @@ PKG_BUILD_DEPENDS:=libpcap
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/kernel.mk
 
 define Package/ppp/Default
   SECTION:=net
@@ -108,6 +108,11 @@ $(call Build/Configure/Default,, \
        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/atm*.h \
+               $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
 endef
 
 MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \