fuel/build: Move patches to <patch-repos> dir 79/19679/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 27 Aug 2016 22:18:48 +0000 (00:18 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 27 Aug 2016 23:38:50 +0000 (01:38 +0200)
commitcc9eb2468c6f4fbdb4b8beb10b9aa5cfbbb35c93
tree8467070b66fbe1f1fdbe267e15a4cf678b8f8354
parent75436f65b2bdb5ad7838e0a3a996820164d919c4
fuel/build: Move patches to <patch-repos> dir

Decouple main Makefile and repository patches by moving all Fuel
component patches to a subdir, <patch-repo>.

Proposed structure of <patch-repos> dir:
- patch-repos/*.patch are intended for <fuel-main> git repo;
- patch-repos/build/repo/<fuel-module>/*.patch are intended for
  <fuel-module>, e.g. "fuel-nailgun";

Full list of Fuel submodules supported by this mechanism at [1].

While at it, replace all occurences of </tmp/fuel-main> with
<FUEL_MAIN_DIR> in main Makefile and rewrite a few git/make calls
to use the "-C" arg.

NOTE: `git -C` is available starting with git 1.8.5.

ARMBAND NOTE: This patch will allow us to streamline the process
of moving patches from our repo straight to Fuel@OPNFV.

[1] https://github.com/openstack/fuel-main/blob/stable/mitaka/repos.mk
    #L32-L44

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
patches/opnfv-fuel/0050-build-Move-patches-to-patch-repos-dir.patch [new file with mode: 0644]