How to mirror SDK 2.0 git repository?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to mirror SDK 2.0 git repository?

2,264 Views
pro-supportengi
NXP Employee
NXP Employee

We need to mirror the SDK 2.0 repository, what is the best way to pick up all components for the repository and be able to clone the SDK 2.0 repo. each new release to add to our mirror of the SDK 2.0 repository?

Here are the issues:

1)  The public NXP repository contains individual repos and not one repo for the SDK 2.0

git clone http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git

Clone:

git://git.freescale.com/ppc/sdk/linux.git

http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git

2)  The SDK 2.0 tag is not used by each of the sdk repos

3)  If one clones each of these repos, then the repos have to be pulled together into the SDK 2.0 directory structure and

one has to attempt to build the repo from this combined .git repo directory structure.  This may or may not include the yocto build environment?

The repos are individual repos and not combined  into one SDK 2.0 repo. 

Is there a location on the public repo, or a way to set up one buildable SDK git repo from the public repo without having to clone each .git and piece together a directory structure to build SDK 2.0?

The public repo isn’t one SDK 2.0 repo but n number of component .git repos.  Each repo is at the same level in the sdk directory structure and they don't create a heirarchitical directotry structure.  We need to mirror a  NXP repo for the QorIQ SDK for our git repository and easily build the SDK 2.0.  How do we do this with the current public repo structure once it is cloned? 

At the very least a complete list of .git repos included in the SDK 2.0 that are listed under the ppc/sdk public repo are needed so we can piece together a repo and then build?

NXP uses a tag fsl-sdk-v2.0 tag for the kernel, but it is not consistently used for the SDK 2.0 component. For instance, gdb uses the tag but not gcc.  So, this is not very helpful.

Labels (2)
Tags (1)
4 Replies

535 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello pro-supportengineer,

We have an internal Yocto git tree, please refer to fsl-yocto-repo.git - Yocto Project Manifest , git address git://git.freescale.com/yocto/fsl-yocto-repo.git, tag fsl-sdk-v2.0-public.

The user also could use repo to manage these git repositories, please refer to http://sw-stash.freescale.net/projects/SDK/repos/sdk-devel/browse/default.xml?at=sdk-v2.0.x .


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

535 Views
yipingwang
NXP TechSupport
NXP TechSupport

Install the `repo` utility:

$: mkdir ~/bin

$: curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

$: chmod a+x ~/bin/repo

$: PATH=${PATH}:~/bin

 

git clone git://git.freescale.com/yocto/fsl-yocto-repo.git -b fsl-sdk-v2.0-public

git checkout -b fsl-sdk-v2.0-public

repo init -u http://sw-stash.freescale.net/scm/sdk/sdk-devel.git  -b sdk-v2.0.x

repo sync --no-clone-bundle

Please refer to this readme file http://sw-stash.freescale.net/projects/SDK/repos/sdk-devel/browse?at=sdk-v2.0.x .


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

535 Views
pro-supportengi
NXP Employee
NXP Employee

git clone git://git.freescale.com/yocto/fsl-yocto-repo.git -b fsl-sdk-v2.0-public

git checkout -b fsl-sdk-v2.0-public

repo init -u http://sw-stash.freescale.net/scm/sdk/sdk-devel.git  -b sdk-v2.0.x

repo sync --no-clone-bundle

Receiving the following error when building, why is dpaa failing on this branch?  Need fix for build failure?

 make: ./include/fsl_sec/.Makefile.touch: Command not found
| Makefile:269: recipe for target 'clean' failed
| make: *** [clean] Error 127
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/tlsmith/src/sdk-devel/fsl-yocto-repo/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/usdpaa/git-r4/temp/log.do_configure.119080)
ERROR: Task 1448 (/home/tlsmith/src/sdk-devel/fsl-yocto-repo/sources/meta-freescale/recipes-dpaa/usdpaa/usdpaa_git.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1625 tasks of which 0 didn't need to be rerun and 1 failed.

0 Kudos

535 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello pro-supportengineer,

Regarding your concern previously http://sw-stash.freescale.net/scm/sdk/sdk-devel.git is the internal git address.

The README file in fsl-yocto-repo.git - Yocto Project Manifest is for ARM, it should be modified as the following, this is for external customers, but this repository only contains part of SDK 2.0 packages.

diff --git a/README b/README

index c4c4f6d..af25517 100644

--- a/README

+++ b/README

@@ -12,9 +12,9 @@ $: chmod a+x ~/bin/repo

Download the BSP source:

 

 $: PATH=${PATH}:~/bin

-$: mkdir fsl-arm-yocto-bsp

-$: cd fsl-arm-yocto-bsp

-$: repo init -u git://sw-git.freescale.net/fsl-arm-yocto-bsp.git

+$: mkdir fsl-qoriq-sdk

+$: cd fsl-qoriq-sdk

+$: repo init -u git://git.freescale.com/yocto/fsl-yocto-repo.git -b refs/tags/fsl-sdk-v2.0-public

$: repo sync


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------