blob: e9e5a826b70a268f0bd5e2bf14a31760ba37832f [file] [log] [blame] [edit]
# SPDX-License-Identifier: GPL-2.0-or-later
load("//build/kernel/kleaf:kernel.bzl", "kernel_module")
filegroup(
name = "headers",
srcs = glob([
"*.h",
]),
visibility = [
"//private/google-modules/power/reset:__subpackages__",
],
)
kernel_module(
name = "bms",
srcs = glob([
"**/*.c",
"**/*.h",
"Kbuild",
]) + [
"//private/google-modules/bms/misc:headers",
"//private/google-modules/soc/gs:gs_soc_headers",
],
outs = [
"google-battery.ko",
"google-bms.ko",
"google-charger.ko",
"google-cpm.ko",
"google_dock.ko",
"google_dual_batt_gauge.ko",
"max1720x-battery.ko",
"max20339.ko",
"max77729-pmic.ko",
"max77729_charger.ko",
"max77729_uic.ko",
"max77759-charger.ko",
"max77779-charger.ko",
"p9221.ko",
"pca9468.ko",
"max77779_i2cm.ko",
"max77779_pmic.ko",
"max77779_pmic_irq.ko",
"max77779_pmic_pinctrl.ko",
"max77779_pmic_sgpio.ko",
"max77779-sp.ko",
"ln8411.ko",
# "max77729.ko",
# "max77759.ko",
# "pca9468-google.ko",
],
kernel_build = "//private/google-modules/soc/gs:gs_kernel_build",
visibility = [
"//private/devices/google:__subpackages__",
"//private/google-modules/power/reset:__subpackages__",
"//private/google-modules/soc/gs:__pkg__",
],
deps = [
"//private/google-modules/bms/misc:bms-misc",
"//private/google-modules/soc/gs:gs_soc_module",
],
)