treewide: clean up download hashes
[openwrt/staging/yousong.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:=2
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
18 PKG_USE_MIPS16:=0
19 PKG_FIXUP:=autoreconf
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define KernelPackage/ltq-ifxos
24 SECTION:=sys
25 CATEGORY:=Kernel modules
26 SUBMENU:=Libraries
27 TITLE:=Lantiq OS abstraction library
28 URL:=http://www.lantiq.com/
29 DEPENDS:=@TARGET_lantiq
30 FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
31 AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
32 endef
33
34 MAKE_FLAGS+=-s
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))