Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98909 - rt2500 - add debug USE flag
Summary: rt2500 - add debug USE flag
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 11:37 UTC by Kevin Parent
Modified: 2007-01-04 07:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Parent 2005-07-13 11:37:10 UTC
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.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2005-10-02 05:08:49 UTC
Can you please propose a patch for debugging support?
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-10-15 06:05:16 UTC
Please tell me how to enable that option or make a patch for the ebuild so that
it offers the option.
Comment 3 Ed Catmur 2006-09-13 17:59:15 UTC
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.
Comment 4 Ed Catmur 2007-01-04 07:06:12 UTC
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