[Sending again because I initially replied to Claudius only, and not
mailing list]
I found using back-ticks with printf also works in a recipe:
NUMBER = "1"
NUMBER_PADDED="FOO_`printf "02d" ${NUMBER}`_MOARFOO"
On Fri, Jun 28, 2019 at 4:48 PM Claudius Heine wrote:
> Hi,
>
> Quoting Aaron
Hi,
Quoting Aaron Biver (2019-06-28 18:44:40)
> Is there such a thing as zero padding a number in a recipe (or vice versa?
> I'd be just as happy starting with a zero-padded number, and converting it
> to non-zero-padded.
In bitbake you could do this with inline python:
NUMBER = "1"
Is there such a thing as zero padding a number in a recipe (or vice versa?
I'd be just as happy starting with a zero-padded number, and converting it
to non-zero-padded.
The crux of the dilemma is that I must have zero-padding for file-naming,
but I CAN'T have zero padding in these numbers when I