{"id":492,"date":"2014-06-02T17:49:33","date_gmt":"2014-06-03T02:49:33","guid":{"rendered":"\/blog\/?p=492"},"modified":"2023-09-21T09:38:43","modified_gmt":"2023-09-21T00:38:43","slug":"kernel-compile","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=492","title":{"rendered":"kernel compile"},"content":{"rendered":"\n<p><span style=\"font-family: Courier New;\">export LINUX_SRC_DIR=\/home\/hasu0707\/openwrt\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/linux-ramips_rt305x\/linux-3.10.36<\/span><br \/><span style=\"font-family: Courier New;\">export INCLUDE_DIR=\/home\/hasu0707\/openwrt\/staging_dir\/host\/include<\/span><br \/><span style=\"font-family: Courier New;\">export OUTPUT_DIR=\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/linux-ramips_rt305x<\/span><br \/><br \/><span style=\"font-family: Courier New;\">make -C ${LINUX_SRC_DIR} \\<\/span><br \/><span style=\"font-family: Courier New;\">HOSTCFLAGS=\"-O2 -I${INCLUDE_DIR} -Wall -Wmissing-prototypes -Wstrict-prototypes\" \\<\/span><br \/><span style=\"font-family: Courier New;\">CROSS_COMPILE=\"mipsel-openwrt-linux-uclibc-\" \\<\/span><br \/><span style=\"font-family: Courier New;\">ARCH=\"mips\" \\<\/span><br \/><span style=\"font-family: Courier New;\">KBUILD_HAVE_NLS=no \\<\/span><br \/><span style=\"font-family: Courier New;\">CONFIG_SHELL=\"\/bin\/bash\" \\<\/span><br \/><span style=\"font-family: Courier New;\">V=''<\/span><br \/><br \/><span style=\"font-family: Courier New;\">mipsel-openwrt-linux-uclibc-objcopy \\<\/span><br \/><span style=\"font-family: Courier New;\">-O binary \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .reginfo \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .notes \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .note \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .comment \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .mdebug \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .note.gnu.build-id \\<\/span><br \/><span style=\"font-family: Courier New;\">-S ${OUTPUT_DIR}\/linux-3.10.36\/vmlinux \\<\/span><br \/><span style=\"font-family: Courier New;\">${OUTPUT_DIR}\/vmlinux<\/span><br \/><br \/><span style=\"font-family: Courier New;\">mipsel-openwrt-linux-uclibc-objcopy \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .reginfo \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .notes \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .note \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .comment \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .mdebug \\<\/span><br \/><span style=\"font-family: Courier New;\">-R .note.gnu.build-id \\<\/span><br \/><span style=\"font-family: Courier New;\">-S ${OUTPUT_DIR}\/linux-3.10.36\/vmlinux \\<\/span><br \/><span style=\"font-family: Courier New;\">${OUTPUT_DIR}\/vmlinux.elf<\/span><\/p><p><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>export LINUX_SRC_DIR=\/home\/hasu0707\/openwrt\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/linux-ramips_rt305x\/linux-3.10.36export INCLUDE_DIR=\/home\/hasu0707\/openwrt\/staging_dir\/host\/includeexport OUTPUT_DIR=\/build_dir\/target-mipsel_24kec+dsp_uClibc-0.9.33.2\/linux-ramips_rt305x make -C ${LINUX_SRC_DIR} \\HOSTCFLAGS=&#8221;-O2 -I${INCLUDE_DIR} -Wall -Wmissing-prototypes -Wstrict-prototypes&#8221; \\CROSS_COMPILE=&#8221;mipsel-openwrt-linux-uclibc-&#8221; \\ARCH=&#8221;mips&#8221; \\KBUILD_HAVE_NLS=no \\CONFIG_SHELL=&#8221;\/bin\/bash&#8221; \\V=&#8221; mipsel-openwrt-linux-uclibc-objcopy \\-O binary \\-R .reginfo \\-R .notes \\-R .note \\-R .comment \\-R .mdebug \\-R .note.gnu.build-id \\-S ${OUTPUT_DIR}\/linux-3.10.36\/vmlinux \\${OUTPUT_DIR}\/vmlinux mipsel-openwrt-linux-uclibc-objcopy \\-R .reginfo \\-R .notes \\-R .note \\-R .comment \\-R .mdebug \\-R .note.gnu.build-id \\-S ${OUTPUT_DIR}\/linux-3.10.36\/vmlinux \\${OUTPUT_DIR}\/vmlinux.elf<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[21],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-development_openwrt"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}