summaryrefslogtreecommitdiffstats
path: root/generate-squashfs
Commit message (Collapse)AuthorAgeFilesLines
* Make help text in generate-squashfs more clearGunnar Mills2017-10-311-3/+3
| | | | | Change-Id: I06ebcd525f4bddc5c02440d6fcc5a8940b9d08ec Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Update generate-squashfs to use new pflash optionMichael Tritz2017-07-241-18/+9
| | | | | | | | | | | | In a separate commit, a new option was added to pflash to print the miscellaneous flags for a particular partition. This commit updates the generate-squashfs tool to use that option instead of reading a byte out of the PNOR file. Resolves openbmc/openbmc#1351 Change-Id: Ie21c51ed1db0a604db2bc43779450a7c4ca75da0 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* generate-squashfs: Add version checking field and various fixesAdriana Kobylak2017-07-131-5/+10
| | | | | | | | | | | Add the version check information to the pnor.toc. Fix the flag offset, this was causing the flags to be set incorrectly. Just ignore the BACKUP_PART partition, since VERSION and part are needed during power on. Change-Id: I73ca8925028acb84d1b998b0a59938aa78bdbf2e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Change purpose set in generate-squashfsLeonel Gonzalez2017-06-281-1/+1
| | | | | | | Resolves openbmc/openbmc#1668 Change-Id: I135fdbb1c2bc749439a27686f2d7f88ab195290d Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* generate-squashfs: output file name improvementsMichael Tritz2017-06-131-2/+16
| | | | | | | | | | | Changes the behavior of generate-squashfs to generate a default output file name based on the input file if no output file is specified. Also adds support for relative output file paths. Resolves openbmc/openbmc#1760 Change-Id: Ib46d8d1ca9f54c937c0475b7dd90b0cb2b5a8a71 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* generate-squashfs: Add read-write flagAdriana Kobylak2017-05-051-5/+6
| | | | | | | | | | | | | Add a read-write flag as default (since only the readonly and preserved ones are defined) so that all partitions have a flag field making the text line easier to parse. Remove explicitly adding the scratch_dir to the path for packaging the image so that when the image is extracted it does not create the scratch_dir subdirectory. Change-Id: I143abc33e2c7ce9c7bad8be005e323064a49dbe9 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* ItemUpdater: Implement Software.Extended VersionSaqib Khan2017-04-191-1/+2
| | | | | | | | | | | - Add Extended version in the MANIFEST - Create an ExtendedVersion object - Populate the ExtendedVersion object from MANIFEST Resolves openbmc/openbmc#1401 Change-Id: Icb21e51a2a74c94f54ffecbd9057add4a0d3d694 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Read image version from the MANIFEST.Saqib Khan2017-04-091-1/+1
| | | | | | | | | According to Patrick, all information regarding the image must be read from the MANIFEST, such as version. Also we must never open/read pnor.toc. Change-Id: Icf9f83f9ec055de21e2cf13e4ab4ab4afafc2af7 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Add Manifest and SquashFS image to tarball.Saqib Khan2017-03-271-6/+14
| | | | | | | | | | - Create MANIFEST for image verification. - Package the MANIFEST and SquashFS into a tarball. Resolves openbmc/openbmc#1354 Change-Id: If432d7081cb1969c0192318054bf446e9c79b72e Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Add PNOR extended version to the SquashFS imageSaqib Khan2017-03-271-0/+2
| | | | | | | Resolves openbmc/openbmc#1355 Change-Id: I3e9ff4752f03ced5bd3a1a8d33d14fffa5efdaf3 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Add PNOR version to metadata fileGunnar Mills2017-03-211-2/+5
| | | | | | | | | Get the PNOR version from the VERSION partition and add to the metadata file. The version will be used to compute the PNOR id and set the version property. Change-Id: I5081964c3238c1a2f1f45949bbdd629ab92f35ef Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Moved to using "set -eo pipefail"Gunnar Mills2017-03-091-8/+7
| | | | | Change-Id: Ie73862997436c79be2b419bb913603581b6847cd Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Get READONLY and PRESERVED flagsGunnar Mills2017-03-091-2/+21
| | | | | Change-Id: I895b2d8ae696ae7eb2e712a8fcc50a357b8fa975 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Switch to using PNOR fileGunnar Mills2017-03-091-5/+12
| | | | | Change-Id: I3e6ec256b88a58a8c56ae2df3127a3af3ab99d6f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Get PNOR partition flagsGunnar Mills2017-03-081-3/+12
| | | | | Change-Id: Ie9a5606d64580390f1a024c36b986193ed3742d3 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Parse the PNOR TOC and create a metadata fileGunnar Mills2017-03-021-3/+18
| | | | | Change-Id: I4d4780d6ccc6fe9f5e3a2f14f4ea635222eee141 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Get partitions from pflashGunnar Mills2017-03-011-22/+1
| | | | | Change-Id: Ice9ff3ba6548235d0e69182e9b4527f6bf860863 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Create SquashFS ImageGunnar Mills2017-03-011-1/+20
| | | | | Change-Id: I6897db7d67a7d9b6f2beb250356a810e7932dada Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Read partitions from pnor.Gunnar Mills2017-03-011-0/+28
| | | | | Change-Id: I9300baf5060ac95445f715b4a0db9201dc023c04 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Basic generate-squashfs scriptGunnar Mills2017-03-011-0/+25
This commit is a base for future functionality. This commit just displays a help message. Change-Id: I479ae9558964691aa0b2206995200aaaf5afa51b Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
OpenPOWER on IntegriCloud