Changes to the Makefile enabling debug builds of LKRG resulted in
the copy-builtin script producing an errant Makefile inside the
target kernel tree.
Address this by creating a SECURITY_LKRG_DEBUG Kconfig option in
the Kconfig file and copy/update the relevant Makefile stanza into
the in-tree Makefile manually (vs extracting it from the source
Makefile and modifying in-flight).
Testing:
Built in Arch chroot, verified prompt for new option and module
build in-tree.
Changes to the Makefile enabling debug builds of LKRG resulted in the copy-builtin script producing an errant Makefile inside the target kernel tree.
Address this by creating a SECURITY_LKRG_DEBUG Kconfig option in the Kconfig file and copy/update the relevant Makefile stanza into the in-tree Makefile manually (vs extracting it from the source Makefile and modifying in-flight).
Testing: Built in Arch chroot, verified prompt for new option and module build in-tree.
Description
How Has This Been Tested?