Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. include $(TOPDIR)/rules.mk
  6. include $(INCLUDE_DIR)/kernel.mk
  7. PKG_NAME:=lib_ifxos
  8. PKG_VERSION:=1.5.19
  9. PKG_RELEASE:=2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  12. PKG_SOURCE_URL:=https://github.com/xdarklight/$(PKG_NAME)/archive/v$(PKG_VERSION)
  13. PKG_MD5SUM:=39eace039ae4c3dde4da96bfdbee2721
  14. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  15. PKG_USE_MIPS16:=0
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define KernelPackage/ltq-ifxos
  19. SECTION:=sys
  20. CATEGORY:=Kernel modules
  21. SUBMENU:=Libraries
  22. TITLE:=Lantiq OS abstraction library
  23. URL:=http://www.lantiq.com/
  24. DEPENDS:=@TARGET_lantiq
  25. FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
  26. AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
  27. endef
  28. MAKE_FLAGS+=-s
  29. CONFIGURE_ARGS += \
  30. ARCH=$(LINUX_KARCH) \
  31. --enable-linux-26 \
  32. --enable-kernelbuild="$(LINUX_DIR)" \
  33. --enable-kernelincl="$(LINUX_DIR)/include" \
  34. --with-kernel-module
  35. ifdef CONFIG_TARGET_lantiq
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
  38. $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
  39. mkdir -p $(1)/usr/lib
  40. $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
  41. endef
  42. endif
  43. $(eval $(call KernelPackage,ltq-ifxos))