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:=4
  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_HASH:=ed7fe39311d7a4a13d23ed0ae2445c0d825b472b5a98da9b72bcaabcf5ed2d5f
  14. PKG_MAINTAINER:=John Crispin <[email protected]>
  15. PKG_LICENSE:=GPL-2.0 BSD-2-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_ASLR_PIE:=0
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define KernelPackage/ltq-ifxos
  21. SECTION:=sys
  22. CATEGORY:=Kernel modules
  23. SUBMENU:=Libraries
  24. TITLE:=Lantiq OS abstraction library
  25. URL:=http://www.lantiq.com/
  26. DEPENDS:=@TARGET_lantiq
  27. FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
  28. AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
  29. endef
  30. CONFIGURE_ARGS += \
  31. ARCH=$(LINUX_KARCH) \
  32. --enable-linux-26 \
  33. --enable-kernelbuild="$(LINUX_DIR)" \
  34. --enable-kernelincl="$(LINUX_DIR)/include" \
  35. --with-kernel-module
  36. ifdef CONFIG_TARGET_lantiq
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
  39. $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
  40. mkdir -p $(1)/usr/lib
  41. $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
  42. endef
  43. endif
  44. $(eval $(call KernelPackage,ltq-ifxos))