2009-01-11 21:13:07 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# linux-fusion
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-04-30 02:58:49 +02:00
|
|
|
LINUX_FUSION_VERSION = 8.1.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
|
2010-07-16 21:49:01 +02:00
|
|
|
LINUX_FUSION_DEPENDENCIES = linux26
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-07-16 21:49:01 +02:00
|
|
|
LINUX_FOR_FUSION=$(LINUX26_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)
|
2010-07-16 21:49:01 +02:00
|
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_BUILD=$(LINUX26_DIR)
|
|
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_SOURCE=$(LINUX26_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-07-16 21:49:01 +02:00
|
|
|
# Only the header file is needed in the staging directory
|
2010-04-30 02:58:49 +02:00
|
|
|
define LINUX_FUSION_INSTALL_STAGING_CMDS
|
2010-07-16 21:49:01 +02:00
|
|
|
install -m 644 $(@D)/linux/include/linux/fusion.h $(STAGING_DIR)/usr/include/linux
|
2010-04-30 02:58:49 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LINUX_FUSION_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(LINUX_FUSION_MAKE_OPTS) \
|
|
|
|
-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
|
|
|
|
2010-04-30 02:58:49 +02:00
|
|
|
$(eval $(call GENTARGETS,package,linux-fusion))
|