I tried to write a Makefile for edison, but failed, the Makefile like this:
# Makefile#
obj-m += reverse.o
all:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
#
And then I tried to use "make", but the system told me that there was no "build" directory.
I then went to the $(shell uname -r) directory and found it did not has the "build" directory.
Why?How can I solve it?
Link Copied
I found the solution later today——what I needed was to get linux_header for my edison.
Follow the GUIDE, I solved the problem!
)">
This is very helpful for me, thanks to the GUIDE.
I found the solution later today——what I needed was to get linux_header for my edison.
Follow the GUIDE, I solved the problem!
)">
This is very helpful for me, thanks to the GUIDE.
For more complete information about compiler optimizations, see our Optimization Notice.