2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-01-11 21:13:07 +01:00
|
|
|
#
|
|
|
|
# linux-fusion
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-08-21 22:49:40 +02:00
|
|
|
LINUX_FUSION_VERSION = 9.0.2
|
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
|
2012-12-10 08:06:59 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(LINUX_FUSION_MAKE_OPTS) -C $(@D)
|
2010-07-16 21:49:01 +02:00
|
|
|
endef
|
2009-01-11 21:13:07 +01:00
|
|
|
|
2010-04-30 02:58:49 +02:00
|
|
|
define LINUX_FUSION_INSTALL_STAGING_CMDS
|
2012-12-10 08:06:59 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(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
|
2012-12-10 08:06:59 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
2010-04-30 02:58:49 +02:00
|
|
|
$(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
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|