mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add merge to the git and download modules to merge after a fetch.
Update the RTEMS tools and newlib-git to merge after the fetch.
This commit is contained in:
parent
7f7d388af8
commit
b0f9e30fa4
@ -35,7 +35,7 @@
|
|||||||
#
|
#
|
||||||
# Newlib is from CVS and this is via a git mirror. No hash on GIT
|
# Newlib is from CVS and this is via a git mirror. No hash on GIT
|
||||||
#
|
#
|
||||||
%source set newlib git://sourceware.org/git/newlib.git?fetch?reset=hard?branch=master?checkout=%{newlib_version}
|
%source set newlib git://sourceware.org/git/newlib.git?fetch?reset=hard?merge?branch=master?checkout=%{newlib_version}
|
||||||
|
|
||||||
#
|
#
|
||||||
# The gcc/newlib build instructions. We use 4.9 Release 1.
|
# The gcc/newlib build instructions. We use 4.9 Release 1.
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
%define rtems_tools_version HEAD
|
%define rtems_tools_version HEAD
|
||||||
%define rtems_tools_git_checkout %{nil}
|
%define rtems_tools_git_checkout %{nil}
|
||||||
%endif
|
%endif
|
||||||
%source set rtems-tools git://git.rtems.org/rtems-tools.git?fetch?reset=hard?branch=master%{rtems_tools_git_checkout}
|
%source set rtems-tools git://git.rtems.org/rtems-tools.git?fetch?reset=hard?merge?branch=master%{rtems_tools_git_checkout}
|
||||||
|
|
||||||
#
|
#
|
||||||
# The RTEMS Tools build instructions. We use GIT Release 1.
|
# The RTEMS Tools build instructions. We use GIT Release 1.
|
||||||
|
@ -423,10 +423,6 @@ def _git_downloader(url, local, config, opts):
|
|||||||
log.notice('git: checkout: %s => %s' % (us[0], _as[1]))
|
log.notice('git: checkout: %s => %s' % (us[0], _as[1]))
|
||||||
if _do_download(opts):
|
if _do_download(opts):
|
||||||
repo.checkout(_as[1])
|
repo.checkout(_as[1])
|
||||||
elif _as[0] == 'pull':
|
|
||||||
log.notice('git: pull: %s' % (us[0]))
|
|
||||||
if _do_download(opts):
|
|
||||||
repo.pull()
|
|
||||||
elif _as[0] == 'submodule':
|
elif _as[0] == 'submodule':
|
||||||
if len(_as) != 2:
|
if len(_as) != 2:
|
||||||
raise error.general('invalid git submodule: %s' % (_as))
|
raise error.general('invalid git submodule: %s' % (_as))
|
||||||
@ -437,6 +433,14 @@ def _git_downloader(url, local, config, opts):
|
|||||||
log.notice('git: fetch: %s -> %s' % (us[0], rlp))
|
log.notice('git: fetch: %s -> %s' % (us[0], rlp))
|
||||||
if _do_download(opts):
|
if _do_download(opts):
|
||||||
repo.fetch()
|
repo.fetch()
|
||||||
|
elif _as[0] == 'merge':
|
||||||
|
log.notice('git: merge: %s' % (us[0]))
|
||||||
|
if _do_download(opts):
|
||||||
|
repo.merge()
|
||||||
|
elif _as[0] == 'pull':
|
||||||
|
log.notice('git: pull: %s' % (us[0]))
|
||||||
|
if _do_download(opts):
|
||||||
|
repo.pull()
|
||||||
elif _as[0] == 'reset':
|
elif _as[0] == 'reset':
|
||||||
arg = []
|
arg = []
|
||||||
if len(_as) > 1:
|
if len(_as) > 1:
|
||||||
|
@ -78,6 +78,9 @@ class repo:
|
|||||||
def fetch(self):
|
def fetch(self):
|
||||||
ec, output = self._run(['fetch'], check = True)
|
ec, output = self._run(['fetch'], check = True)
|
||||||
|
|
||||||
|
def merge(self):
|
||||||
|
ec, output = self._run(['merge'], check = True)
|
||||||
|
|
||||||
def pull(self):
|
def pull(self):
|
||||||
ec, output = self._run(['pull'], check = True)
|
ec, output = self._run(['pull'], check = True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user