Skip to content

Instantly share code, notes, and snippets.

@andoriyu
Created March 5, 2021 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andoriyu/23b3002296e00f9e38fe40ace337741e to your computer and use it in GitHub Desktop.
Save andoriyu/23b3002296e00f9e38fe40ace337741e to your computer and use it in GitHub Desktop.
#
# 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