{"id":9799,"date":"2023-06-26T11:37:33","date_gmt":"2023-06-26T03:37:33","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799"},"modified":"2024-03-11T14:57:40","modified_gmt":"2024-03-11T06:57:40","slug":"build-rk3399-all-sh%e8%84%9a%e6%9c%ac%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799","title":{"rendered":"build-rk3399-all.sh\u811a\u672c\u5206\u6790"},"content":{"rendered":"<p>\u7f16\u8bd1\u6d41\u7a0b\uff1a<a href=\"http:\/\/www.noobyard.com\/article\/p-zjbidapj-ms.html\">http:\/\/www.noobyard.com\/article\/p-zjbidapj-ms.html<\/a><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_16 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799\/#%E4%B8%80%E3%80%81%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%AA%A4\" title=\"\u4e00\u3001\u57fa\u672c\u6b65\u9aa4\">\u4e00\u3001\u57fa\u672c\u6b65\u9aa4<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799\/#%E4%B8%89%E3%80%81%E6%B5%81%E7%A8%8B%E8%AF%A6%E8%A7%A3\" title=\"\u4e09\u3001\u6d41\u7a0b\u8be6\u89e3\">\u4e09\u3001\u6d41\u7a0b\u8be6\u89e3<\/a><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799\/#%E4%BA%A7%E5%93%81%E9%85%8D%E7%BD%AE\" title=\"\u4ea7\u54c1\u914d\u7f6e\">\u4ea7\u54c1\u914d\u7f6e<\/a><ul class=\"ez-toc-list-level-5\"><li class=\"ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799\/#%E8%84%9A%E6%9C%AC%E5%8F%8A%E5%91%BD%E4%BB%A4\" title=\"\u811a\u672c\u53ca\u547d\u4ee4\">\u811a\u672c\u53ca\u547d\u4ee4<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799\/#%E7%9B%B8%E5%85%B3mk%E6%96%87%E4%BB%B6\" title=\"\u76f8\u5173mk\u6587\u4ef6\">\u76f8\u5173mk\u6587\u4ef6<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=9799\/#%E7%BC%96%E8%AF%91android\" title=\"\u7f16\u8bd1android\">\u7f16\u8bd1android<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"%E4%B8%80%E3%80%81%E5%9F%BA%E6%9C%AC%E6%AD%A5%E9%AA%A4\"><\/span>\u4e00\u3001\u57fa\u672c\u6b65\u9aa4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>1.\u7f16\u8bd1uboot<br \/>\n2.\u73af\u5883\u914d\u7f6e<\/p>\n<pre><code class=\"language-bash\">source build\/envsetup.sh &gt;\/dev\/null &amp;&amp; setpaths\nlunch rk3399_box-userdebug<\/code><\/pre>\n<p>3.\u7f16\u8bd1kernel<br \/>\n4.\u7f16\u8bd1android<br \/>\n\u6ce8\u610fandroid\u7f16\u8bd1\u4e4b\u524d\u53c8\u91cd\u65b0\u6267\u884c\u4e86\u4e00\u6b21\u4e24\u6837\u7684\u4ea7\u54c1\u914d\u7f6e<br \/>\n5.\u4f7f\u7528mkimage.sh\u8c03\u7528\u5404\u79cd\u955c\u50cf\u751f\u6210\u5de5\u5177\u751f\u6210\u955c\u50cf\u6587\u4ef6<br \/>\n6.\u4f7f\u7528mkupdate.sh\u751f\u6210update.img\uff08\u53ef\u76f4\u63a5\u5237\u673a\u7684\u955c\u50cf\uff09<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E4%B8%89%E3%80%81%E6%B5%81%E7%A8%8B%E8%AF%A6%E8%A7%A3\"><\/span>\u4e09\u3001\u6d41\u7a0b\u8be6\u89e3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"%E4%BA%A7%E5%93%81%E9%85%8D%E7%BD%AE\"><\/span>\u4ea7\u54c1\u914d\u7f6e<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>lunch\u5b8c\u4e4b\u540e\u7684\u4ea7\u54c1\u4fe1\u606f\u4e3ark3399_box.mk<\/p>\n<h5><span class=\"ez-toc-section\" id=\"%E8%84%9A%E6%9C%AC%E5%8F%8A%E5%91%BD%E4%BB%A4\"><\/span>\u811a\u672c\u53ca\u547d\u4ee4<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<ul>\n<li>\n<p>envsetup.sh\u811a\u672c<br \/>\n\u81ea\u8eab\u4f1a\u901a\u8fc7add_lunch_combo\u65b9\u6cd5\u751f\u6210\u4e00\u4e9b\u9ed8\u8ba4\u7684\u4ea7\u54c1\u914d\u7f6e\u4fe1\u606f\uff0c\u811a\u672c\u7684\u6700\u540e\u4f1a\u904d\u5386device\u3001vendor\u3001product\u76ee\u5f55\u4e0b\u9762\u7684vendorsetup.sh\u6587\u4ef6\u7136\u540einclude\u3002<\/p>\n<\/li>\n<li>\n<p>lunch\u547d\u4ee4<\/p>\n<\/li>\n<\/ul>\n<p>1.printconfig\u539f\u7406\uff1a\u4f9d\u8d56\u4e8ebuild_build_var_cache\u65b9\u6cd5\u751f\u6210\u7684\u53d8\u91cf\uff0c\u5176\u4e2ddumpvar.mk\u6587\u4ef6\u4e2d\u4f1a\u751f\u6210\u6253\u5370\u4ea7\u54c1\u914d\u7f6e\u4fe1\u606f\u7684\u53d8\u91cf<\/p>\n<pre><code class=\"language-bash\">@echo &quot;$(DUMP_VAR_PREFIX)report_config=\\`$(report_config_sh)\\`&quot;<\/code><\/pre>\n<h5><span class=\"ez-toc-section\" id=\"%E7%9B%B8%E5%85%B3mk%E6%96%87%E4%BB%B6\"><\/span>\u76f8\u5173mk\u6587\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<ul>\n<li>app.mk<br \/>\n\u4f1a\u5c06\u4e00\u4e9b\u7a0b\u5e8f\u53carc\u6587\u4ef6\u62f7\u8d1d\u5230\u6839\u6587\u4ef6\u7cfb\u7edf<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"%E7%BC%96%E8%AF%91android\"><\/span>\u7f16\u8bd1android<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u6e90\u7801\u6839\u76ee\u5f55\u6267\u884cmake\uff0c\u8c03\u7528\u6839\u76ee\u5f55\u7684Makefile\uff0c\u7136\u540e\u8c03\u7528<code>build\/core\/main.mk<\/code>\u3002<\/p>\n<p>build\/core\/main.mk\u7684\u9ed8\u8ba4\u76ee\u6807\u4e3a\uff1a<\/p>\n<pre><code class=\"language-bash\">DEFAULT_GOAL := droid\n$(DEFAULT_GOAL): droid_targets<\/code><\/pre>\n<p>\u7136\u540e\u6839\u636e\u662f\u5426\u5b9a\u4e49<code>TARGET_BUILD_APPS<\/code>\uff0cdroid_targets\u4f1a\u4ea7\u751f\u4e0d\u540c\u7684\u4f9d\u8d56\u3002<\/p>\n<pre><code class=\"language-bash\">ifneq ($(TARGET_BUILD_APPS),)\n    droid_targets: apps_only\nelse\n    # Building a full system-- the default is to build droidcore\n    droid_targets: droidcore dist_files\nendif<\/code><\/pre>\n<blockquote>\n<p>\u4f9d\u8d56\u5173\u7cfb\u6811\u5f62\u56fe\uff1a<\/p>\n<\/blockquote>\n<p>\u53c2\u7167<a href=\"https:\/\/www.cnblogs.com\/Oude\/p\/12553545.html\">https:\/\/www.cnblogs.com\/Oude\/p\/12553545.html<\/a><\/p>\n<p>droid_targets<br \/>\n&emsp;##droidcore \uff08Build files and then package it into the rom formats\uff09<br \/>\n&nbsp;&emsp;&emsp;##files<br \/>\n&nbsp;&emsp;&emsp;##systemimage \uff08\u76ee\u6807\u5b9a\u4e49\u5728build\/core\/Makefile\u4e2d\uff09<br \/>\n&nbsp;&emsp;&emsp;##\u5404\u79cd\u955c\u50cf\u6587\u4ef6<br \/>\n&emsp;##dist_files \uff08putting your library into the dist directory with a full build.\u5b8c\u6574\u7f16\u8bd1\u7cfb\u7edf\u7684\u65f6\u5019\u62f7\u8d1d\u5e93\u6587\u4ef6\uff09<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"9799\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u7f16\u8bd1\u6d41\u7a0b\uff1ahttp:\/\/www.noobyard.com\/article\/p-zjbidapj-ms [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[784],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/9799"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9799"}],"version-history":[{"count":25,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/9799\/revisions"}],"predecessor-version":[{"id":12375,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/9799\/revisions\/12375"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9799"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}