aboutsummaryrefslogtreecommitdiff
path: root/tools/fat16copy.py
Commit message (Collapse)AuthorAgeFilesLines
* fat16copy: Allow to copy files to an existing directory.Alex Deymo2017-02-131-3/+8
| | | | | | | | | | | | This patch re-uses existing directories when copying directories, allowing to copy files to a directory previously created. Bug: 34811400 Test: fat16copy.py fat.bin a/b/foo; fat16copy.py fat.bin c/d/foo (cherry-picked from 0af24a27a8d0dc7e1782f36a5a9963021ff8b3f6) Change-Id: I283184da18f3c4951d6c84aafa4185074791acd2
* fat16copy: Fix allocation logic when extending directories.Alex Deymo2016-09-231-75/+40
| | | | | | | | | | | | When extending a directory, empty directory entries were left behind signaling the end of a directory. Bug: 31570546 Test: make dist; mdir shows all the files. (cherry picked from commit d4516300b010c8155861e310dac871e8c10d3382) Change-Id: Ie3d82cfaad51be73911293a54d18746e8adf62a2
* fat16copy: Sort new directory entries.Alex Deymo2016-09-231-1/+1
| | | | | | | | | | | | Sort the entries returned by os.listdir to give a consistent ordering across build. Bug: None Test: `make dist` (cherry picked from commit ef34e5dca216e61fd81020e818f247f6ce47d26e) Change-Id: I2f80889684f108208f07e13d725acaa7bc0ab099
* Make fat16copy.py add . and .. entries to directoriesCasey Dahlin2016-09-231-6/+23
| | | | | | | | | Test: fsck no longer complains Bug: None (cherry picked from commit 7d38ec37432c307d729b9a8fdb78dbf820427538) Change-Id: I587f400df2f57b987df8b92d551c99f2f42a9af6
* Add tool to copy files in to fat16 imagesCasey Dahlin2016-09-021-0/+789
fat16copy.py can be used to copy files or directories in to the root of a fat16 image. Usage: fat16copy <image> <file> [<file> ...] Test: Used to compose a Raspberry Pi 3 boot image Bug: 28912590 Change-Id: I29c9eec3786e2c5cc94f9a160360bac850809a93