Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2009-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=lib_ifxos
  10. PKG_VERSION:=1.5.12
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_RELEASE:=2
  13. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
  14. PKG_MD5SUM:=ba775356bdd5e1b73b3e11a152710ed6
  15. include $(INCLUDE_DIR)/package.mk
  16. define KernelPackage/ifxos
  17. SUBMENU:=Other modules
  18. TITLE:=Lantiq OS abstraction library
  19. URL:=http://www.lantiq.com/
  20. MAINTAINER:=Lantiq
  21. DEPENDS:=@TARGET_ifxmips @BROKEN
  22. FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
  23. AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
  24. endef
  25. CONFIGURE_ARGS += \
  26. ARCH=$(LINUX_KARCH) \
  27. --enable-linux-26 \
  28. --enable-kernelbuild="$(LINUX_DIR)" \
  29. --enable-kernelincl="$(LINUX_DIR)/include" \
  30. --enable-add_drv_cflags="-fno-pic -mno-abicalls -mlong-calls -G 0"
  31. define Build/Configure
  32. (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake)
  33. $(call Build/Configure/Default)
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
  37. $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
  38. mkdir -p $(1)/usr/lib
  39. $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
  40. endef
  41. $(eval $(call KernelPackage,ifxos))