Skip to content

Latest commit

 

History

History

sdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ASUM SDK

Update RPM Generation

An update RPM should be ASUM format compliant in order for one to successfully install the update. In order to generate such an RPM, one should use the ASUM SDK along with providing appropriate rpm information.

Prerequisites

To use this framework, you need the following:

  1. ASUM SDK
  2. JSON file containing RPM information. Ex: rpm-info.json.
  3. Library of plugin folders containing plugins.
  4. Optionally ISO can be specified through ISO_PATH to include ISO contents into the RPM. NOTE: The ISO contents would be extracted into $(PLUGINS_LIBRARY)/iso/contents folder, and appropriate .install plugin should be included to install the contents of this ISO to do online or offline upgrade. One can place the required .install plugins inside $(PLUGINS_LIBRARY)/iso or any other plugin folder, and access the contents of ISO using $(PLUGINS_LIBRARY)/iso/contents path.

Usage

Download and extract the ASUM SDK, and call the make target as below by specifying appropriate parameters as shown below:

$(MAKE) -C $(ASUM_SDK_PATH) generate \
    ISO_PATH=$${Path_to_ISO} \
    PLUGINS_LIBRARY=$${PluginsLibraryPath} \
    RPM_NAME=$${RPM_Name} \
    RPM_VERSION=$${Version_of_RPM} \
    RPM_REVISION=$${Revision_of_RPM} \
    RPM_URL=$${Update_RPM} \
    RPM_SUMMARY=$${Summary_of_the_RPM} \
    RPM_INFO_FILE=$${Update_RPM_Info_File} \
    SHIP_DIR=$${RPM_Destination_Dir};