Re: [yocto] Syntax for zero-padding a number in a recipe?

2019-06-28 Thread Claudius Heine
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"
NUMBER_PADDED = "${@"{:02d}".format(d.getVar("NUMBER", True))}"
NUMBER_PADDED2 = "0012"
NUMBER2 = "${@str(int(d.getVar("NUMBER_PADDED2", True)))}"

I have not tested this and it could possible be done more elegant, but
it should work.

regards,
Claudius

> 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 pass them to the C
> code (or the C code treats them as octal).
> 
> I'd like to start with:
> VERSION_MAJOR="1"
> VERSION_MINOR="19"
> 
> And turn this into "01" and "19" for purposes of naming the output file
> from the recipe.
> 
> I've tried the bash-style printf -v, but the recipe kicks the printf lines
> out with a parse error.
> 
> VERSION_MAJOR="01"
> VERSION_MINOR="19"
> 
> VERSION_MAJOR_STR=""
> VERSION_MINOR_STR=""
> 
> printf -v VERSION_MAJOR_STR "%02d" VERSION_MAJOR
> printf -v VERSION_MINOR_STR "%02d" VERSION_MINOR
> 
> 
> -- 
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

--
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: c...@denx.de

   PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153
 Keyserver: hkp://pool.sks-keyservers.net


signature.asc
Description: signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [meta-intel][Galileo] Kernel configuration isn't applied on linux-yocto-rt

2016-09-19 Thread Claudius Heine
Hi,

in order to isolate this issue I removed every layer with the exception
of poky and compiled linux-yocto-rt for "qemux86" with success.
(CONFIG_64BIT was set to n)

Then I added the meta-intel layer and compiled the real time kernel for
"intel-core2-32" also with success. (CONFIG_64BIT=n)

However choosing "intel-quark" resulted in the aforementioned error.
(CONFIG_64BIT=y)

So I suppose its a meta-intel upstream bug.

My Layers:

poky: "krogoth:aad7166704021d82ad3a5ec468552f8f10360d41"
meta-intel: 141e71af3c59f9bd5d45029a418de2e1ce90aacd
  with reverted: 7d00922e1cd3caabb8046e68a6107b9f4f3f1d34
  because this poky version only supports gummiboot not systemd-boot

regards,
Claudius


-- 
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: c...@denx.de
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-intel][Galileo] Kernel configuration isn't applied on linux-yocto-rt

2016-09-16 Thread Claudius Heine
Hi,

I am currently trying to compile the linux-yocto-rt kernel for a custom
board (called iot2000 here) based on the Intel Galileo platform.

The build fails, because the kernel configuration isn't applied.

However, the bitbake environment of the linux-yocto-rt target looks
good to me and everything works when I switch to the linux-yocto
kernel, where the same configuration is applied.

Any help would be appreciated.

Thanks, and have a nice day,
Claudius Heine

$ bitbake linux-yocto-rt
[...]
Build Configuration:
BB_VERSION= "1.30.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS= "i586-poky-linux"
MACHINE   = "iot2000"
DISTRO= "poky"
DISTRO_VERSION= "2.1.1"
TUNE_FEATURES = "m32 i586-nlp"
TARGET_FPU= ""
meta-multimedia   
meta-networking   
meta-python   
meta-oe   = "krogoth:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta  
meta-poky 
meta-yocto-bsp= "krogoth:aad7166704021d82ad3a5ec468552f8f10360d41"
meta-intel= "HEAD:141e71af3c59f9bd5d45029a418de2e1ce90aacd"
meta-intel-iot-middleware =
"master:821cf14c8304669d9ce0c5b87b9be5a6eecff6e5"
meta-iot2000-bsp  
meta-iot2000-example =
"jan/patches:d9177e0902dbd907a9528edf38d522eecd8dc3b9"
meta-java = "master:8c663efa4f8efccf50d094dbc61c7b78031b3b7d"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-yocto-rt-4.4.18+gitAUTOINC+59290c5f61_b5e21aa988-r0
do_package_qa: QA Issue: Architecture did not match (3 to 62) on
work/i586-nlp-32-intel-common-poky-linux/linux-yocto-
rt/4.4.18+gitAUTOINC+59290c5f61_b5e21aa988-r0/packages-split/kernel-
vmlinux/boot/vmlinux-4.4.20-rt19-yocto-preempt-rt [arch]
ERROR: linux-yocto-rt-4.4.18+gitAUTOINC+59290c5f61_b5e21aa988-r0
do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: linux-yocto-rt-4.4.18+gitAUTOINC+59290c5f61_b5e21aa988-r0
do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/build/fast/tmp/work/i586-
nlp-32-intel-common-poky-linux/linux-yocto-
rt/4.4.18+gitAUTOINC+59290c5f61_b5e21aa988-
r0/temp/log.do_package_qa.5212
ERROR: Task 16 (/home/build/yocto/meta/recipes-kernel/linux/linux-
yocto-rt_4.4.bb, do_package_qa) failed with exit code '1'
NOTE: Tasks Summary: Attempted 389 tasks of which 388 didn't need to be
rerun and 1 failed.
No currently running tasks (388 of 390)

Summary: 1 task failed:
  /home/build/yocto/meta/recipes-kernel/linux/linux-yocto-rt_4.4.bb,
do_package_qa
Summary: There were 3 ERROR messages shown, returning a non-zero exit
code.

local.conf: http://pastebin.com/PQJZvgtt
iot2000.conf: http://pastebin.com/HLXX3Ej2
linux-yocto-rt files: http://bit.ly/2csJXuV
linux-yocto-rt environment: http://bit.ly/2cNGF25
linux-yocto-rt resulting config: http://bit.ly/2d4BSv3

-- 
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: c...@denx.de
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto