Other OS
Lemaker-How to Compile Driver on Board
0
1522
View: 1522|Reply: 0
|
[Other OS]
Lemaker-How to Compile Driver on Board
[Copy link]
|
|
I am using bpi m1 Kernel 3.4.103 ubuntu 14.04.1
Iam trying to compile rtc-ds1307.c and making rtc-ds1307.ko
I used this "How to"http://wiki.lemaker.org/How_to_Compile_driver_on_Boardeverything was working fine
but when doing
cd test
make
I get this:
bananapi@lemaker:~/test$ make
make -C /lib/modules/`uname -r`/build M=/home/bananapi/test modules
make[1]: Verzeichnis »/lib/modules/3.4.103/build« wird betreten +++means entering ...
make[1]: *** Keine Regel, um »modules« zu erstellen. Schluss. +++ no rule to to make "modules"
make[1]: Verzeichnis »/lib/modules/3.4.103/build« wird verlassen +++ Exit ...
means target "modules" in makefile of ../build is missing. Where will iget it from ?
this is what I am actually having in ../build
- # Automatically generated by /home/bananapi/linux-actions/scripts/mkmakefile: don't edit
- VERSION = 3
- PATCHLEVEL = 10
- lastword = $(word $(words $(1)),$(1))
- makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))
- ifeq ("$(origin V)", "command line")
- VERBOSE := $(V)
- endif
- ifneq ($(VERBOSE),1)
- Q := @
- endif
- MAKEARGS := -C /home/bananapi/linux-actions
- MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))
- MAKEFLAGS += --no-print-directory
- .PHONY: all $(MAKECMDGOALS)
- all := $(filter-out all Makefile,$(MAKECMDGOALS))
- all:
- $(Q)$(MAKE) $(MAKEARGS) $(all)
- Makefile:;
- $(all): all
- @:
- %/: all
- @:
Copy the Code
Who can help ? |
|
|
|
|
|
|