Skip to contentSkip to conversation

How to handle a http git repository

DISCUSSION Andreas Mueller 2 participants 3 messages Apr 13, 2011 – Apr 14, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I would like to build u-boot for freescale iMX28 with OE. There is u-boot support available at

http://opensource.freescale.com/pub/scm/imx/uboot-imx.git/

Problem is that it links to the *files* of a git repo not to the repo itself. A manual git clone works but I do not find a good approach fetching the repo in OE.

I could do something like

do_fetch () {
	cd ${WORKDIR}
	git clone http://opensource.freescale.com/pub/scm/imx/uboot-imx.git
	cd uboot-imx
	git checkout imx_v2009.08_10.12.01
}

but (one of) the great disadvantage(s) of this hack is fetching on every build.

Can anybody help me with a hint?

Thanks in advance

Andreas

#1 lore raw
Quoted 10 lines · Andreas Mueller

Hi,

I would like to build  u-boot for freescale iMX28 with OE.  There is u-boot support available at

http://opensource.freescale.com/pub/scm/imx/uboot-imx.git/

Problem is that it links to the *files* of a git repo not to the repo itself. A manual git clone works but I do not find a good approach fetching the repo in OE.

Quoted 9 lines

I could do something like

do_fetch () {
       cd ${WORKDIR}
       git clone http://opensource.freescale.com/pub/scm/imx/uboot-imx.git
       cd uboot-imx
       git checkout imx_v2009.08_10.12.01
}

SRC_URI = "git://opensource.freescale.com/pub/scm/imx/uboot-imx.git;protocol=http;tag=imx_v2009.08_10.12.01"

Quoted 13 lines

but (one of) the great disadvantage(s) of this hack is fetching on every build.

Can anybody help me with a hint?

Thanks in advance

Andreas

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 3 lines · On Thursday 14 April 2011 00:59:01 Khem Raj wrote:

SRC_URI = "git://opensource.freescale.com/pub/scm/imx/uboot-imx.git;protocol=http;ta g=imx_v2009.08_10.12.01"

Thanks (getting red & muttering that I was so close..)

Andreas