1bed3e388a
Also fix directfb build avoiding the following error to occur (since FCEF_FOLLOW has been added in linux-fusion-8.9.0): libtool: compile: /opt/br/output/host/usr/bin/ccache /opt/br/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -DDATADIR=\"/usr/share/directfb-1.4.17\" -DMODULEDIR=\"/usr/lib/directfb-1.4-6\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -ffast-math -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -g2 -g3 -fno-inline -Wno-inline -D_GNU_SOURCE -finstrument-functions -std=gnu99 -Werror-implicit-function-declaration -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c -fPIC -DPIC -o .libs/call.o call.c: In function 'fusion_call_execute3': call.c:311:66: error 'FCEF_FOLLOW' undeclared (first use in this function) call.c:311:66: note: each undeclared identifier is reported only once for each function it appears in call.c: In function 'fusion_world_flush_calls': call.c:444:54: error 'FCEF_FOLLOW' undeclared (first use in this function) make[5]: *** [call.lo] Error 1 make[5]: Leaving directory `/opt/br/output/build/directfb-1.4.17/lib/fusion' Signed-off-by: Samuel Martin <s.martin49@gmail.com> Acked-by: Simon Dawson <spdawson@gmail.com> Tested-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
52 lines
1.7 KiB
Makefile
52 lines
1.7 KiB
Makefile
#############################################################
|
|
#
|
|
# linux-fusion
|
|
#
|
|
#############################################################
|
|
LINUX_FUSION_VERSION = 8.10.4
|
|
LINUX_FUSION_SOURCE = linux-fusion-$(LINUX_FUSION_VERSION).tar.gz
|
|
LINUX_FUSION_SITE = http://directfb.org/downloads/Core/linux-fusion
|
|
LINUX_FUSION_INSTALL_STAGING = YES
|
|
LINUX_FUSION_DEPENDENCIES = linux
|
|
|
|
LINUX_FOR_FUSION=$(LINUX_VERSION_PROBED)
|
|
LINUX_FUSION_ETC_DIR=$(TARGET_DIR)/etc/udev/rules.d
|
|
|
|
LINUX_FUSION_MAKE_OPTS = KERNEL_VERSION=$(LINUX_FOR_FUSION)
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_BUILD=$(LINUX_DIR)
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_SOURCE=$(LINUX_DIR)
|
|
|
|
LINUX_FUSION_MAKE_OPTS += SYSROOT=$(TARGET_DIR)
|
|
LINUX_FUSION_MAKE_OPTS += ARCH=$(KERNEL_ARCH)
|
|
LINUX_FUSION_MAKE_OPTS += CROSS_COMPILE=$(TARGET_CROSS)
|
|
LINUX_FUSION_MAKE_OPTS += KERNEL_MODLIB=/lib/modules/$(LINUX_FOR_FUSION)/kernel
|
|
|
|
define LINUX_FUSION_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) $(LINUX_FUSION_MAKE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define LINUX_FUSION_INSTALL_STAGING_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) $(LINUX_FUSION_MAKE_OPTS) INSTALL_MOD_PATH=$(STAGING_DIR) -C $(@D) headers_install
|
|
endef
|
|
|
|
define LINUX_FUSION_INSTALL_TARGET_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
$(LINUX_FUSION_MAKE_OPTS) \
|
|
INSTALL_MOD_PATH=$(TARGET_DIR) \
|
|
-C $(@D) install
|
|
mkdir -p $(LINUX_FUSION_ETC_DIR)
|
|
cp -dpf package/linux-fusion/40-fusion.rules $(LINUX_FUSION_ETC_DIR)
|
|
endef
|
|
|
|
define LINUX_FUSION_UNINSTALL_STAGING_CMDS
|
|
rm -f $(STAGING_DIR)/usr/include/linux/fusion.h
|
|
endef
|
|
|
|
define LINUX_FUSION_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/usr/include/linux/fusion.h
|
|
rm -rf $(TARGET_DIR)/lib/modules/$(LINUX_FOR_FUSION)/kernel/drivers/char/fusion
|
|
rm -f $(LINUX_FUSION_ETC_DIR)/40-fusion.rules
|
|
endef
|
|
|
|
$(eval $(generic-package))
|