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

Compilation errors #5

Open
ghost opened this issue Sep 11, 2018 · 1 comment
Open

Compilation errors #5

ghost opened this issue Sep 11, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 11, 2018

Hi,

How to compile the code with UBUNTU 14.0 and GCC. make all is throwing 2 errors 👍

Linux/module.h : no such file or directory.

Please help !

@icalik
Copy link

icalik commented Oct 15, 2018

Can I see the makefile file that needs to add kernel header with the -c parameter?

ifndef KERNELDIR
	KERNELDIR  := /lib/modules/$(shell uname -r)/build
endif

obj-m := offset.o

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD)

clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean

install:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
	/sbin/depmod -ae

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