1 Reply Latest reply on Jul 19, 2016 6:17 AM by Runsheng

    makefile failed for intel edison

    Runsheng

      I tried to write a Makefile for edison, but failed, the Makefile like this:

       

      #####################Makefile############################

       

      obj-m += reverse.o

      all:

           make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules

      clean:

           make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean

       

      #########################################################

       

      And then I tried to use "make", but the system told me that there was no "build" directory.

      I then went to the $(shell uname -r) directory and found it did not has the "build" directory.

      Why?How can I solve it?