summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill McVicker <willmcvicker@google.com>2022-04-15 11:55:45 -0700
committerWill McVicker <willmcvicker@google.com>2022-04-15 11:55:45 -0700
commit1cef5ef097a33c3120e4652b19d8dd945ef1ec54 (patch)
tree9b6ac65a29865b262afc6fe2c18b20978aa29d50
parent9f82f2712e409e19dfed311b2e3eaa6c6fdd5853 (diff)
downloadreset-1cef5ef097a33c3120e4652b19d8dd945ef1ec54.tar.gz
power: reset: enable Kconfig support
This adds the necessary build configurations to support using the Kconfig. Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: I345c02bb255f20a3e20e949f39c646471d210bc3
-rw-r--r--BUILD.bazel10
-rw-r--r--Kconfig10
-rw-r--r--Makefile4
3 files changed, 17 insertions, 7 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 2a3c8ef..8cc361c 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -8,6 +8,16 @@
load("//build/kernel/kleaf:kernel.bzl", "kernel_module")
+filegroup(
+ name = "reset.kconfig",
+ srcs = glob([
+ "Kconfig",
+ ]),
+ visibility = [
+ "//private/google-modules/soc/gs:__pkg__",
+ ],
+)
+
kernel_module(
name = "reset.slider",
srcs = glob([
diff --git a/Kconfig b/Kconfig
index 1bc5122..377e513 100644
--- a/Kconfig
+++ b/Kconfig
@@ -1,5 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0
+
config POWER_RESET_EXYNOS
-» tristate "Samsung Exynos power-off driver"
-» depends on SOC_GS101 || SOC_GS201
-» help
-» Reboot support for Samsung Exynos boards.
+ tristate "Samsung Exynos power-off driver"
+ depends on SOC_GS101 || SOC_GS201
+ help
+ Reboot support for Samsung Exynos boards.
diff --git a/Makefile b/Makefile
index 0b4375e..9e5945f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,10 @@
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
M ?= $(shell pwd)
-KBUILD_OPTIONS += CONFIG_POWER_RESET_EXYNOS=m
-
EXTRA_SYMBOLS += $(OUT_DIR)/../private/google-modules/bms/Module.symvers
include $(KERNEL_SRC)/../private/google-modules/soc/gs/Makefile.include
modules modules_install clean:
$(MAKE) -C $(KERNEL_SRC) M=$(M) \
- $(KBUILD_OPTIONS) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" KBUILD_EXTRA_SYMBOLS="$(EXTRA_SYMBOLS)" $(@)
+ EXTRA_CFLAGS="$(EXTRA_CFLAGS)" KBUILD_EXTRA_SYMBOLS="$(EXTRA_SYMBOLS)" $(@)