1. Copy the fusion folder to the driver/Char directory of the kernel;
2. Configure driver/Char/makefile:
# Makefile for the kernel character device drivers.### This file contains the font map for the default (hardware) font#FONTMAPFILE = cp437.uniobj-y += mem.o random.o tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o tty_buffer.o tty_port.oobj-$(CONFIG_FUSION_DEVICE) += fusion
3. Configure driver/Char/kconfig:
source "drivers/s390/char/Kconfig"source "drivers/char/fusion/Kconfig"endmenu
4. Modify Drivers/Char/fusion/makefile as follows:
[Sdk1.4 @ 88 embeddedlinux] $ Vim Drivers/Char/fusion/makefile
obj-$(CONFIG_FUSION_DEVICE) += fusion.ofusion-y := call.o entries.o fifo.o fusiondev.o fusionee.o list.o property.o reactor.o ref.o skirmish.o shmpool.o
5. Modify Drivers/Char/fusion/kconfig as follows:
[sdk1.4@88 EmbeddedLinux]$ vim drivers/char/fusion/Kconfigconfig FUSION_DEVICE tristate "Fusion Kernel Device" ---help--- Fusion is the IPC API used by DirectFB and FusionSound.
Compilation error:
Scripts/makefile. Build: 233: The target "Drivers/Char/fusion" does not match the target mode.
Do you want to understand?
Check carefully. Problems found:
#FONTMAPFILE = cp437.uniobj-y += mem.o random.o tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o tty_buffer.o tty_port.oobj-$(CONFIG_FUSION_DEVICE) += fusion/obj-$(CONFIG_LEGACY_PTYS) += pty.o
Take a closer look.
The reason is that fusion is a folder.