1、切换到主文件夹,进入gargoyle目录复制netfilter-match-modules文件夹到openwrt/chaos_calmer目录进入gargoyle的patches-generic目录,复制010-imq.patch和020-layer7-conntrack-adjust.patch两个文件到openwrt/chaos_calmer目录
2、在openwrt/chaos_calmer/package/my_package目袄嬖艽蛞录下,建立gargoyle文件夹这时转回主文件夹,进入gargoyle的package文件夹,复制bwmon-gargoyle、gargoyle-firewall-util、libericstools、libiptbwctl、qos-gargoyle、webmon-gargoyle这六个文件夹到主文件夹的openwrt/chaos_calmer/package/my_package/gargoyle目录下
3、那个sh批处理原理就是sh integrate_netfilter_modules.sh openwrt源码目录 integrate_netfilter_modules.sh所在目录检查openwrt/chaos_calmer/target/linux/generic/config-3.18文件最底下有没有这么几行文字:
4、打补丁,只可运行一次,它这个脚本打补丁好闻赙酵枭像不可以自动识别是否已经打过,会重复的打,所以会造成编译过程里出错。如果真的出错了,那还是建议重新下载源码从头开始。切换到openwrt/chaos_c锾攒揉敫almer/target/linux/ar71xx/patches-3.18目录,剪切650-custom_netfilter_match_modules.patch文件到openwrt/chaos_calmer/target/linux/generic/patches-3.18目录下
5、切换到主文件夹,进入981213/openwrt/feeds/luci/applications文件夹,复制luci-app-qos_gargoyle文件夹到主文件夹的openwrt/chaos_calmer/feeds/luci/applications文件夹下石像鬼QoS已不兼容CC版,用这个包来代替:
6、注意选中kmod-ebtables-ipv4模块,位置在:Kernel modules---> Netfilter Extensions---> kmod-ebtables-ipv4