Commit a1fea3d4 authored by Andrey Filippov's avatar Andrey Filippov

Merge branch 'master' of git.elphel.com:Elphel/elphel393

parents 2b80829b 0e8f58ea
Note for developers: **To have SSH access to all Elphel's repositories clone this project using SSH**
Note for users: **Some already built firmware images are available [here](http://community.elphel.com/files/393/). Also check [User Manual](https://wiki.elphel.com/wiki/Tmp_manual).**
# elphel393 # elphel393
Installation script for fetching and setting up building environment for elphel393 camera images, The project contains scripts for fetching and setting up build environment that will generate firmware images for Elphel393 camera systems.
it clones and configures several individual repositories, such as
It clones and configures several individual repositories, such as
* https://git.elphel.com/Elphel/linux-elphel * https://git.elphel.com/Elphel/linux-elphel
* https://git.elphel.com/Elphel/x393 * https://git.elphel.com/Elphel/x393
* http://git.yoctoproject.org * http://git.yoctoproject.org
...@@ -8,11 +13,11 @@ it clones and configures several individual repositories, such as ...@@ -8,11 +13,11 @@ it clones and configures several individual repositories, such as
* https://github.com/Xilinx/meta-xilinx * https://github.com/Xilinx/meta-xilinx
* https://git.elphel.com/Elphel/meta-elphel393 * https://git.elphel.com/Elphel/meta-elphel393
The same script pulls updates from these repositories The same script (*setup.py*) pulls updates from these repositories
### Get environment ### Get environment
#### Dependencies #### Dependencies
* poky might require installing some packages, please check with the [Yocto Poky Manual][1] * poky might require installing some packages, please check with the [Yocto Poky Manual](http://www.yoctoproject.org/docs/2.0/mega-manual/mega-manual.html)
* extra requirement * extra requirement
```sh ```sh
...@@ -32,10 +37,9 @@ $ bitbake u-boot device-tree linux-xlnx core-image-elphel393 ...@@ -32,10 +37,9 @@ $ bitbake u-boot device-tree linux-xlnx core-image-elphel393
``` ```
* the results are in *poky/build/tmp/deploy/images/elphel393/* * the results are in *poky/build/tmp/deploy/images/elphel393/*
* for more details, read [**this guide**][2] at [https://wiki.elphel.com][2] * for more details, read [**this guide**][1] at [https://wiki.elphel.com][1]
[1]: http://www.yoctoproject.org/docs/2.0/mega-manual/mega-manual.html [1]: http://wiki.elphel.com/index.php?title=Poky_2.0_manual
[2]: http://wiki.elphel.com/index.php?title=Poky_2.0_manual
### Update and refresh environment ### Update and refresh environment
```sh ```sh
...@@ -49,3 +53,23 @@ $ (if changes in the kernel) bitbake linux-xlnx -c link -f ...@@ -49,3 +53,23 @@ $ (if changes in the kernel) bitbake linux-xlnx -c link -f
$ (if changes in the rootfs and the kernel) bitbake core-image-elphel393 $ (if changes in the rootfs and the kernel) bitbake core-image-elphel393
``` ```
### More info
[**Development for 10393**](https://wiki.elphel.com/wiki/Development_for_10393)
### Support
support-list@support
### Note 1: Switching between GIT protocols (SSH or HTTPS)
To have access to related Elphel's projects over **SSH** clone this project using **SSH**.
For **HTTPS** clone with **HTTPS**.
To change git protocol for all Elphel's projects - change the *remote* of this project accordingly, then run *setup.py*:
```sh
$ git remote -v
$ git remote set-url ...
$ ./setup.py
```
\ No newline at end of file
...@@ -117,6 +117,28 @@ def read_local_conf_dev(conf_file,pattern): ...@@ -117,6 +117,28 @@ def read_local_conf_dev(conf_file,pattern):
ret = line.split("=")[1].strip().strip("\"") ret = line.split("=")[1].strip().strip("\"")
return ret return ret
# reads protocol from the current repository and converts all other projects to this protocol
# https - user/password access
# git - key-based access
def read_git_proto(conf_file,pattern):
ret = "0"
if os.path.isfile(conf_file):
with open(conf_file,"r") as f:
lines = f.readlines()
for line in lines:
if len(line)!=0:
if line.strip()[0]!="#":
pars = line.strip().split("=")
if (len(pars)>1):
# simple test
if pars[0].strip()=='url':
test = pars[1].find(pattern)
if test!=-1:
ret = "1"
print("ogogo! "+pars[1].strip())
return ret
def update_branch(names_from_conf,name_from_list,pars,git_proto): def update_branch(names_from_conf,name_from_list,pars,git_proto):
# GIT host is defined in projects.json, # GIT host is defined in projects.json,
...@@ -155,7 +177,10 @@ else: ...@@ -155,7 +177,10 @@ else:
print("ok") print("ok")
project_branches = read_local_conf("poky/build/conf/local.conf","ELPHEL393_branches") project_branches = read_local_conf("poky/build/conf/local.conf","ELPHEL393_branches")
git_proto = read_local_conf_dev("poky/build/conf/local.conf","ELPHEL393_DEV")
#git_proto = read_local_conf_dev("poky/build/conf/local.conf","ELPHEL393_DEV")
git_proto = read_git_proto(".git/config","git@")
i=0 i=0
for p,v in Projects.items(): for p,v in Projects.items():
i = i + 1 i = i + 1
...@@ -277,13 +302,6 @@ ELPHELGITHOST = "git.elphel.com" ...@@ -277,13 +302,6 @@ ELPHELGITHOST = "git.elphel.com"
# ELPHEL393_branches += "elphel-apps-camogm:framepars" # ELPHEL393_branches += "elphel-apps-camogm:framepars"
# ELPHEL393_branches += "linux-elphel:framepars" # ELPHEL393_branches += "linux-elphel:framepars"
# By default the projects' remotes are set to https.
# To switch to git:// (commit changes to github w/o a password)
# uncomment the following line
# 1 - for git:// - access using a key
# 0 (or commented) - for https:// - access using a password
# ELPHEL393_DEV = "1"
# To change git host edit: projects.json (a copy of projects-default.json) # To change git host edit: projects.json (a copy of projects-default.json)
# New git host must match "^(https:\/\/|git@)(.+)(\/|:)Elphel.*", e.g.: # New git host must match "^(https:\/\/|git@)(.+)(\/|:)Elphel.*", e.g.:
# "https://something.com/Elphel/someproject" or # "https://something.com/Elphel/someproject" or
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment