Currently, modules are not signed by the VM config. In legacy build.sh, the signing keys/certs would be generated in the POST_DEFCONFIG phase of the build, but now, the keys are generated by Bazel in a separate rule. Take the key generation step out and use the new Bazel attributes instead. Change-Id: Ibbe3e98eab9d6d6a8dafc05582b3f17f83a226db Signed-off-by: John Moon <quic_johmoo@quicinc.com>
20 lines
679 B
Plaintext
20 lines
679 B
Plaintext
################################################################################
|
|
# Common configuration for building kernel for Virtual Machines
|
|
DEFCONFIG="generic_vm_defconfig"
|
|
|
|
function build_defconfig_fragments() {
|
|
if [[ "${VARIANT}" =~ ^(defconfig|debug_defconfig)$ ]]; then
|
|
apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}.config vendor/${MSM_ARCH}_defconfig
|
|
|
|
if [ "${VARIANT}" = defconfig ]; then
|
|
return
|
|
fi
|
|
|
|
apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}_debug.config vendor/${MSM_ARCH}-debug_defconfig
|
|
else
|
|
echo "Variant '${VARIANT}' unsupported by gki"
|
|
exit 1
|
|
fi
|
|
}
|
|
build_defconfig_fragments
|