First aid! For details about how to compile the makefile of the gpio driver-Linux general technology-Linux technology and application information, see the following. I need to use the GPIO interface to control the stepper motor. The gpio driver code adds the pin control I need according to the \ drivers \ char \ EmbedSky_gpio.c code under the source code of the kernel code liux2.6.30.4. The modification is as follows.
Static unsigned long gpio_table [] =
{
S3C2410_GPB5,
S3C2410_GPB6,
S3C2410_GPB7,
S3C2410_GPB8,
S3C2410_GPF3,
S3C2410_GPG5,
S3C2410_GPG7,
};
Static unsigned int gpio_cfg_table [] =
{
S3C2410_GPB5_OUTP,
S3C2410_GPB6_OUTP,
S3C2410_GPB7_OUTP,
S3C2410_GPB8_OUTP,
S3C2410_GPF3_OUTP,
S3C2410_GPG5_OUTP,
S3C2410_GPG7_OUTP,
};
However, an error occurred during makefile Compilation: The content of makfe is:
Ifneq ($ (KERNELRELEASE ),)
Obj-m: = gpio. o
Else
KERNELDIR? =/Kernel/opt/EmbedSky/linux-2.6.30.4 (/* kernel path in pc */)
PWD: = $ (shell pwd)
Default:
$ (MAKE)-C $ (KERNELDIR) M = $ (PWD) modules
Clean:
Rm-rf *. o *~ Core. depend. *. cmd *. ko *. mod. c
Endif
Compilation error:
No rule to make target '/home/mmx/gpio. C', needed by/home/mmx/gpio. o/. stop
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.