Root/fusion/Makefile

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
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=fusion
13PKG_VERSION=8.1.1
14PKG_RELEASE:=1
15
16PKG_SOURCE:=linux-$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://www.directfb.org/downloads/Core/linux-fusion/
18PKG_BUILD_DIR:=$(BUILD_DIR)/linux-$(PKG_NAME)-$(PKG_VERSION)
19SUB:=linux/drivers/char/fusion
20export CONFIG_FUSION_DEVICE=m
21
22include $(INCLUDE_DIR)/package.mk
23
24define 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)
30endef
31
32AUTOCONF_H = -include $(LINUX_DIR)/include/linux/autoconf.h
33
34MAKE_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
40define 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
46endef
47
48$(eval $(call KernelPackage,fusion))
49

Archive Download this file



interactive