From 05f257295d0697f5eea1d3c60fd1de0074c80306 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 24 Oct 2021 15:05:27 +0200 Subject: [PATCH] pmb.config: add comment: kconfig check value types (MR 2133) --- pmb/config/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py index 6b0b6a1c..4a08a1fd 100644 --- a/pmb/config/__init__.py +++ b/pmb/config/__init__.py @@ -258,6 +258,21 @@ build_device_architectures = ["armhf", "armv7", "aarch64", "x86_64", "x86"] # for the first time build_packages = ["abuild", "build-base", "ccache", "git"] +# +# KCONFIG CHECK +# +# Implemented value types: +# - boolean (e.g. '"ANDROID_PARANOID_NETWORK": False'): +# - False: disabled +# - True: enabled, either as module or built-in +# - array (e.g. '"ANDROID_BINDER_DEVICES": ["binder", "hwbinder"]'): +# - each element of the array must be contained in the kernel config string, +# in any order. The example above would accept the following in the config: +# CONFIG_ANDROID_BINDER_DEVICES="hwbinder,vndbinder,binder" +# - string (e.g. '"LSM": "lockdown,yama,loadpin,safesetid,integrity"'): +# - the value in the kernel config must be the same as the given string. Use +# this e.g. if the order of the elements is important. + # Necessary kernel config options necessary_kconfig_options = { ">=0.0.0": { # all versions