diff --git a/Makefile b/Makefile index 34d84e4bab08556544d6541e331067fccf5ba03b..7119851d437f10743e540faaf327e02ed0b883e8 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ PROGRAM=scmi_test_agent BAREMETAL=baremetal MOCKER=mocker LINUX=linux +SGM776=sgm776 #Set PLATFORM ifneq ($(PLAT),) @@ -40,7 +41,11 @@ LIB_ALL=$(LIB) endif ifeq ($(PLAT),$(LINUX)) -PLAT_DIR=platform/sgm776 + ifeq ($(HARDWARE),$(SGM776)) + PLAT_DIR=platform/$(SGM776) + else + $(error HARDWARE name is not provided, provide proper HARDWARE name(sgm776) as HARDWARE=sgm776) + endif endif # Set VERBOSE to default(TEST) if not set diff --git a/docs/user_guide.md b/docs/user_guide.md index 5873622508651f808efb4474e9806a31d9f8452c..8880c0743981c4199e09f25d7a3e540b1843cc33 100644 --- a/docs/user_guide.md +++ b/docs/user_guide.md @@ -93,11 +93,11 @@ When the test library is extended to support new protocols or commands, it is ** #### 2.2 OSPM agent -In addition to building the library, the build also enables the SCMI test suite to run as an OSPM agent running from Linux using publicly available mailbox test driver interface.A reference implementation for SGM is provided in the suite. To start the build, perform the following steps from the `<test suite clone location>`. +In addition to building the library, the build also enables the SCMI test suite to run as an OSPM agent running from Linux using publicly available mailbox test driver interface.A reference implementation for SGM776 is provided in the suite. user can add Hardware name as per choice. To start the build, perform the following steps from the `<test suite clone location>`. >`CROSS_COMPILE=<path/to/your/AArch64 compiler/bin>/aarch64-linux-gnu- make clean` > ->`CROSS_COMPILE=<path/to/your/AArch64 compiler/bin>/aarch64-linux-gnu- make PLAT=linux PROTOCOLS=base,clock,power_domain,performance,system_power,sensor,reset VERBOSE=1` +>`CROSS_COMPILE=<path/to/your/AArch64 compiler/bin>/aarch64-linux-gnu- make PLAT=linux HARDWARE=sgm776 PROTOCOLS=base,clock,power_domain,performance,system_power,sensor,reset VERBOSE=1` The output will be libscmi_test.a and scmi_test_agent for the Linux platform in the `<test suite clone location>`.