summaryrefslogtreecommitdiff
path: root/Makefile.ext_modules.bluejay
diff options
context:
space:
mode:
authorRobin Peng <robinpeng@google.com>2022-01-05 11:00:09 +0800
committerRoger Liao <rogerliao@google.com>2022-01-05 11:07:13 +0800
commit1652aad4e8481129041189fe85033f8dc1e58f18 (patch)
tree73bd6c7fb0e24193dfca50e78758802845b3996c /Makefile.ext_modules.bluejay
parenta5fb509139f7d782050e9dce0f95589bc1c09063 (diff)
downloadbluejay-1652aad4e8481129041189fe85033f8dc1e58f18.tar.gz
Enable parallel module build
Use Makefile parallelization to build external modules in parallel. Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: Iad8d9d49fc78f0799b4d0ccda07079c6737c4463
Diffstat (limited to 'Makefile.ext_modules.bluejay')
-rw-r--r--Makefile.ext_modules.bluejay54
1 files changed, 54 insertions, 0 deletions
diff --git a/Makefile.ext_modules.bluejay b/Makefile.ext_modules.bluejay
new file mode 100644
index 0000000..4e5c58e
--- /dev/null
+++ b/Makefile.ext_modules.bluejay
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+rel_path := ../google-modules
+
+ext_modules :=
+ext_modules += amplifiers/audiometrics
+ext_modules += aoc
+ext_modules += aoc/alsa
+ext_modules += aoc/usb
+ext_modules += bluetooth/broadcom
+ext_modules += bms
+ext_modules += display/samsung
+ext_modules += edgetpu/abrolhos/drivers/edgetpu
+ext_modules += fingerprint/fpc
+ext_modules += gpu/mali_kbase
+ext_modules += gpu/mali_pixel
+ext_modules += lwis
+ext_modules += nfc
+ext_modules += power/reset
+ext_modules += sensors/hall_sensor
+ext_modules += touch/common
+ext_modules += touch/fts/fst2
+ext_modules += touch/fts/ftm5
+ext_modules += touch/sec
+ext_modules += wlan/bcmdhd4389
+ext_modules += ../devices/google/blueport/display
+
+# Add any modules which have their own UAPI headers to this list. This will
+# cause the build to run the module makefile with headers_install target.
+has_uapi_headers :=
+has_uapi_headers += touch/common
+
+install_uapi_headers_targets := $(has_uapi_headers:=_headers_install)
+
+ifneq ($(wildcard $(KERNEL_SRC)/$(rel_path)/uwb/kernel),)
+ext_modules += uwb/kernel
+endif
+
+.PHONY: $(ext_modules) $(install_uapi_headers_targets) depmod allmodules
+
+allmodules: $(ext_modules) $(install_uapi_headers_targets) depmod
+
+aoc/alsa: | aoc
+
+aoc/usb: | aoc/alsa aoc
+
+power/reset: | bms
+
+touch/fts/ftm5: | touch/common
+touch/sec: | touch/common
+
+../devices/google/blueport/display: | display/samsung
+
+include $(KERNEL_SRC)/Makefile.ext_modules.include