Other OS

Lemaker-How to Compile Driver on Board

0 643
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

  1. # Automatically generated by /home/bananapi/linux-actions/scripts/mkmakefile: don't edit

  2. VERSION = 3
  3. PATCHLEVEL = 10

  4. lastword = $(word $(words $(1)),$(1))
  5. makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))

  6. ifeq ("$(origin V)", "command line")
  7. VERBOSE := $(V)
  8. endif
  9. ifneq ($(VERBOSE),1)
  10. Q := @
  11. endif

  12. MAKEARGS := -C /home/bananapi/linux-actions
  13. MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))

  14. MAKEFLAGS += --no-print-directory

  15. .PHONY: all $(MAKECMDGOALS)

  16. all        := $(filter-out all Makefile,$(MAKECMDGOALS))

  17. all:
  18.         $(Q)$(MAKE) $(MAKEARGS) $(all)

  19. Makefile:;

  20. $(all): all
  21.         @:

  22. %/: all
  23.         @:
Copy the Code


Who can help ?
You have to log in before you can reply Login | Sign Up

Points Rules