2012-12-15 02:00:26 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2010-03-28 23:11:05 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
2021-10-28 16:56:13 +00:00
|
|
|
PKG_NAME:=ifxos
|
|
|
|
PKG_VERSION:=1.7.1
|
2023-05-17 13:08:40 +00:00
|
|
|
PKG_RELEASE:=4
|
2021-10-28 16:56:13 +00:00
|
|
|
|
|
|
|
UGW_VERSION=8.5.2.10
|
|
|
|
UGW_BASENAME=$(PKG_NAME)-ugw_$(UGW_VERSION)
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(UGW_BASENAME).tar.bz2
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(UGW_BASENAME)
|
|
|
|
PKG_SOURCE_URL:=https://gitlab.com/prpl-foundation/intel/$(PKG_NAME)/-/archive/ugw_$(UGW_VERSION)/
|
|
|
|
PKG_HASH:=055a1f5eab0abfaac34ac7b1613b93ec341fe9ae8462cb11c36c2b0989ce0ca7
|
2016-05-11 07:06:21 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
2017-06-07 09:01:06 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0 BSD-2-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2020-12-27 20:59:28 +00:00
|
|
|
PKG_EXTMOD_SUBDIRS:=src
|
2017-06-07 09:01:06 +00:00
|
|
|
|
2015-01-11 16:53:45 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2023-01-27 17:22:43 +00:00
|
|
|
PKG_BUILD_FLAGS:=no-mold
|
2014-03-11 13:20:01 +00:00
|
|
|
|
2010-03-28 23:11:05 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-02-01 14:32:25 +00:00
|
|
|
define KernelPackage/ltq-ifxos
|
2012-12-15 02:00:26 +00:00
|
|
|
SECTION:=sys
|
|
|
|
CATEGORY:=Kernel modules
|
|
|
|
SUBMENU:=Libraries
|
2010-03-28 23:11:05 +00:00
|
|
|
TITLE:=Lantiq OS abstraction library
|
|
|
|
URL:=http://www.lantiq.com/
|
2021-12-18 10:59:47 +00:00
|
|
|
DEPENDS:=@(TARGET_lantiq||TARGET_ipq40xx)
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
|
2010-03-28 23:11:05 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
ARCH=$(LINUX_KARCH) \
|
|
|
|
--enable-linux-26 \
|
|
|
|
--enable-kernelbuild="$(LINUX_DIR)" \
|
|
|
|
--enable-kernelincl="$(LINUX_DIR)/include" \
|
2015-11-24 20:39:59 +00:00
|
|
|
--with-kernel-module
|
2010-03-28 23:11:05 +00:00
|
|
|
|
2021-12-18 10:59:47 +00:00
|
|
|
define Build/InstallDev
|
2010-03-28 23:11:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
|
|
|
|
mkdir -p $(1)/usr/lib
|
2021-10-28 16:56:13 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/.libs/libifxos.a $(1)/usr/lib/libifxos.a
|
2021-12-18 10:59:47 +00:00
|
|
|
endef
|
2010-03-28 23:11:05 +00:00
|
|
|
|
2011-02-01 14:32:25 +00:00
|
|
|
$(eval $(call KernelPackage,ltq-ifxos))
|