linux_kernel_mod's People
linux_kernel_mod's Issues
Проблемы с Makefile
Привет. Пробую сделать какой-либо драйвер под raspberry. Прочитал твою статью и попытался повторить.
В домашнем каталоге создал папку с проектом, скопировал все файлы туда и попытался компилировать
pi@raspberrypi:/spimod $ ls -la/spimod $ cat ./Makefile
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:
#KDIR = /lib/modules/$(shell uname -r)/build
PWD = $(shell pwd)
KDIR = $(shell pwd)/
TARGET = blablamod
obj-m := $(TARGET).o
default:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.