Age | Commit message (Collapse) | Author |
|
Attribute copyright to Intel and add MIT license headers
Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
|
|
A debug version of the rmc binary can be built by using the debug
Makefile target. This will include debug symbols and will disable
compiler optimizations.
Example:
make debug
Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
|
|
By default make will output the commands that are executed for each
target. Silent mode can be enabled with the '-s' option.
Example:
make -s
Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
|
|
The current RMC_CFLAGS worked as an interface for outside .But it
should be better to use this variable to hold internal flags and
respect CFLAGS passed from outside.
Also remove -O2 flag.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
This is a major re-work in rmc with several key changes:
To query board-specific data in a rmc database, developers
now can take advantage of new defined APIs, either using
single-action APIs for a better performance of multiple
queries or simply calling a double-action API, which is
sufficient to perform a query in one step, to reduce the
footprint in code at client side. (Refer to inc/rmc_api.h.)
rmc tool itself is modified to use new APIs.
Memory map and allocated data can be released after use in user
space. In EFI context, rmc doesn't allocate memory for anything
returned.
In EFI build, necessary data types are defined in rmc in order
to get rid of dependency on any EFI implementation.
Miscellaneous fixes are also included when we move the pieces
around.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
The two were organized in different libraries from functionality
perspective. This change merges them into a single library to
simplify linking RMC into client. There should not be much extra
footprint on the binary size because they are very small and
always work together.
We move the code into a common directory lib/common with a RULE
readme file.
This change also includes miscellaneous amendments in Makefiles.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
Add detection of current path for -I option, also update
type definitions for EFI compiling.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
The removed static linking was for a desire to make rmc run
on systems where c libraries are not provided.
But it is nothing wrong to dynamically link rmc with libraries.
We also don't have to hardcode the way of linking in Makefile
since people can specify it in RMC_CFLAGS passed to make command.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
So far the only usage of the stuff removed from installation
is rmc tool executable in user space. Libraries and headers
are installed with EFI build.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
Append extra flags fed from RMC_CFLAGS so we can try out
gcc flags easily.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
Create a dir "rmc" to hold all rmc header files.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
This time we only install rmcl library and necessary header files
for rmcl.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
Use implicit variable $(AR) in Makefile
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
This is a small step to support cross-compiling.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
By default, we don't need to output build info.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|
|
Basical test has been performed on two 64bit targets NUC Gen 6
and Lenovo X220. Refer to README for more information.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
|