Michael Heimpold
498285922e
firmware-tools/ptgen: use portable exit codes
...
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-01-02 07:14:09 +01:00
Michael Heimpold
83f729dfb2
firmware-tools/ptgen: fix minor coding style issues
...
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-01-02 07:14:09 +01:00
Jonas Gorski
997fed94e3
ptgen: work around gcc miscompilation
...
Some gcc versions seem to miscompile code using ternary operators,
work around this by just returning the result if exp is 0.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-09-26 12:23:41 +02:00
Felix Fietkau
7eeb254cc4
treewide: replace nbd@openwrt.org with nbd@nbd.name
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-06-07 08:58:42 +02:00
Felix Fietkau
39b8f7c0f7
firmware-tools/ptgen: use stdint types for struct pte
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45957
2015-06-14 17:41:21 +00:00
Felix Fietkau
6263567444
firmware-tools/ptgen: fix endianness conversion for PTE .start, .length field.
...
They are of 32-bit little endian integers.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 45956
2015-06-14 17:41:16 +00:00
Jo-Philipp Wich
6358368500
firmware-utils: allow passing a specific MBR signature to ptgen
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 42934
2014-10-16 16:16:47 +00:00
John Crispin
6c9d20d6e7
tools/firmware-utils/ptgen option to use MB rounding
...
SVN-Revision: 33218
2012-08-22 09:22:38 +00:00
Felix Fietkau
216c6cd8a9
firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure that overwritten files have the right size ( fixes #3505 )
...
SVN-Revision: 12667
2008-09-23 16:12:40 +00:00
Felix Fietkau
b71b54bb25
fix x86 boot filesystem allocation ( #1736 )
...
SVN-Revision: 7312
2007-05-23 18:15:11 +00:00
Felix Fietkau
41ac34a2a2
make ptgen print the end offset of the last partition as well
...
SVN-Revision: 6358
2007-02-25 17:58:54 +00:00
Felix Fietkau
aa22253602
fix cylinder rounding in ptgen
...
SVN-Revision: 6352
2007-02-24 20:20:57 +00:00
Felix Fietkau
cf52f51b85
remove custom partition table hack, add ptgen utility for generating partition tables
...
SVN-Revision: 5704
2006-12-07 00:26:26 +00:00