i found that "makeoptions DEBUG="-g -O0" passes options to both kernel and modules.