vboot: get rid of MINIMAL in Makefile

- Clean up install paths.  The ebuild was adding /usr in the
  MINIMAL=1 case, making it look virtually exactly the same
  as the non-MINIMAL case.  Just unify the two.

- Introduce SDK_BUILD variable to take over part of the
  functionality previously implemented by MINIMAL.

- One may now use rununittests for quick test runs instead
  of setting MINIMAL=1.

- runtestscripts is added to the default test set under
  "runtests".  runfutiltests is not yet enabled due to
  flakiness (see chromium:1048048).

- Remove unused LZMA_LIBS and YAML_LIBS.

- Stop installing dev-mode-only scripts into /usr/bin for
  an SDK build (VB_DIR).  Presumably this was meant for board
  builds, but since everyone is used to these scripts living
  in /usr/share/vboot/bin, we may as well keep them there.

- Stop installing crossystem for an SDK build.

- Group SIGNING_SCRIPTS into UTIL_SCRIPTS_BOARD.

- Have install_for_test depend on test_setup instead of
  vice versa.  Targets which run tests should depend on
  install_for_test.

BUG=b:124141368, chromium:605348, chromium:1048048
TEST=make clean && make runtests
TEST=make clean && make rununittests
TEST=sudo emerge vboot_reference, check installed files
TEST=emerge-eve vboot_reference, check installed files
TEST=USE=fuzzer emerge-eve vboot_reference
TEST=FEATURES=test USE=fuzzer emerge-eve vboot_reference
BRANCH=none

Change-Id: I203e69143e40ee42729488bf0ab59f5120649bd1
Cq-Depend: chromium:2012183
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2012182
Reviewed-by: Joel Kitching <kitching@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
2 files changed