The 'ROOT_OUT' variable does not allow to set the folder in
which all output files (objects, binaries, etc.) are built
and placed.
Overriding it from the command-line leads to 'build' folders
of the name set that are created in the tree eventually leading
to a failure during the build. This patch changes how the
output directory is constructed so that *all* output files
are put in there. It introduces a new variable called
'BUILD_DIR' to that effect.
It also incidentally fix the fact that 'make clean' only removes
that output directory which means it does not properly clean up
the tree if one overrides the 'ROOT_OUT' variable manually today.
To change where the build artefacts are placed, set 'BUILD_DIR'
to whatever you want, e.g.:
$ make BUILD_DIR=build-test
Will create a top-level folder called 'build-test' where everything
will be put. 'make clean' will remove it (if called with the same
argument)
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
The variable PLAT was renamed to PLATFORM, but was not updated in the
install target giving a failure when installing ACRN hypervisor.
Fixes: fc2b6fbe86 ("Makefile: keep using 'PLATFORM' variable for existing documentation")
Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
The make install target was missing. This commits adds the intall target
which uses the install target from subprojects.
Also a make install target was created in each tool program.
Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Instead of changing directories with "cd" command use the
-C parameter to change directory.
Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
it can be used as following:
make ==> to make hypervisor & devicemodel & tools
also modify tools makefile to support out-dir setting.
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Reviewed-by: Jack Ren <jack.ren@intel.com>