An error occurred while adding fusion compilation to the kernel: scripts/makefile. Build: 233: The target "Drivers/Char/fusion" does not match the target mode.

Source: Internet
Author: User
 

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.