procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-ifxos / Makefile
1 # Copyright (C) 2009-2012 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=ifxos
10 PKG_VERSION:=1.7.1
11 PKG_RELEASE:=$(AUTORELEASE)
12
13 UGW_VERSION=8.5.2.10
14 UGW_BASENAME=$(PKG_NAME)-ugw_$(UGW_VERSION)
15
16 PKG_SOURCE:=$(UGW_BASENAME).tar.bz2
17 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(UGW_BASENAME)
18 PKG_SOURCE_URL:=https://gitlab.com/prpl-foundation/intel/$(PKG_NAME)/-/archive/ugw_$(UGW_VERSION)/
19 PKG_HASH:=055a1f5eab0abfaac34ac7b1613b93ec341fe9ae8462cb11c36c2b0989ce0ca7
20 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
21 PKG_LICENSE:=GPL-2.0 BSD-2-Clause
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_EXTMOD_SUBDIRS:=src
24
25 PKG_FIXUP:=autoreconf
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define KernelPackage/ltq-ifxos
30 SECTION:=sys
31 CATEGORY:=Kernel modules
32 SUBMENU:=Libraries
33 TITLE:=Lantiq OS abstraction library
34 URL:=http://www.lantiq.com/
35 DEPENDS:=@TARGET_lantiq
36 FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
37 AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
38 endef
39
40 CONFIGURE_ARGS += \
41 ARCH=$(LINUX_KARCH) \
42 --enable-linux-26 \
43 --enable-kernelbuild="$(LINUX_DIR)" \
44 --enable-kernelincl="$(LINUX_DIR)/include" \
45 --with-kernel-module
46
47 ifdef CONFIG_TARGET_lantiq
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
50 $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
51 mkdir -p $(1)/usr/lib
52 $(CP) $(PKG_BUILD_DIR)/src/.libs/libifxos.a $(1)/usr/lib/libifxos.a
53 endef
54 endif
55
56 $(eval $(call KernelPackage,ltq-ifxos))