Created
March 5, 2021 04:49
-
-
Save andoriyu/23b3002296e00f9e38fe40ace337741e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Peter Yang <turmary@126.com> | |
# Copyright (c) 2019 Seeed Studio | |
# | |
# MIT License | |
# | |
KERNELRELEASE ?= $(shell uname -r) | |
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build | |
PWD := $(shell pwd) | |
CROSS ?= armv6l-unknown-linux-gnueabihf- | |
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 | |
ccflags-y := -w | |
all: | |
$(MAKE) ARCH=arm CROSS_COMPILE=$(CROSS) -C $(KERNEL_DIR) M=$(PWD) modules | |
install: | |
$(MAKE) ARCH=arm CROSS_COMPILE=$(CROSS) -C $(KERNEL_DIR) M=$(PWD) INSTALL_MOD_PATH=$(out) modules_install | |
clean: | |
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean | |
.PHONY: all clean install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment