lantiq: ltq-ifxos: Do not force O3 build any more
[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:=lib_ifxos
10 PKG_VERSION:=1.5.19
11 PKG_RELEASE:=4
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14 PKG_SOURCE_URL:=https://github.com/xdarklight/$(PKG_NAME)/archive/v$(PKG_VERSION)
15 PKG_HASH:=ed7fe39311d7a4a13d23ed0ae2445c0d825b472b5a98da9b72bcaabcf5ed2d5f
16 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
17 PKG_LICENSE:=GPL-2.0 BSD-2-Clause
18 PKG_LICENSE_FILES:=LICENSE
19
20
21 PKG_FIXUP:=autoreconf
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define KernelPackage/ltq-ifxos
26 SECTION:=sys
27 CATEGORY:=Kernel modules
28 SUBMENU:=Libraries
29 TITLE:=Lantiq OS abstraction library
30 URL:=http://www.lantiq.com/
31 DEPENDS:=@TARGET_lantiq
32 FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
33 AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
34 endef
35
36 CONFIGURE_ARGS += \
37 ARCH=$(LINUX_KARCH) \
38 --enable-linux-26 \
39 --enable-kernelbuild="$(LINUX_DIR)" \
40 --enable-kernelincl="$(LINUX_DIR)/include" \
41 --with-kernel-module
42
43 ifdef CONFIG_TARGET_lantiq
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
46 $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
47 mkdir -p $(1)/usr/lib
48 $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
49 endef
50 endif
51
52 $(eval $(call KernelPackage,ltq-ifxos))