Intel® Agilex™ Hard Processor System Remote System Update User Guide

ID 683184
Date 7/13/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

7.2.11. Building LIBRSU and RSU Client

The following commands can be used to build the LIBRSU and the example client application:
cd $TOP_FOLDER
export ZLIB_PATH=`pwd`/zlib-1.2.11
rm -rf intel-rsu
git clone https://github.com/altera-opensource/intel-rsu
cd intel-rsu
# checkout the branch used for this document, comment out to use default
# git checkout -b test -t origin/master
cd lib
# add -I$(ZLIB_PATH) to CFLAGS
sed -i 's/\(CFLAGS := .*\)$/\1 -I\$\(ZLIB_PATH\)/g' makefile
make
cd ..
cd example
# add -L$(ZLIB_PATH) to LDFLAGS
sed -i 's/\(LDFLAGS := .*\)$/\1 -L\$\(ZLIB_PATH\)/g' makefile
make
cd ..
cd ..
The following files are created:
  • $TOP_FOLDER/intel-rsu/lib/librsu.so — shared object required at runtime for running applications using librsu
  • $TOP_FOLDER/intel-rsu/etc/qspi.rc — resource file for librsu configuration
  • $TOP_FOLDER/intel-rsu/example/rsu_client — example client application using librsu