Commit ("ANDROID: HID; Over-ride default maximum buffer size when using
UHID") provides an Android-centric workaround for a userspace initiated
overflow issue in the report submission infrastructure by checking to
see if UHID is in use from within the HID core. This causes some
compilers to report a dependency cycle issue during modules_install:
depmod: ERROR: Cycle detected: hid -> uhid -> hid
depmod: ERROR: Found 2 modules in dependency cycles!
This patch works around that issue by ensuring both HID and UHID are
built-in and available to each other at all times, which overrides
allmodconfig's default behaviour of building all tristate symbols as
modules.
Bug: 260007429
Change-Id: I470b3664b8644ab4290fa64bf5822e72fbce975a
Signed-off-by: Lee Jones <joneslee@google.com>
17 lines
448 B
Plaintext
17 lines
448 B
Plaintext
DEFCONFIG=allmodconfig
|
|
|
|
POST_DEFCONFIG_CMDS="update_config"
|
|
function update_config() {
|
|
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
|
|
-d TEST_KMOD \
|
|
-e UNWINDER_FRAME_POINTER \
|
|
-d INFINIBAND_QIB \
|
|
-d SAMPLES \
|
|
-d BPFILTER \
|
|
-e HID \
|
|
-e UHID \
|
|
|
|
(cd ${OUT_DIR} && \
|
|
make O=${OUT_DIR} $archsubarch CROSS_COMPILE=${CROSS_COMPILE} ${TOOL_ARGS} ${MAKE_ARGS} olddefconfig)
|
|
}
|