dheadshot icon

Modified ReSpeaker Makefile

dheadshot | PRO | 08/24/20 06:53:58 PM UTC | 0 ⭐ | 10937 👁️ | Never ⏰ | []
Make |

1.09 KB

|

None

|

0 👍

/

0 👎

#
# Peter Yang <[email protected]>
# Copyright (c) 2019 Seeed Studio
#
# MIT License
#
 
uname_r=$(shell uname -r)
 
ifneq ($(KERNELVER),)
uname_r=$(KERNELVER)
endif
 
# If KERNELRELEASE is defined, we've been invoked from the
# kernel build system and can use its language
ifneq ($(KERNELRELEASE),)
# $(warning KERNELVERSION=$(KERNELVERSION))
 
snd-soc-wm8960-objs := wm8960.o
snd-soc-ac108-objs := ac108.o ac101.o
snd-soc-seeed-voicecard-objs := seeed-voicecard.o
 
 
obj-m += snd-soc-wm8960.o
obj-m += snd-soc-ac108.o
obj-m += snd-soc-seeed-voicecard.o
 
ifdef DEBUG
ifneq ($(DEBUG),0)
    ccflags-y += -DDEBUG -DAC101_DEBG
endif
endif
 
 
 
else
 
DEST := /lib/modules/$(uname_r)/kernel
 
all:
    echo $(uname_r), $(KERNELVERSION)
    make -C /lib/modules/$(uname_r)/build M=$(PWD) modules
 
clean:
    make -C /lib/modules/$(uname_r)/build M=$(PWD) clean
 
install:
    sudo cp snd-soc-ac108.ko ${DEST}/sound/soc/codecs/
    sudo cp snd-soc-wm8960.ko ${DEST}/sound/soc/codecs/
    sudo cp snd-soc-seeed-voicecard.ko ${DEST}/sound/soc/bcm/
    sudo depmod -a
 
 
.PHONY: all clean install
 
endif
 
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎