From 5b2f278e0e7d47cc2b139615f80653d39315044c Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 6 Feb 2009 16:41:03 +0000 Subject: [PATCH] [package] make zaptel-1.4.x compile again with brcm-2.4 SVN-Revision: 14425 --- libs/zaptel-1.4.x/Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libs/zaptel-1.4.x/Makefile b/libs/zaptel-1.4.x/Makefile index 2e502431f0..bd920e0e53 100644 --- a/libs/zaptel-1.4.x/Makefile +++ b/libs/zaptel-1.4.x/Makefile @@ -61,14 +61,19 @@ define Package/zaptel14-libtonezone/description This package contains the libraries for accessing zaptel/dummy drivers. endef +MAKE_FLAGS:= \ + ARCH="$(LINUX_KARCH)" \ + CC="$(TARGET_CC) $(TARGET_CFLAGS)" \ + LD="$(TARGET_CROSS)ld" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + KVERS="$(LINUX_VERSION)" \ + KSRC="$(LINUX_DIR)" \ + TOPDIR_MODULES="zaptel ztdummy" \ + SUBDIR_MODULES="" + define Build/Compile/kmod $(MAKE) -C $(PKG_BUILD_DIR) \ - ARCH="$(LINUX_KARCH)" \ - CROSS_COMPILE="$(TARGET_CROSS)" \ - KVERS="$(LINUX_VERSION)" \ - KSRC="$(LINUX_DIR)" \ - TOPDIR_MODULES="zaptel ztdummy" \ - SUBDIR_MODULES="" \ + $(MAKE_FLAGS) \ modules endef -- 2.30.2