Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.14
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_RELEASE:=3
  11. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
  12. PKG_MD5SUM:=bc107f9d8ff6bed4c2760a2817bbb029
  13. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  14. PKG_USE_MIPS16:=0
  15. PKG_FIXUP:=autoreconf
  16. include $(INCLUDE_DIR)/package.mk
  17. define KernelPackage/ltq-ifxos
  18. SECTION:=sys
  19. CATEGORY:=Kernel modules
  20. SUBMENU:=Libraries
  21. TITLE:=Lantiq OS abstraction library
  22. URL:=http://www.lantiq.com/
  23. DEPENDS:=@TARGET_lantiq
  24. FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
  25. AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
  26. endef
  27. CONFIGURE_ARGS += \
  28. ARCH=$(LINUX_KARCH) \
  29. --enable-linux-26 \
  30. --enable-kernelbuild="$(LINUX_DIR)" \
  31. --enable-kernelincl="$(LINUX_DIR)/include" \
  32. --enable-add_drv_cflags="-fno-pic -mno-abicalls -mlong-calls -G 0"
  33. ifdef CONFIG_TARGET_lantiq
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
  36. $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
  37. mkdir -p $(1)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
  39. endef
  40. endif
  41. $(eval $(call KernelPackage,ltq-ifxos))