2009-01-11 21:13:07 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# linux-fusion
|
|
|
|
#
|
|
|
|
#############################################################
|
2012-04-05 15:22:41 +02:00
|
|
|
LINUX_FUSION_VERSION = 8.8.1
|
2009-01-11 21:13:07 +01:00
|
|
|
LINUX_FUSION_SOURCE = linux-fusion-$(LINUX_FUSION_VERSION).tar.gz
|
2010-04-30 02:58:49 +02:00
|
|
|
LINUX_FUSION_SITE = http://directfb.org/downloads/Core/linux-fusion
|
2009-01-11 21:13:07 +01:00
|
|
|
LINUX_FUSION_INSTALL_STAGING = YES
|
2011-07-14 22:00:06 +02:00
|
|
|
LINUX_FUSION_DEPENDENCIES = linux
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2011-07-18 13:10:24 +02:00
|
|
|
LINUX_FOR_FUSION=$(LINUX_VERSION_PROBED)
|
2010-04-30 02:58:49 +02:00
|
|
|
LINUX_FUSION_ETC_DIR=$(TARGET_DIR)/etc/udev/rules.d
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-04-30 02:58:49 +02:00
|
|
|
LINUX_FUSION_MAKE_OPTS = KERNEL_VERSION=$(LINUX_FOR_FUSION)
|
2011-07-18 13:10:24 +02:00
|
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_BUILD=$(LINUX_DIR)
|
|
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_SOURCE=$(LINUX_DIR)
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-07-16 21:49:01 +02:00
|
|
|
LINUX_FUSION_MAKE_OPTS += SYSROOT=$(TARGET_DIR)
|
2010-04-30 02:58:49 +02:00
|
|
|
LINUX_FUSION_MAKE_OPTS += ARCH=$(KERNEL_ARCH)
|
2009-01-11 21:13:07 +01:00
|
|
|
LINUX_FUSION_MAKE_OPTS += CROSS_COMPILE=$(TARGET_CROSS)
|
2010-07-16 21:49:01 +02:00
|
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_MODLIB=/lib/modules/$(LINUX_FOR_FUSION)/kernel
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-07-16 21:49:01 +02:00
|
|
|
define LINUX_FUSION_BUILD_CMDS
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) $(LINUX_FUSION_MAKE_OPTS) -C $(@D)
|
|
|
|
endef
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-04-30 02:58:49 +02:00
|
|
|
define LINUX_FUSION_INSTALL_STAGING_CMDS
|
2010-11-15 09:58:03 +01:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) $(LINUX_FUSION_MAKE_OPTS) INSTALL_MOD_PATH=$(STAGING_DIR) -C $(@D) headers_install
|
2010-04-30 02:58:49 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LINUX_FUSION_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(LINUX_FUSION_MAKE_OPTS) \
|
2010-11-15 09:58:03 +01:00
|
|
|
INSTALL_MOD_PATH=$(TARGET_DIR) \
|
2010-04-30 02:58:49 +02:00
|
|
|
-C $(@D) install
|
2009-01-11 21:13:07 +01:00
|
|
|
mkdir -p $(LINUX_FUSION_ETC_DIR)
|
|
|
|
cp -dpf package/linux-fusion/40-fusion.rules $(LINUX_FUSION_ETC_DIR)
|
2010-04-30 02:58:49 +02:00
|
|
|
endef
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-07-16 21:49:01 +02:00
|
|
|
define LINUX_FUSION_UNINSTALL_STAGING_CMDS
|
2010-04-30 02:58:49 +02:00
|
|
|
rm -f $(STAGING_DIR)/usr/include/linux/fusion.h
|
|
|
|
endef
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-07-16 21:49:01 +02:00
|
|
|
define LINUX_FUSION_UNINSTALL_TARGET_CMDS
|
2010-04-30 02:58:49 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/include/linux/fusion.h
|
2010-07-16 21:49:01 +02:00
|
|
|
rm -rf $(TARGET_DIR)/lib/modules/$(LINUX_FOR_FUSION)/kernel/drivers/char/fusion
|
2010-04-30 02:58:49 +02:00
|
|
|
rm -f $(LINUX_FUSION_ETC_DIR)/40-fusion.rules
|
|
|
|
endef
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|