Makefile: Add `make upgrade` target 65/49765/4
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 29 Dec 2017 17:17:05 +0000 (18:17 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 29 Dec 2017 19:26:34 +0000 (19:26 +0000)
commit74238bffbde967b83a6c9db762caf8a18430dcd2
tree0cc240960c732cc0c0f30fc74c9fe94b19462786
parentcf261dd7536c1b8b52ac585503b7f8348d56df90
Makefile: Add `make upgrade` target

1. Fix missing default `make` target for `all`

2. `make submodules-clean` should checkout git submodule commit

   On patch apply, we tag the starting commit, so we can later export
   as patches all commits between that reference and another tag,
   applied simmetrically at the  end of the patch apply process.
   Previously, `submodules-clean` checked out that starting tag.
   Change that behavior to use the commit ID referenced by parent
   git repo (armband) submodule, so when armband git submodules are
   updated (e.g. sometimes `make upgrade` might include such changes),
   the new reference will be picked up automatically.

3. Add `make upgrade` for fetching latest changes on current branch

Change-Id: I03dc3953e91acfbe6ccb5e3bb2ccee7d28a0f7d5
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Makefile
armband-fuel-config.mk