Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-09 Thread abhinav narain
I am adding the following lines to the code : static void __exit ath9k_exit(void) { is_ath9k_unloaded = true; ath_ahb_exit(); ath_pci_exit(); ath_rate_control_unregister(); printk(KERN_INFO %s:* I added this* Driver unloaded\n, dev_info); *

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-09 Thread harish badrinath
On Sun, Oct 9, 2011 at 2:19 PM, abhinav narain abhinavnarai...@gmail.com wrote: I am adding the following lines to the code : static void __exit ath9k_exit(void) {         is_ath9k_unloaded = true;         ath_ahb_exit();         ath_pci_exit();         ath_rate_control_unregister();      

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-09 Thread abhinav narain
On Sun, Oct 9, 2011 at 7:26 AM, Felix Fietkau n...@openwrt.org wrote: On 2011-10-09 10:49 AM, abhinav narain wrote: I am adding the following lines to the code : static void __exit ath9k_exit(void) { is_ath9k_unloaded = true; ath_ahb_exit(); ath_pci_exit();

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-09 Thread Felix Fietkau
On 2011-10-09 3:39 PM, abhinav narain wrote: On Sun, Oct 9, 2011 at 7:26 AM, Felix Fietkau n...@openwrt.org mailto:n...@openwrt.org wrote: On 2011-10-09 10:49 AM, abhinav narain wrote: I am adding the following lines to the code : static void __exit ath9k_exit(void)

[OpenWrt-Devel] modifying source code in OpenWrt

2011-10-07 Thread abhinav narain
When I modify the files in the following folder and make deliberate syntax errors and then do a make $make package/mac80211/{clean,compile} V=99 folder : openwrt/src/klatch/*build_dir*/*toolchain-mips_r2_gcc* -4.5-linaro_uClibc-0.9.32/linux-2.6.39.4/drivers/net/wireless/ath/ath9k I don't get

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-07 Thread Adam Porter
Hi, I'm not sure what Jonas is referencing when he says that quilt does not work in mac80211. It works fine. # make package/mac80211/{clean,prepare} V=99 QUILT=1 # cd build_dir/linux-ar71xx_generic/compat-wireless-2011-08-10/ # quilt push -a # quilt new my_changes.patch # quilt edit

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-07 Thread Adam Porter
To address your actual question (sorry, I meant for the first reply to be in your other thread, though it is related), when you make clean a package it will remove the source from build_dir and extract the tarball from dl. So, if you make any changes to the extracted and patched source directly in

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-07 Thread abhinav narain
I am sorry but I am new to OpenWrt and have doubts not cleared for days. Are you referring to http://wiki.openwrt.org/doc/devel/patches Adding kernel patches subsection ? I haven't found any other related documentation actually. Also, I want to include a bunch of .h header files where i am