You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: