GithubHelp home page GithubHelp logo

linux_kernel_mod's People

Stargazers

 avatar

Watchers

 avatar

linux_kernel_mod's Issues

Проблемы с Makefile

Привет. Пробую сделать какой-либо драйвер под raspberry. Прочитал твою статью и попытался повторить.
В домашнем каталоге создал папку с проектом, скопировал все файлы туда и попытался компилировать

pi@raspberrypi:/spimod $ ls -la
total 24
drwxr-xr-x 2 pi pi 4096 Sep 3 21:00 .
drwxr-xr-x 14 pi pi 4096 Sep 3 20:54 ..
-rw-r--r-- 1 pi pi 2006 Sep 3 18:38 blablamod.c
-rw-r--r-- 1 pi pi 80 Sep 3 18:37 blablamod.h
-rw-r--r-- 1 pi pi 118 Sep 3 18:39 lnk.txt
-rw-r--r-- 1 pi pi 346 Sep 3 21:00 Makefile
pi@raspberrypi:
/spimod $ cat ./Makefile
#KDIR = /lib/modules/$(shell uname -r)/build
PWD = $(shell pwd)
KDIR = $(shell pwd)/
TARGET = blablamod

obj-m := $(TARGET).o

default:
$(MAKE) -C $(KDIR) M=$(PWD) modules

clean:
@rm -f .o ..cmd ..flags .mod.c .order
@rm -f .
.
.cmd *~ .~ TODO.

@rm -fR .tmp*
@rm -rf .tmp_versions

disclean: clean
@rm *.ko *.symvers

pi@raspberrypi:~/spimod $ make
make -C /home/pi/spimod/ M=/home/pi/spimod modules
make[1]: Entering directory '/home/pi/spimod'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/home/pi/spimod'
make: *** [Makefile:9: default] Error 2

Я что то делаю не так или нужно еще что то добавить?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.