Intel® Stratix® 10 Hard Processor System Remote System Update User Guide

ID 683021
Date 11/10/2021
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.10. Building ZLIB

The ZLIB is required by LIBRSU. The following steps can be used to compile it:
cd $TOP_FOLDER
rm -rf zlib-1.2.11
wget http://zlib.net/zlib-1.2.11.tar.gz
tar xf zlib-1.2.11.tar.gz
rm zlib-1.2.11.tar.gz
cd zlib-1.2.11/
export LD=${CROSS_COMPILE}ld
export AS=${CROSS_COMPILE}as
export CC=${CROSS_COMPILE}gcc
./configure
make
export ZLIB_PATH=`pwd`
cd ..
Note: The version of zlib mentioned above is the one that was tested with this release. You may want to use the latest zlib version, as it may contain updates and bug fixes.
After the above steps are completed, the following items are available:
  • $TOP_FOLDER/zlib-1.2.11/zlib.h — header file, used to compile files using zlib services
  • $TOP_FOLDER/zlib-1.2.11/libz.so* — shared objects, used to run executables linked against zlib APIs