build: Move patches to <patch-repos> dir 35/21335/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 27 Aug 2016 15:13:32 +0000 (17:13 +0200)
committerMichal Skalski <mskalski@mirantis.com>
Sat, 17 Sep 2016 20:20:53 +0000 (20:20 +0000)
commitf9326c161e2e8ed039499d30cced7c2553874e26
tree1dd33d9050fda14d91c0a23c4e00a7becd76dbb3
parent269773ffd3bbd267aeee21b49f83783c064c04c6
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.

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

Change-Id: I5e4adc7285054777c3898592ed48482ccd2b706f
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 52701ce099ac455aa393aac34d684f5d59b3d2fe)
build/Makefile
build/patch-repos/0010-bootstrap_admin_node.sh.patch [moved from build/bootstrap_admin_node.sh.patch with 100% similarity]
build/patch-repos/0020-isolinux.cfg.patch [moved from build/isolinux.cfg.patch with 100% similarity]
build/patch-repos/0030-repo-multi-arch-local-mirrors.patch [moved from build/repo-multi-arch-local-mirrors.patch with 100% similarity]
build/patch-repos/build/repos/fuel-nailgun/0010-Mark-Intel-82599-10-Gigabit-NIC-as-DPDK-capable.patch [moved from build/Mark-Intel-82599-10-Gigabit-NIC-as-DPDK-capable.patch with 100% similarity]