Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Bug in Makefiles LKM examples #17

Open
RoSchmi opened this issue Dec 8, 2017 · 0 comments
Open

Possible Bug in Makefiles LKM examples #17

RoSchmi opened this issue Dec 8, 2017 · 0 comments

Comments

@RoSchmi
Copy link

RoSchmi commented Dec 8, 2017

Hi Derek,
I'm working through your LKM examples and I think that a bug might have found its way into the Makefiles of the project.
I'm using debian version 4.4.91-ti-r133.
As an example:
:~/exploringBB/extras/kernel/hello$
For me, with your Makefile


obj-m+=hello.o
all:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
# make -C /usr/src/linux-headers-$(shell uname -r) M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean


does not work. It results in: *** No rule to make target 'modules'. Stop
I think the first line in all: must be as I pointed out in the outcommented line below your code
Also "make clean" results in: *** No rule to make target 'clean'. Stop.

Excuse me if your code is right and I did something wrong as I'm a beginner with linux, C and beaglebone.

By the way: Thank you very much for your excellent work.
Is there a new edition of your book, using newer kernels, in work?
Kind regards
Roland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant