Sailfish OS 移植中(3)- 更新和各种杂务续篇

栏目: 编程工具 · 发布时间: 6年前

内容简介:如果 Target 更新了该怎么办? _(:з」∠)_每次刷机都要重新设置和看一遍教程很烦? 在教程画面从左上角顺时针点按屏幕即可跳过(大嘘

如果 Target 更新了该怎么办? _(:з」∠)_

咱该怎么知道 Target 更新了呢?

https://releases.sailfishos.org/sdk/targets/ 有各个版本 SDK 的列表。

在 Platform SDK Shell 里运行:

# sdk-assistant 方式
$ sdk-assistant update <target-name>
# sdk-manage 方式
$ sdk-manage tooling update <name>
$ sdk-manage target update <name>
当然要是布星的话把 /srv/mer 删了重新来一遍也行啊 ……

更新源代码和 submodules

切换到 libybris 的目录,然后运行 repo sync --fetch-submodules

  • 记得先提交汝的修改。

还有一些 submodule 需要更新:

  • rpm/dhd
  • hybris/droid-configs/droid-configs-device
  • hybris/droid-hal-version-$VENDOR-$device/droid-hal-version

在这些目录里运行:

# git remote -v 获得远程分支
$ git remote -v
github      https://github.com/mer-hybris/droid-hal-configs (fetch)
github      https://github.com/mer-hybris/droid-hal-configs (push)

# 拉取远程的源代码
$ git fetch github
$ git pull github master

然后把 hybris-boot 和 droid-hal 重新打包一下就好(忘了怎么搞? 去翻翻以前的文章或者文档吧 :joy:)

每次刷机都要重新设置和看一遍教程很烦? 在教程画面从左上角顺时针点按屏幕即可跳过(大嘘

hybris-15.1 移植的相关事项

在编译 hybris-hal 之前:

cd $ANDROID_ROOT
mkdir -p hybris/mw
cd hybris/mw
git clone --recurse-submodules https://github.com/mer-hybris/libhybris.git -b android8-initial

以及不要在 build_package.sh 时编译 libhybris ,而是先手动单独编译:

rpm/dhd/helper/build_packages.sh  -b hybris/mw/libhybris/

然后再编译剩下的包(记得跳过 libhybris)。

When running build_package.sh always skip building libhybris and instead run in PLATFORM_SDK

接着把 https://github.com/mer-hybris/droid-config-sony-nile/tree/master/sparse/usr/libexec/droid-hybris/system/etc/init 复制到汝的 config repo 然后运行:

build_packages.sh -c

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Lean Startup

The Lean Startup

Eric Ries / Crown Business / 2011-9-13 / USD 26.00

更多中文介绍:http://huing.com Most startups fail. But many of those failures are preventable. The Lean Startup is a new approach being adopted across the globe, chan ging the way companies are built and ......一起来看看 《The Lean Startup》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具