Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
#Top-level Makefile for AudioReach kernel modules

# A list of subdirectories containing Kbuild Makefiles
SUBDIRS := audioreach-driver

.PHONY: all clean modules_install

all:
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir all; \
done

modules_install:
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir modules_install; \
done
# Define common targets using the special automatic variable $@
all modules clean modules_install:
for dir in $(SUBDIRS); do \
echo "Executing '$@' in $$dir..."; \
$(MAKE) -C $(KERNEL_SRC) M=$(CURDIR)/$$dir $@; \
Comment thread
nandamajay marked this conversation as resolved.
done

clean:
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean; \
done
# The 'modules' target is the default one, so when you run 'make'
# it will build the modules.
.PHONY: all modules clean modules_install
18 changes: 1 addition & 17 deletions audioreach-driver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,5 @@ audioreach_driver-objs := \
q6prm_audioreach_clock.o \
q6prm_audioreach.o \
audioreach_common.o
ccflags-y += -I$(KERNEL_SRC)/sound/soc/qcom/qdsp6 -I$(KERNEL_SRC)/sound/soc/qcom


all:
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules

modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) INSTALL_MOD_PATH=$(DESTDIR) modules_install

clean:
@if [ -n "$(KERNEL_SRC)" ]; then \
$(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) clean; \
elif [ -n "$(KERNELDIR)" ]; then \
$(MAKE) -C $(KERNELDIR) M=$(shell pwd) clean; \
else \
rm -f *.o *.ko *.mod.c *.order *.symvers; \
fi

ccflags-y += -I$(KERNEL_SRC)/sound/soc/qcom/qdsp6 -I$(KERNEL_SRC)/sound/soc/qcom
Loading