OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2009 Qi Hardware Inc. |
| 3 | # Author: Xiangfu Liu <xiangfu@sharism.cc> |
| 4 | # |
| 5 | # This is free software, licensed under the GNU General Public License v2. |
| 6 | # See /LICENSE for more information. |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | include $(INCLUDE_DIR)/kernel.mk |
| 11 | |
| 12 | PKG_NAME:=fusion |
| 13 | PKG_VERSION=8.1.1 |
| 14 | PKG_RELEASE:=1 |
| 15 | |
| 16 | PKG_SOURCE:=linux-$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 17 | PKG_SOURCE_URL:=http://www.directfb.org/downloads/Core/linux-fusion/ |
| 18 | PKG_BUILD_DIR:=$(BUILD_DIR)/linux-$(PKG_NAME)-$(PKG_VERSION) |
| 19 | SUB:=linux/drivers/char/fusion |
| 20 | export CONFIG_FUSION_DEVICE=m |
| 21 | |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | |
| 24 | define KernelPackage/fusion |
| 25 | SUBMENU:=Wireless Drivers |
| 26 | TITLE:=fusion for Directfb |
| 27 | DEPENDS:=@BROKEN |
| 28 | FILES:=$(PKG_BUILD_DIR)/$(SUB)/fusion.$(LINUX_KMOD_SUFFIX) |
| 29 | AUTOLOAD:=$(call AutoLoad,10,fusion) |
| 30 | endef |
| 31 | |
| 32 | AUTOCONF_H = -include $(LINUX_DIR)/include/linux/autoconf.h |
| 33 | |
| 34 | MAKE_OPTS:= \ |
| 35 | ARCH="$(LINUX_KARCH)" \ |
| 36 | CROSS_COMPILE="$(TARGET_CROSS)" \ |
| 37 | KBUILD_CPPFLAGS="-D__KERNEL__ -I$(PKG_BUILD_DIR)/linux/include -I$(LINUX_DIR)/include $(AUTOCONF_H)" \ |
| 38 | SUBDIRS=$(PKG_BUILD_DIR)/$(SUB) |
| 39 | |
| 40 | define Build/Compile |
| 41 | rm -f $(PKG_BUILD_DIR)/$(SUB)/Makefile |
| 42 | ln -s $(PKG_BUILD_DIR)/$(SUB)/Makefile-2.6 $(PKG_BUILD_DIR)/$(SUB)/Makefile |
| 43 | $(MAKE) -C "$(LINUX_DIR)" \ |
| 44 | $(MAKE_OPTS) \ |
| 45 | modules |
| 46 | endef |
| 47 | |
| 48 | $(eval $(call KernelPackage,fusion)) |
| 49 |
