common: Remove *_CLEAN_COMMON_FLAGS dependency on *_COMMON_FLAGS

Fixes https://github.com/OP-TEE/build/issues/28.

In common.mk *_CLEAN_COMMON_FLAGS ?= *_COMMON_FLAGS but in the
platform makefiles (e.g. hikey.mk) they're defined as
such:
*_COMMON_FLAGS += x y z
*_CLEAN_COMMON_FLAGS += x

When expanded during a build, *_CLEAN_COMMON_FLAGS becomes
"x y z x". Variables can be repeated, which may be nothing more
than a cosmetic issue, but if any of those variables are make
targets, then 'make clean' will build them before cleaning.

To fix this, we remove the dependency of *_CLEAN_COMMON_FLAGS on
*_COMMON_FLAGS.

Signed-off-by: Victor Chong <victor.chong@linaro.org>
Tested-by: Victor Chong <victor.chong@linaro.org> (hikey)
1 file changed
tree: 8f4c927d3d519931091613e810b99b74ecc5cd90
  1. kconfigs/
  2. .gitignore
  3. common.mk
  4. fvp.mk
  5. hikey.mk
  6. mediatek.mk
  7. qemu-check.exp
  8. qemu.mk
  9. README.md
  10. toolchain.mk
README.md

Contains the necessary build files to handle OP-TEE for various setups, for now, please see manifest/README.md and OP-TEE/README.md for instructions.