LoginSignup
0
0

More than 3 years have passed since last update.

社内環境でGitLabからYoctoへgit cloneする話

Last updated at Posted at 2020-01-22

大雑把に下記のようなテンプレートでbbファイルを作成しました。

DESCRIPTION = ""
HOMEPAGE = ""

LICENSE = "CLOSED"

DEPENDS = ""

S = "${WORKDIR}/git/"

SRC_URI = ""

SRCREV = ""

inherit autotools

自分の場合だと、SRC_URIの記述方法で突っかかった。
元々社内で建てたサーバーからのgit cloneは成功していました。

サーバーは公開鍵認証方式を利用してますので、protocolはsshです。
何も記入しない(default)とprotocolはgitになります。defaultだと社内の場合、プロキシ設定が必要になると思います。

SRC_URI = "git://xxx.yyy.zzz.jp/home/project.git;protocol=ssh"

GitLabをyoctoへgit cloneする場合はgit@が必要っぽいです。
こちらのGitLabのサーバーも公開鍵認証方式を利用しています。

SRC_URI = "git://git@gitlaburl.com/project.git;protocol=ssh;branch=master"

参考文献
http://gopinaths.gitlab.io/post/yocto_tips/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0