This was busted after we started using the drivers/net/Makefile to
select b44, and it was *always* enabled.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
# b44 is dependent on ssb, so its has to be rebuilt as well.
DIR="drivers/net"
cp $GIT_TREE/$DIR/b44.[ch] $DIR
-echo "obj-m += b44.o" > $DIR/Makefile
+echo "obj-$(CONFIG_B44) += b44.o" > $DIR/Makefile
# Misc
mkdir -p drivers/misc/eeprom/
ATH_MAKEFILE="drivers/net/wireless/ath/Makefile"
NET_WIRELESS_MAKEFILE="net/wireless/Makefile"
EEPROM_MAKEFILE="drivers/misc/eeprom/Makefile"
+DRIVERS_NET="drivers/net/Makefile"
DRIVERS_NET_USB_MAKEFILE="drivers/net/usb/Makefile"
SSB_MAKEFILE="drivers/ssb/Makefile"
}
function disable_b44 {
- perl -i -ne 'print if ! /CONFIG_B44/ ' Makefile
+ backup_file $DRIVERS_NET
+ perl -i -ne 'print if ! /CONFIG_B44/ ' $DRIVERS_NET
}
function disable_ssb