Index: gen-kernel =================================================================== --- gen-kernel (revision 267) +++ gen-kernel (working copy) @@ -45,6 +45,20 @@ sed -i '/CONFIG_VIDEO_CX23885/d' ./drivers/media/video/Makefile cd .. +# Stop b43 module reommending non-free software +# Help from #sed. WTF does it do - got to test this out :| +# sed ':more;$!N;s/\n/&/2;tenough;$!bmore;:enough;s|b43err(wl, "You must go to "\n"http://linuxwireless.org/en/users/Drivers/b43#devicefirmware "\n"and download the correct firmware (version 4).\\n");|See http://wiki.gnewsense.org/Documentation/Wireless for instructions on installing free firmware for this device. |;P;D' + +# Remove non-free ATI code and disable the modules +rm include/video/mach64.h drivers/video/aty/mach64_* drivers/video/aty/atyfb_base.c +clean_kconfig ./drivers/video/Kconfig 'FB_ATY' +clean_kconfig ./drivers/video/Kconfig 'FB_ATY_GX' +clean_kconfig ./drivers/video/Kconfig 'FB_ATY_CT' +clean_kconfig ./drivers/video/Kconfig 'FB_ATY_LCD' +clean_kconfig ./drivers/video/Kconfig 'FB_ATY_GENERIC_LCD' +clean_kconfig ./drivers/video/Kconfig 'FB_ATY_BACKLIGHT' +sed -i '/(CONFIG_FB_ATY)/d' ./drivers/video/Makefile + rename 's/linux/linux-nofirmware/' linux_*.orig.tar.gz cd linux-*/