Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
547b9bf
src: utils: Add function to get the stdout output of a command
landerweit-phytec Aug 17, 2023
4d7e856
src: utils: Allow copying to file destinations
landerweit-phytec Sep 28, 2023
75c241d
src: Add loopdev functions
landerweit-phytec Sep 28, 2023
ec7a97b
tests: Add test for loopdev
landerweit-phytec Oct 24, 2023
8fd03ea
src: Make input files independent from emmc
landerweit-phytec Jul 25, 2023
b381b1d
tests: Add unit test for pu-input
landerweit-phytec Jul 27, 2023
f202e49
src: emmc: Get absolute path and file size for all input files centrally
landerweit-phytec Aug 1, 2023
4dbcb76
src: Add config validation function
landerweit-phytec Jul 25, 2023
c2b6c9f
src: Remove checksum verification from install command
landerweit-phytec Jul 25, 2023
c1dc6b8
Check file size and raw overlap only in validate
landerweit-phytec Jul 25, 2023
d46f7c8
src: emmc: Check if input files fit into partition
landerweit-phytec Jul 27, 2023
b5d6aa7
src: emmc: Check if partitions fit into device
landerweit-phytec Aug 15, 2023
860574d
tests: emmc: Add unit tests for validation
landerweit-phytec Aug 30, 2023
bb8ec17
src: utils: Add function to parse size strings
landerweit-phytec Aug 14, 2023
4512cfa
src: main: Add validate command
landerweit-phytec Sep 28, 2023
6a5da15
src: main: Add option to write package to loop device
landerweit-phytec Sep 28, 2023
d70fff1
src: main: Add option to build flashable image from package
landerweit-phytec Sep 28, 2023
e2ca74e
doc: usage: Add validate command
landerweit-phytec Aug 14, 2023
b056f7f
github: workflows: system-tests: Add package validation step
landerweit-phytec Aug 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
layout.yaml random.bin lorem.txt lorem.tar root.ext4
echo "Show package content"
sudo G_DEBUG=fatal-warnings partup -s show pkg.partup
echo "Validate package"
sudo G_DEBUG=fatal-warnings partup -s --size=128MiB validate pkg.partup
echo "Install package to loop device"
sudo G_DEBUG=fatal-warnings partup -d install pkg.partup ${{ env.loop_dev }}
echo "Show loop device info"
Expand Down
13 changes: 11 additions & 2 deletions doc/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ Commands
install [OPTION…] *PACKAGE* *DEVICE*
Install a partup PACKAGE to DEVICE

-s, --skip-checksums Skip checksum verification for all input files

package [OPTION…] *PACKAGE* *FILES…*
Create a partup PACKAGE with the contents FILES

Expand All @@ -50,6 +48,17 @@ show [OPTION…] *PACKAGE*

-s, --size Print the size of each file

validate [OPTION…] *PACKAGE*
Validate a package against a virtual or physical device

-s, --skip-checksums Skip checksum verification for all input files
--size=SIZE Size of virtual device. Default is 1GB
-w, --write-image Install package to virtual device as an additional validation step
-b, --build-image=FILENAME Build a bootable image from the package. Implies --write-image
--device=DEVICE Validate against provided device

Available since: :ref:`release-2.0.0`

version
Print the program version

Expand Down
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ src = [
'src/pu-flash.c',
'src/pu-glib-compat.c',
'src/pu-hashtable.c',
'src/pu-input.c',
'src/pu-log.c',
'src/pu-loopdev.c',
'src/pu-mount.c',
'src/pu-package.c',
'src/pu-utils.c'
Expand Down
Loading