{"id":1039,"date":"2022-11-11T11:38:08","date_gmt":"2022-11-11T03:38:08","guid":{"rendered":"https:\/\/www.iotot.com\/?p=1039"},"modified":"2022-11-11T11:38:08","modified_gmt":"2022-11-11T03:38:08","slug":"%e6%9c%ac%e5%9c%b0-android-repo-%e4%bb%93%e5%ba%93%e8%bf%81%e7%a7%bb%e3%80%81%e6%81%a2%e5%a4%8d%e6%ba%90%e7%a0%81%e6%a0%91","status":"publish","type":"post","link":"https:\/\/blog.iotot.com\/?p=1039","title":{"rendered":"\u672c\u5730 Android repo \u4ed3\u5e93\u8fc1\u79fb\u3001\u6062\u590d\u6e90\u7801\u6811"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\u524d\u8a00\r\n\u672c\u7bc7\u8bb0\u5f55\u5982\u4f55\u8fc1\u79fb\u672c\u5730 Android repo \u4ed3\u5e93\uff0c\u5bf9\u6b64\u8fc7\u7a0b\u505a\u4ee5\u8bb0\u5f55\uff0c\u8c28\u9632\u5907\u4efd\u3002\r\n\u6b64\u8fc1\u79fb\u7684\u57fa\u7840\u662f\u672c\u5730 repo \u4ed3\u5e93\u662f\u6b63\u5e38\u4f7f\u7528\u3001\u5e76git\u7ba1\u7406\u5404\u5b50\u9879\u76ee,\u5728\u8fc1\u79fb\u524d\u628a\r\n\u5b50\u9879\u76ee commit \u5b8c\u6210\u3002\r\n\r\n\u7b2c\u4e00\u6b65 \u538b\u7f29\u672c\u5730 repo \u4ed3\u5e93\r\ntar -zcvf repo.tar.gz .repo\/*\r\n1\r\n\u7b2c\u4e8c\u6b65 \u62f7\u8d1d\u538b\u7f29\u6587\u4ef6\u5230\u5f00\u53d1\u670d\u52a1\u5668\u865a\u62df\u673a\u5e76\r\nscp repo.tar.gz robox@192.168.88.253:\/home\/robox\/android_build\r\ntar -zxvf repo.tar.gz\r\n1\r\n2\r\n#\u7b2c\u4e09\u6b65 \u642d\u5efa repo \u53c2\u8003\u73af\u5883\r\n\u5728 home\/robox \u8def\u5f84\u4e0b\uff0c\u521b\u5efa\u73af\u5883\r\n\r\n$ mkdir bin &amp;&amp; cd bin\r\n$ curl https:\/\/storage.googleapis.com\/git-repo-downloads\/repo &gt; ~\/bin\/repo\r\n$ chmod a+x ~\/bin\/repo\r\n$ export PATH=${PATH}:~\/bin\r\n1\r\n2\r\n3\r\n4\r\n\u9a8c\u8bc1 repo \u73af\u5883\r\n\r\nrobox@robox-Vostro-3681:~\/android_build$ repo help\r\nusage: repo COMMAND [ARGS]\r\nThe most commonly used repo commands are:\r\n  abandon        Permanently abandon a development branch\r\n  branch         View current topic branches\r\n  branches       View current topic branches\r\n  checkout       Checkout a branch for development\r\n  cherry-pick    Cherry-pick a change.\r\n  diff           Show changes between commit and working tree\r\n  diffmanifests  Manifest diff utility\r\n  download       Download and checkout a change\r\n  gitc-delete    Delete a GITC Client.\r\n  gitc-init      Initialize a GITC Client.\r\n  grep           Print lines matching a pattern\r\n  info           Get info on the manifest branch, current branch or unmerged branches\r\n  init           Initialize a repo client checkout in the current directory\r\n  list           List projects and their associated directories\r\n  overview       Display overview of unmerged project branches\r\n  prune          Prune (delete) already merged topics\r\n  rebase         Rebase local branches on upstream branch\r\n  smartsync      Update working tree to the latest known good revision\r\n  stage          Stage file(s) for commit\r\n  start          Start a new branch for development\r\n  status         Show the working tree status\r\n  sync           Update working tree to the latest revision\r\n  upload         Upload changes for code review\r\nSee 'repo help &lt;command&gt;' for more information on a specific command.\r\nSee 'repo help --all' for a complete list of recognized commands.\r\nBug reports: https:\/\/bugs.chromium.org\/p\/gerrit\/issues\/entry?template=Repo+tool+issue\r\n\r\n1\r\n2\r\n3\r\n4\r\n5\r\n6\r\n7\r\n8\r\n9\r\n10\r\n11\r\n12\r\n13\r\n14\r\n15\r\n16\r\n17\r\n18\r\n19\r\n20\r\n21\r\n22\r\n23\r\n24\r\n25\r\n26\r\n27\r\n28\r\n29\r\nrepo\u73af\u5883\u6b63\u5e38\u3002\r\n\r\n\u7b2c\u56db\u6b65 \u6062\u590d repo \u4ed3\u5e93\u6e90\u7801\r\n\u5728 home\/robox\/android_build \u8def\u5f84\u4e0b\u8fd8\u539f\u6e90\u7801\r\n\r\n$ repo sync -l\r\n1\r\n\u6e90\u7801\u8fd8\u539f\u540e\u3001\u9a8c\u8bc1\u4ee3\u7801\u5206\u652f\r\n\r\nrobox@robox-Vostro-3681:~\/android_build$ repo branch\r\n   virtualMachine            | in all projects\r\n1\r\n2\r\n\u7b2c\u4e94\u6b65 \u5b89\u88c5android\u7f16\u8bd1\u73af\u5883\u4f9d\u8d56\u5305\u3001\u5e76\u7f16\u8bd1android\u955c\u50cf\r\n#sudo apt-get install flex bison gperf build-essential tofrodos python-markdown libxml2-utils xsltproc\r\n# sudo apt-get install zlib1g-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev\r\n# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 uuid uuid-dev\r\n# sudo apt-get install gcc-multilib g++-multilib\r\n# sudo apt-get install openssh-server openssh-client\r\n# sudo apt-get install liblzo2-2 liblzo2-dev lzop zlib1g-dev liblz-dev\r\n# sudo apt-get install git-core curl subversion\r\n# sudo apt-get install u-boot-tools mtd-utils device-tree-compiler\r\n# sudo apt-get install android-tools-fsutils\r\n# sudo apt-get install openjdk-8-jdk\r\n# sudo apt-get install aptitude\r\n# sudo aptitude install libcurl4-openssl-dev nss-updatedb\r\n1\r\n2\r\n3\r\n4\r\n5\r\n6\r\n7\r\n8\r\n9\r\n10\r\n11\r\n12\r\n\u7f16\u8bd1 android \u955c\u50cf\r\n\r\n\u89e3\u51b3\u9519\u8bef\r\n\u7531\u4e8e androoi \u6e90\u7801\u662f nxp \u5f00\u6e90\u4ee3\u7801\uff0c\u65e9\u671f\u642d\u5efa\u73af\u5883\u65f6\uff0c\u5176\u4e2d vendor\/nxp \u76ee\u5f55\u95ed\u6e90\u7684 *.bin \u6587\u4ef6\u5185\u5bb9\r\n\u5e76\u6ca1\u6709\u5728repo\u4ed3\u5e93\u4e2d\uff0c\u9700\u8981\u624b\u5de5\u538b\u7f29\u6b64\u90e8\u5206\u5185\u5bb9\uff0c\u8986\u76d6 home\/robox\/android_build\/vendor\/nxp \u6587\u4ef6\u5939\r\n\u5185\u5bb9\u3002\r\n\u518d\u6b21\u7f16\u8bd1 android \u6e90\u7801\u6210\u529f\uff0c\u672c\u6b21 repo \u4ed3\u5e93\u8fc1\u79fb\u6210\u529f,\u66f4\u6362\u6027\u80fd\u66f4\u5f3a\u608d\u7684\u670d\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u672c\u7bc7\u8bb0\u5f55\u5982\u4f55\u8fc1\u79fb\u672c\u5730 Android repo \u4ed3\u5e93\uff0c\u5bf9\u6b64\u8fc7\u7a0b\u505a\u4ee5\u8bb0\u5f55\uff0c\u8c28\u9632\u5907\u4efd\u3002 \u6b64\u8fc1\u79fb\u7684\u57fa\u7840\u662f\u672c\u5730  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/1039"}],"collection":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1039"}],"version-history":[{"count":2,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/1039\/revisions"}],"predecessor-version":[{"id":1042,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/1039\/revisions\/1042"}],"wp:attachment":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}