{"id":6662,"date":"2026-01-07T11:49:33","date_gmt":"2026-01-07T09:49:33","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6662"},"modified":"2026-01-07T11:49:33","modified_gmt":"2026-01-07T09:49:33","slug":"freebsd-%d1%88%d0%b2%d0%b8%d0%b4%d0%ba%d0%be-%d0%b7%d0%b1%d0%b8%d1%80%d0%b0%d1%94%d0%bc%d0%be-%d1%8f%d0%b4%d1%80%d0%be","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6662","title":{"rendered":"[FreeBSD] \u0428\u0432\u0438\u0434\u043a\u043e \u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u044f\u0434\u0440\u043e"},"content":{"rendered":"\n<p>\u0412 \u0434\u0430\u043d\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u0440\u043e\u0437\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0434\u0435\u044f\u043a\u0456 \u043c\u0435\u0442\u043e\u0434\u0438 \u0448\u0432\u0438\u0434\u043a\u043e\u0433\u043e \u0437\u0431\u0438\u0440\u0430\u043d\u043d\u044f \u0447\u0438 \u043f\u0435\u0440\u0435\u0437\u0431\u0438\u0440\u0430\u043d\u043d\u044f \u044f\u0434\u0440\u0430.<\/p>\n\n\n\n<p>\u0422\u0438\u043f\u043e\u0432\u0435 \u0437\u0431\u0438\u0440\u0430\u043d\u043d\u044f \u044f\u0434\u0440\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u044e<\/p>\n\n\n\n<p><code>$ make buildkernel<\/code><\/p>\n\n\n\n<p>\u0426\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u043b\u0438\u0448\u0435 \u0437\u0431\u0438\u0440\u0430\u0454 \u044f\u0434\u0440\u043e, \u0430 \u0456 \u0449\u0435 \u043f\u0435\u0440\u0435\u0437\u0431\u0438\u0440\u0430\u0454 \u0432\u0441\u0456 \u043c\u043e\u0434\u0443\u043b\u0456, \u044f\u043a\u0456 \u0432\u0445\u043e\u0434\u044f\u0442\u044c \u0443 <strong>GENERIC<\/strong> (\u0430\u0431\u043e \u0443 <strong>custom kernel<\/strong>, \u044f\u043a\u0449\u043e \u0432\u043a\u0430\u0437\u0430\u043d\u0430 \u043e\u043f\u0446\u0456\u044f <strong>KERNCONF=MYKERNEL<\/strong>).<\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p>\u042f\u043a\u0449\u043e \u0442\u0440\u0435\u0431\u0430 \u043f\u0435\u0440\u0435\u0437\u0456\u0431\u0440\u0430\u0442\u0438 \u044f\u0434\u0440\u043e + \u0434\u0435\u044f\u043a\u0456 \u043c\u043e\u0434\u0443\u043b\u0456, \u043c\u043e\u0436\u043d\u0430 \u0437\u0430\u0434\u0430\u0442\u0438 \u0446\u0435 \u0447\u0435\u0440\u0435\u0437 \u0437\u043c\u0456\u043d\u043d\u0443 <strong>MODULES_OVERRIDE<\/strong>:<\/p>\n\n\n\n<p><code>$ make MODULES_OVERRIDE=\"tmpfs nullfs\" buildkernel<\/code><\/p>\n\n\n\n<p>\u0410\u043b\u0435, \u043c\u043e\u0436\u043d\u0430 \u0449\u0435 \u043f\u0440\u0438\u0448\u0432\u0438\u0434\u0448\u0438\u0442\u0438 \u0437\u0431\u0456\u0440\u043a\u0443, \u0432\u043a\u0430\u0437\u0430\u0432\u0448\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>KERNFAST<\/strong>:<\/p>\n\n\n\n<p><code>$ make -DKERNFAST buildkernel<\/code><\/p>\n\n\n\n<p>\u0426\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0435\u0440\u0435\u0437\u0431\u0435\u0440\u0435 \u043b\u0438\u0448\u0435 \u0437\u043c\u0456\u043d\u0435\u043d\u0456 <strong>source<\/strong> \u0444\u0430\u0439\u043b\u0438 \u0434\u0435 \u043d\u0435\u043c\u0430\u0454 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e\u0441\u0442\u0456 \u043f\u0435\u0440\u0435\u0437\u0431\u0438\u0440\u0430\u0442\u0438 \u0432\u0441\u0435.<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#f78208\" class=\"has-inline-color\">\u0417\u0430\u0443\u0432\u0430\u0436\u0435\u043d\u043d\u044f!<\/mark><\/em><\/strong><\/p>\n\n\n\n<p><strong>KERNFAST<\/strong> \u043f\u0440\u0430\u0446\u044e\u0454 \u043b\u0438\u0448\u0435 \u0442\u043e\u0434\u0456, \u043a\u043e\u043b\u0438 \u044f\u0434\u0440\u043e \u0437\u0456\u0431\u0440\u0430\u043d\u0435 \u0445\u043e\u0447 \u0440\u0430\u0437, \u0442\u043e\u0431\u0442\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u043d\u0456 <strong>obj<\/strong> \u0444\u0430\u0439\u043b\u0438 \u0443 <strong>\/usr\/obj<\/strong>. \u0427\u043e\u043c\u0443? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u043e\u0437\u0431\u0435\u0440\u0435\u043c\u043e. \u041e\u0441\u044c \u0432\u0438\u0442\u044f\u0433 \u0456\u0437 <strong>man<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>KERNFAST If set, the build target buildkernel defaults to<br>setting NO_KERNELCLEAN, NO_KERNELCONFIG, and<br>NO_KERNELOBJ. When set to a value other than 1 then<br>KERNCONF is set to the value of KERNFAST.<\/p>\n<\/blockquote>\n\n\n\n<p>\u0420\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u043a\u043e\u0436\u043d\u0443 \u043e\u043f\u0446\u0456\u044e.<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#418506\" class=\"has-inline-color\">NO_KERNELCLEAN<\/mark><\/em><\/strong>: \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 make clean \u043f\u0435\u0440\u0435\u0434 \u0437\u0431\u0456\u0440\u043a\u043e\u044e, \u0442\u043e\u0431\u0442\u043e, \u043d\u0435 \u0432\u0438\u0434\u0430\u043b\u044f\u0442\u0438 \u0444\u0430\u0439\u043b\u0438 \u0437 <strong>\/usr\/obj<\/strong> \u0442\u0430 <strong>*.o\/*.ko<\/strong>, \u044f\u043a\u0456 \u044f\u043a\u0440\u0430\u0437 \u0456 \u0442\u0440\u0435\u0431\u0430 \u0434\u043b\u044f \u043c\u0430\u0439\u0431\u0443\u0442\u043d\u044c\u043e\u0457 \u0437\u0431\u0456\u0440\u043a\u0438 <strong>kernel<\/strong><\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#418506\" class=\"has-inline-color\">NO_KERNELCONFIG<\/mark><\/em><\/strong>: \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0443\u0432\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 Makefile, \u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0436\u0435 \u0437\u0433\u0435\u043d\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u043d\u0456\u0448\u0435<\/p>\n\n\n\n<p><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#418506\" class=\"has-inline-color\">NO_KERNELOBJ<\/mark><\/em><\/strong>: \u044f\u043a\u0449\u043e \u043f\u0440\u043e\u0441\u0442\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0442\u043e \u0446\u0435 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">\u041d\u0415<\/mark><\/strong> <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">\u0420\u041e\u0411\u0418\u0422\u0418<\/mark><\/strong> \u043f\u0456\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0434\u043e \u0437\u0431\u0456\u0440\u043a\u0438, \u0442\u043e\u0431\u0442\u043e <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-color\">\u041d\u0415<\/mark><\/strong> \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0435, \u0456\u0454\u0440\u0430\u0440\u0445\u0456\u0457 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0456\u0432 \u0432 <strong>\/usr\/obj\/usr\/src\/sys\/MYKERNEL<\/strong>, \u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0436\u0435 \u0432\u0441\u0435 \u0456\u0441\u043d\u0443\u044e\u0447\u0435.<\/p>\n\n\n\n<p>\u0414\u043b\u044f \u0441\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044f, \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0442\u0430\u043a\u0443 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u044e<\/p>\n\n\n\n<p><code>$ make KERNFAST=MYKERNEL buildkernel<\/code><\/p>\n\n\n\n<p>\u0437\u0430\u043c\u0456\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0457:<\/p>\n\n\n\n<p><code>$ make -DKERNFAST buildkernel KERNCONF=MYKERNEL<\/code><\/p>\n\n\n\n<p>\u041e\u0442\u0436\u0435, \u043a\u043e\u043b\u0438 \u0432\u0430\u0440\u0442\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <strong>KERNFAST<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u044f\u043a\u0449\u043e \u0437\u043c\u0456\u043d\u0438\u043b\u0438 \u043f\u0430\u0440\u0443 \u0444\u0430\u0439\u043b\u0456\u0432 \u0432 \u044f\u043a\u0438\u0445\u043e\u0441\u044c \u043f\u0430\u0440\u0443 \u043c\u043e\u0434\u0443\u043b\u0456\u0432<\/li>\n\n\n\n<li>\u044f\u043a\u0449\u043e \u0442\u0440\u0435\u0431\u0430 \u043d\u0430\u043a\u043b\u0430\u0441\u0442\u0438 <strong>security patch<\/strong><\/li>\n\n\n\n<li><strong>debug<\/strong> \u044f\u0434\u0440\u0430<\/li>\n\n\n\n<li>\u0434\u0443\u0436\u0435 \u0447\u0430\u0441\u0442\u043e \u0440\u043e\u0431\u0438\u0442\u0438 \u043f\u0435\u0440\u0435\u0437\u0431\u0456\u0440\u043a\u0443 \u044f\u0434\u0440\u0430, \u043c\u0456\u043d\u044f\u044e\u0447\u0438 \u0449\u043e\u0441\u044c \u043d\u0435\u0437\u043d\u0430\u0447\u043d\u0435<\/li>\n<\/ul>\n\n\n\n<p>\u0423 \u0432\u0441\u0456\u0445 \u0456\u043d\u0448\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445 \u0446\u044c\u043e\u0433\u043e \u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0430<\/p>\n\n\n\n<p>\u042f\u043a\u0449\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u0435 <strong>KERNFAST<\/strong>, \u0442\u043e \u0434\u043e\u0446\u0456\u043b\u044c\u043d\u043e \u0449\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438 <strong>WITH_META_MODE<\/strong> (\u0431\u0435\u0437 <strong>KERNFAST<\/strong> \u0446\u0435\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435\u043c\u0430\u0454 \u0441\u0435\u043d\u0441\u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438), \u044f\u043a\u0438\u0439 \u043f\u043e\u043a\u043b\u0430\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u043b\u0438\u0448\u0435 \u043d\u0430 \u0437\u043c\u0456\u043d\u0443 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u0438\u0445, \u0442\u043e\u0431\u0442\u043e, \u044f\u043a\u0449\u043e \u0444\u0430\u0439\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0431\u0443\u0432 \u0437\u043c\u0456\u043d\u0435\u043d\u0438\u0439, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <strong>touch &lt;file><\/strong>.<\/p>\n\n\n\n<p><strong>META_MODE<\/strong> \u2014 \u0446\u0435 \u0440\u0435\u0436\u0438\u043c <strong>make(1)<\/strong> \u0443 <strong>FreeBSD<\/strong>, \u044f\u043a\u0438\u0439:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043d\u0435 \u043f\u043e\u043a\u043b\u0430\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u043b\u0438\u0448\u0435 \u043d\u0430 <strong>timestamps<\/strong><\/li>\n\n\n\n<li>\u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0443\u0454 \u0440\u0435\u0430\u043b\u044c\u043d\u0456 <strong>input\/output<\/strong> \u043a\u043e\u043c\u0430\u043d\u0434<\/li>\n\n\n\n<li>\u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u0456 \u0432 <strong>.meta<\/strong> \u0444\u0430\u0439\u043b\u0430\u0445<\/li>\n<\/ul>\n\n\n\n<p>\u0422\u043e\u0431\u0442\u043e <strong>make<\/strong> \u0437\u043d\u0430\u0454 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043b\u0438 \u0444\u0430\u0439\u043b \u0437\u043c\u0456\u043d\u044e\u0432\u0430\u0432\u0441\u044f, \u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u044f\u043a\u0438\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0432\u0456\u043d \u0431\u0443\u0432 \u0437\u0433\u0435\u043d\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u0439<\/li>\n\n\n\n<li>\u044f\u043a\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u044e<\/li>\n\n\n\n<li>\u0437 \u044f\u043a\u0438\u043c\u0438 \u0444\u043b\u0430\u0433\u0430\u043c\u0438<\/li>\n<\/ul>\n\n\n\n<p>\u041a\u043e\u0440\u0438\u0441\u043d\u0456 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f<\/p>\n\n\n\n<p><a href=\"https:\/\/man.freebsd.org\/cgi\/man.cgi?build(7)\">https:\/\/man.freebsd.org\/cgi\/man.cgi?build(7)<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/man.freebsd.org\/cgi\/man.cgi?query=src.conf&amp;sektion=5&amp;apropos=0&amp;manpath=FreeBSD+15.0-RELEASE+and+Ports\">https:\/\/man.freebsd.org\/cgi\/man.cgi?query=src.conf&amp;sektion=5&amp;apropos=0&amp;manpath=FreeBSD+15.0-RELEASE+and+Ports<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/freebsdfoundation.org\/wp-content\/uploads\/2021\/11\/Kernel_Development_Recipes.pdf\">https:\/\/freebsdfoundation.org\/wp-content\/uploads\/2021\/11\/Kernel_Development_Recipes.pdf<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/xmj.github.io\/articles\/sysadmin\/builds_ccache_memcached.html\">https:\/\/xmj.github.io\/articles\/sysadmin\/builds_ccache_memcached.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0434\u0430\u043d\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u0440\u043e\u0437\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0434\u0435\u044f\u043a\u0456 \u043c\u0435\u0442\u043e\u0434\u0438 \u0448\u0432\u0438\u0434\u043a\u043e\u0433\u043e \u0437\u0431\u0438\u0440\u0430\u043d\u043d\u044f \u0447\u0438 \u043f\u0435\u0440\u0435\u0437\u0431\u0438\u0440\u0430\u043d\u043d\u044f \u044f\u0434\u0440\u0430. \u0422\u0438\u043f\u043e\u0432\u0435 \u0437\u0431\u0438\u0440\u0430\u043d\u043d\u044f \u044f\u0434\u0440\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u044e $ make buildkernel \u0426\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u043b\u0438\u0448\u0435 \u0437\u0431\u0438\u0440\u0430\u0454 \u044f\u0434\u0440\u043e, \u0430 \u0456 \u0449\u0435 \u043f\u0435\u0440\u0435\u0437\u0431\u0438\u0440\u0430\u0454 \u0432\u0441\u0456 \u043c\u043e\u0434\u0443\u043b\u0456, \u044f\u043a\u0456 \u0432\u0445\u043e\u0434\u044f\u0442\u044c \u0443 GENERIC (\u0430\u0431\u043e \u0443 custom kernel, \u044f\u043a\u0449\u043e \u0432\u043a\u0430\u0437\u0430\u043d\u0430 \u043e\u043f\u0446\u0456\u044f KERNCONF=MYKERNEL).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10],"tags":[],"class_list":["post-6662","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6662"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6662\/revisions"}],"predecessor-version":[{"id":6665,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6662\/revisions\/6665"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}