linux驱动最简单的makefile

    技术2022-05-19  41

    ifneq ($(KERNELRELEASE),)        obj-m := hello.oelse        KERNELDIR ?= /lib/modules/$(shell uname -r)/build        PWD := $(shell pwd)default:        $(MAKE) -C $(KERNELDIR) M=$(PWD) modulesendif

     

    注意每一行前没有空格 是tab


    最新回复(0)