If one compiles the source code, there is an option for compiling the module with debugging enable. The ebuild doesn't offer the option. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Can you please propose a patch for debugging support?
Please tell me how to enable that option or make a patch for the ebuild so that it offers the option.
From my bashrc: [[ "$CATEGORY/$PN" == "net-wireless/rt2500" ]] \ && export CFLAGS="${CFLAGS} -DRT2500_DBG" Alternatively, from /usr/share/doc/rt2500-1.1.0_beta4/TESTING.gz: Below is information on how you can help out the team with testing of the rt2500 kernel module. 1. Get the latest source from the CVS tree. Easiest way todo this is to get the nightly tarball from our website at http://rt2x00.serialmonkey.com/rt2500-cvs-daily.tar.gz 2. Enable module debugging. Todo this run 'make clean' to remove any compiled objects you have and then run 'make debug'. This will recompile the Module with debugging turned on and reinstall it over your existing module.
Also, the cvs snapshot ebuild in my tree[1][2] uses: pkg_setup() { linux-mod_pkg_setup if use_m ; then BUILD_PARAMS="-C ${KV_DIR} M=${S}/Module" use debug && BUILD_PARAMS="${BUILD_PARAMS} EXTRA_CFLAGS=-DRT2500_DBG" BUILD_TARGETS="modules" else die "please use a kernel >=2.6.6" fi } 1. http://sources.catmur.co.uk/viewcvs/svn/gentoo/tree/net-wireless/rt2500/rt2500-1.1.0_pre20061231.ebuild?view=markup 2. http://sources.catmur.co.uk/svn/repos/gentoo/tree/net-wireless/rt2500/rt2500-1.1.0_pre20061231.ebuild