[OE-core] [PATCH v4 11/12] ovmf: build image which enrolls standard keys

2017-01-20 Thread Patrick Ohly
the initializer. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf-shell-image.bb | 17 +- meta/recipes-core/ovmf/ovmf/0007-OvmfPkg-EnrollDefaultKeys-application

[OE-core] [PATCH v4 12/12] ovmf: remove BGRT patch

2017-01-20 Thread Patrick Ohly
This patch was added to meta-luv for kernel testing purposes and probably is not relevant for OE-core. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf/0001-OvmfPkg-Enable-BGRT-in-OVMF.patch | 110 + meta

[OE-core] [PATCH v4 10/12] runqemu: support UEFI with OVMF firmware

2017-01-20 Thread Patrick Ohly
6/ovmf.vars.qcow2 my-machine/ $ runqemu qemux86 qcow2 ovmf.code my-machine/ovmf.vars.qcow2 When Secure Boot was enabled in ovmf, one can pick that instead of the non-Secure-Boot enabled ovmf.code: $ runqemu qemux86 qcow2 ovmf.secboot.code my-machine/ovmf.vars.qcow2 Signed-off-by: Patrick Ohly --- scripts/

[OE-core] [PATCH v4 01/12] acpica: move from meta-oe to OE-core

2017-01-20 Thread Patrick Ohly
be9ba (current master). Signed-off-by: Patrick Ohly --- meta/recipes-extended/acpica/acpica_20150515.bb | 46 +- meta/recipes-extended/acpica/acpitests/aapits-linux.patch| 336 +++- meta/recipes-extended/acpica/acpitests/aapits-makefile.patch | 34 +- meta/recipes-extended/a

[OE-core] [PATCH v4 04/12] ovmf: explicitly depend on nasm-native

2017-01-20 Thread Patrick Ohly
Fixes a build issue when nasm was not build already because of something else. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index e722db5..13b583b

[OE-core] [PATCH v4 05/12] ovmf: deploy firmware in image directory

2017-01-20 Thread Patrick Ohly
are also provided as separate files, in ovmf.code.qcow2 and ovmf.vars.qcow2. The traditional usage of ovmf via the qemu bios parameter is no longer supported and therefore it is not necessary to create a "bios.bin" file in the target sysroot. Signed-off-by: Patrick Ohly --- meta/recipes-core

[OE-core] [PATCH v4 00/12] UEFI + Secure Boot + qemu

2017-01-20 Thread Patrick Ohly
rent master (for real, this time!) - reordered patches a bit Fathi Boudra (1): acpica: move from meta-oe to OE-core Patrick Ohly (10): acpica: work around flex 2.6.2 code generation issue ovmf: explicitly depend on nasm-native ovmf: deploy firmware in image directory ovmf_git.bb: e

[OE-core] [PATCH v4 06/12] ovmf_git.bb: enable parallel compilation

2017-01-20 Thread Patrick Ohly
x27;1' [1] https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/edk2.spec Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index 8

[OE-core] [PATCH v4 07/12] ovmf_git.bb: enable Secure Boot

2017-01-20 Thread Patrick Ohly
it. In contrast to Fedora, no attempt is made to strip potentially patent encumbered algorithms out of the OpenSSL archive. OVMF does not use the ones considered problematic for Fedora, so this shouldn't be a problem. Fixes: luv-yocto/#38 Signed-off-by: Patrick Ohly --- meta

[OE-core] [PATCH v4 08/12] runqemu: fix undefined variable reference in check_arg_path()

2017-01-20 Thread Patrick Ohly
'arg' isn't defined, the right name there is 'p'. This fixes a rather obscure error message when that code path ends up being taken: $ runqemu some/existing-file-name runqemu - ERROR - name 'arg' is not defined runqemu - ERROR - Try 'runqemu help'

[OE-core] [PATCH v4 02/12] acpica: work around flex 2.6.2 code generation issue

2017-01-20 Thread Patrick Ohly
flex is the easiest solution for now. Signed-off-by: Patrick Ohly --- meta/recipes-extended/acpica/acpica_20150515.bb | 1 + meta/recipes-extended/acpica/files/rename-yy_scan_string-manually.patch | 64 2

Re: [OE-core] ✗ patchtest: failure for UEFI + Secure Boot + qemu (rev4)

2017-01-20 Thread Patrick Ohly
rge_on_head] > Suggested fixRebase your series on top of targeted branch > Targeted branch master (currently at ce5c7075d5) Argh, apparently I only meant to rebase and then didn't. Will resolve this and send V4. But it's good that patchtest is finding this promptly, kudos

[OE-core] [PATCH v3 12/12] acpica: work around flex 2.6.2 code generation issue

2017-01-20 Thread Patrick Ohly
flex is the easiest solution for now. Signed-off-by: Patrick Ohly --- meta/recipes-extended/acpica/acpica_20150515.bb | 1 + meta/recipes-extended/acpica/files/rename-yy_scan_string-manually.patch | 64 2

[OE-core] [PATCH v3 11/12] ovmf: remove BGRT patch

2017-01-20 Thread Patrick Ohly
This patch was added to meta-luv for kernel testing purposes and probably is not relevant for OE-core. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf/0001-OvmfPkg-Enable-BGRT-in-OVMF.patch | 110 + meta

[OE-core] [PATCH v3 08/12] runqemu: fix undefined variable reference in check_arg_path()

2017-01-20 Thread Patrick Ohly
'arg' isn't defined, the right name there is 'p'. This fixes a rather obscure error message when that code path ends up being taken: $ runqemu some/existing-file-name runqemu - ERROR - name 'arg' is not defined runqemu - ERROR - Try 'runqemu help'

[OE-core] [PATCH v3 10/12] ovmf: build image which enrolls standard keys

2017-01-20 Thread Patrick Ohly
the initializer. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf-shell-image.bb | 17 +- meta/recipes-core/ovmf/ovmf/0007-OvmfPkg-EnrollDefaultKeys-application

[OE-core] [PATCH v3 07/12] runqemu: also accept -image suffix for rootfs parameter

2017-01-20 Thread Patrick Ohly
ose string searches a bit (no need for re; any()+map() a bit closer to the intended logic). Signed-off-by: Patrick Ohly --- scripts/runqemu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 83ec337..45cad90 100755 --- a/scripts/runqem

[OE-core] [PATCH v3 09/12] runqemu: support UEFI with OVMF firmware

2017-01-20 Thread Patrick Ohly
6/ovmf.vars.qcow2 my-machine/ $ runqemu qemux86 qcow2 ovmf.code my-machine/ovmf.vars.qcow2 When Secure Boot was enabled in ovmf, one can pick that instead of the non-Secure-Boot enabled ovmf.code: $ runqemu qemux86 qcow2 ovmf.secboot.code my-machine/ovmf.vars.qcow2 Signed-off-by: Patrick Ohly --- scripts/

[OE-core] [PATCH v3 04/12] ovmf: deploy firmware in image directory

2017-01-20 Thread Patrick Ohly
are also provided as separate files, in ovmf.code.qcow2 and ovmf.vars.qcow2. The traditional usage of ovmf via the qemu bios parameter is no longer supported and therefore it is not necessary to create a "bios.bin" file in the target sysroot. Signed-off-by: Patrick Ohly --- meta/recipes-core

[OE-core] [PATCH v3 05/12] ovmf_git.bb: enable parallel compilation

2017-01-20 Thread Patrick Ohly
x27;1' [1] https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/edk2.spec Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index 8

[OE-core] [PATCH v3 03/12] ovmf: explicitly depend on nasm-native

2017-01-20 Thread Patrick Ohly
Fixes a build issue when nasm was not build already because of something else. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index e722db5..13b583b

[OE-core] [PATCH v3 06/12] ovmf_git.bb: enable Secure Boot

2017-01-20 Thread Patrick Ohly
it. In contrast to Fedora, no attempt is made to strip potentially patent encumbered algorithms out of the OpenSSL archive. OVMF does not use the ones considered problematic for Fedora, so this shouldn't be a problem. Fixes: luv-yocto/#38 Signed-off-by: Patrick Ohly --- meta

[OE-core] [PATCH v3 02/12] ovmf: move from meta-luv to OE-core

2017-01-20 Thread Patrick Ohly
From: meta-luv This is an unmodified copy of github.com/01org/luv-yocto/meta-luv/recipes-core/ovmf revision 4be4329. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf/0001-BaseTools-Force-tools-variables-to-host-toolchain.patch | 48 +- meta/recipes

[OE-core] [PATCH v3 00/12] UEFI + Secure Boot + qemu

2017-01-20 Thread Patrick Ohly
mu via MACHINE_ESSENTIAL_EXTRA_RDEPENDS - IMAGE_FSTYPES_forcevariable = "wic" used in ovmf-shell-image - remove OVMF BGRT patch - location of "inherit deploy" Changes since V2: - rebased onto current master - workaround for acpica compile issue with flex 2.6.2 Fathi Boudra (1): acpica: move fr

[OE-core] [PATCH v3 01/12] acpica: move from meta-oe to OE-core

2017-01-20 Thread Patrick Ohly
be9ba (current master). Signed-off-by: Patrick Ohly --- meta/recipes-extended/acpica/acpica_20150515.bb | 46 +- meta/recipes-extended/acpica/acpitests/aapits-linux.patch| 336 +++- meta/recipes-extended/acpica/acpitests/aapits-makefile.patch | 34 +- meta/recipes-extended/a

Re: [OE-core] [PATCH] flex: upgrade to 2.6.2

2017-01-20 Thread Patrick Ohly
On Thu, 2017-01-19 at 18:23 +0100, Patrick Ohly wrote: > Perhaps someone with more knowledge about flex can provide some > guidance? > > Fathi, is that something that you or upstream have come across? After looking into this some more I've come to the conclusion that this lo

Re: [OE-core] [PATCH] qemu: Upgrade to 2.7.1

2017-01-20 Thread Patrick Ohly
proposal, perhaps by turning it into a patch series with two changes? IMHO SRC_URI =+ "http://wiki.qemu-project.org/download/${BP}.tar.bz2"; should be fine. There's no need for the more complex _prepend. -- Best Regards, Patrick Ohly The content of this message is my persona

Re: [OE-core] [PATCH] flex: upgrade to 2.6.2

2017-01-19 Thread Patrick Ohly
rlayer.com/web I tried that and then just got different compile errors. Perhaps someone with more knowledge about flex can provide some guidance? Fathi, is that something that you or upstream have come across? Ross, would it be possible to revert this patch so that the UEFI patches can be merged? Obvio

Re: [OE-core] [PATCH V2] python3-docutils: upgrade to 0.13.1

2017-01-13 Thread Patrick Ohly
On Fri, 2017-01-13 at 12:13 -0600, Edwin Plauchu wrote: > Changed document date field and several notes about folders Perhaps now would be a good time to start using beginline/endline parameters? -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and altho

Re: [OE-core] [PATCH 1/2] rm_work.bbclass: allow preserving additional content

2017-01-13 Thread Patrick Ohly
Hello! Please ignored the 1/2 in the subject. There's just one patch for OE-core, the other one I had locally needs to go into meta-swupd. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make he

[OE-core] [PATCH v2 0/3] rm_work enhancements

2017-01-13 Thread Patrick Ohly
ss instead of prioritized anonymous functions - no need to change the scheduler, the "completion" scheduler now has the enhanced implementation Patrick Ohly (3): gcc-source.inc: cleanly disable do_rm_work rm_work_and_downloads.bbclass: more aggressively minimize disk usage rm_wo

[OE-core] [PATCH v2 2/3] rm_work_and_downloads.bbclass: more aggressively minimize disk usage

2017-01-13 Thread Patrick Ohly
use. Signed-off-by: Patrick Ohly --- meta/classes/rm_work_and_downloads.bbclass | 33 +++- 1 file changed, 33 insertions(+) create mode 100644 meta/classes/rm_work_and_downloads.bbclass diff --git a/meta/classes/rm_work_and_downloads.bbclass b/meta/classes

[OE-core] [PATCH v2 3/3] rm_work.bbclass: clean up sooner

2017-01-13 Thread Patrick Ohly
d considerably less disk space (14230MiB instead of 18740MiB for core-image-sato). Interestingly enough, builds with rm_work.bbclass were also faster than those without. Signed-off-by: Patrick Ohly --- meta/classes/rm_work.bbclass | 31 --- 1 file changed, 20 insertions(+),

[OE-core] [PATCH v2 1/3] gcc-source.inc: cleanly disable do_rm_work

2017-01-13 Thread Patrick Ohly
the API that is meant to be used for excluding recipes from cleaning, so use that. Signed-off-by: Patrick Ohly --- meta/recipes-devtools/gcc/gcc-source.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/gcc/gcc-source.inc b/meta/recipes-devtools/gcc

[OE-core] [PATCH 1/2] rm_work.bbclass: allow preserving additional content

2017-01-13 Thread Patrick Ohly
images. Those files could be passed via a new shared work directory, but that scatters data in even more places. It's simpler to use the normal WORKDIR and teach rm_work.bbclass to not remove the special output with the new RM_WORK_EXCLUDE_ITEMS. Signed-off-by: Patrick Ohly --- meta/cl

[OE-core] runqemu + multiconfig

2017-01-12 Thread Patrick Ohly
so apply to the normal qemux86/qemux86-64. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issu

Re: [OE-core] [PATCH v2 09/11] runqemu: support UEFI with OVMF firmware

2017-01-11 Thread Patrick Ohly
On Tue, 2017-01-10 at 17:07 +0100, Patrick Ohly wrote: > ovmf is not built by default. Either do it explicitly ("bitbake ovmf") > or make it a part of the normal build > ("MACHINE_ESSENTIAL_EXTRA_RDEPENDS_append = ' ovmf'"). Wrong advice in the commit me

[OE-core] [PATCH 1/1] insane.bbclass: print license text as part of QA message

2017-01-11 Thread Patrick Ohly
nfigurable with QA_MAX_LICENSE_LINES) are truncated in the middle. Signed-off-by: Patrick Ohly --- meta/classes/insane.bbclass | 29 + 1 file changed, 29 insertions(+) diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index f8f6e00..c172e72 100644 ---

[OE-core] [PATCH 0/1] improve LIC_FILES_CHKSUM QA check

2017-01-11 Thread Patrick Ohly
ably aren't that relevant (although I can also imagine cases where a one-line license comment was meant to be picked and was missed entirely). Patrick Ohly (1): insane.bbclass: print license text as part of QA message meta/classes/insane.bbclass | 29 +++

[OE-core] [PATCH v2 10/11] ovmf: build image which enrolls standard keys

2017-01-10 Thread Patrick Ohly
the initializer. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf-shell-image.bb | 17 + ...ollDefaultKeys-application-for-enrolling-.patch | 1124 meta/recipes-core/ovmf/ovmf/ovmf-shell-image.wks |4 + meta/recipes-core/ovmf/ovmf_git.bb

[OE-core] [PATCH v2 11/11] ovmf: remove BGRT patch

2017-01-10 Thread Patrick Ohly
This patch was added to meta-luv for kernel testing purposes and probably is not relevant for OE-core. Signed-off-by: Patrick Ohly --- .../ovmf/0001-OvmfPkg-Enable-BGRT-in-OVMF.patch| 110 - meta/recipes-core/ovmf/ovmf_git.bb | 1 - 2 files changed, 111

[OE-core] [PATCH v2 06/11] ovmf_git.bb: enable Secure Boot

2017-01-10 Thread Patrick Ohly
it. In contrast to Fedora, no attempt is made to strip potentially patent encumbered algorithms out of the OpenSSL archive. OVMF does not use the ones considered problematic for Fedora, so this shouldn't be a problem. Fixes: luv-yocto/#38 Signed-off-by: Patrick Ohly --- meta

[OE-core] [PATCH v2 09/11] runqemu: support UEFI with OVMF firmware

2017-01-10 Thread Patrick Ohly
6/ovmf.vars.qcow2 my-machine/ $ runqemu qemux86 qcow2 ovmf.code my-machine/ovmf.vars.qcow2 When Secure Boot was enabled in ovmf, one can pick that instead of the non-Secure-Boot enabled ovmf.code: $ runqemu qemux86 qcow2 ovmf.secboot.code my-machine/ovmf.vars.qcow2 Signed-off-by: Patrick Ohly --- scripts/

[OE-core] [PATCH v2 07/11] runqemu: also accept -image suffix for rootfs parameter

2017-01-10 Thread Patrick Ohly
ose string searches a bit (no need for re; any()+map() a bit closer to the intended logic). Signed-off-by: Patrick Ohly --- scripts/runqemu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 203992a..7d84f19 100755 --- a/scripts/runqem

[OE-core] [PATCH v2 08/11] runqemu: fix undefined variable reference in check_arg_path()

2017-01-10 Thread Patrick Ohly
'arg' isn't defined, the right name there is 'p'. This fixes a rather obscure error message when that code path ends up being taken: $ runqemu some/existing-file-name runqemu - ERROR - name 'arg' is not defined runqemu - ERROR - Try 'runqemu help'

[OE-core] [PATCH v2 03/11] ovmf: explicitly depend on nasm-native

2017-01-10 Thread Patrick Ohly
Fixes a build issue when nasm was not build already because of something else. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index e722db5..13b583b

[OE-core] [PATCH v2 04/11] ovmf: deploy firmware in image directory

2017-01-10 Thread Patrick Ohly
are also provided as separate files, in ovmf.code.qcow2 and ovmf.vars.qcow2. The traditional usage of ovmf via the qemu bios parameter is no longer supported and therefore it is not necessary to create a "bios.bin" file in the target sysroot. Signed-off-by: Patrick Ohly --- meta/recipes-cor

[OE-core] [PATCH v2 02/11] ovmf: move from meta-luv to OE-core

2017-01-10 Thread Patrick Ohly
From: meta-luv This is an unmodified copy of github.com/01org/luv-yocto/meta-luv/recipes-core/ovmf revision 4be4329. Signed-off-by: Patrick Ohly --- ...s-Force-tools-variables-to-host-toolchain.patch | 48 .../ovmf/0001-OvmfPkg-Enable-BGRT-in-OVMF.patch| 110

[OE-core] [PATCH v2 05/11] ovmf_git.bb: enable parallel compilation

2017-01-10 Thread Patrick Ohly
x27;1' [1] https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/edk2.spec Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index 8

[OE-core] [PATCH v2 01/11] acpica: move from meta-oe to OE-core

2017-01-10 Thread Patrick Ohly
be9ba (current master). Signed-off-by: Patrick Ohly --- meta/recipes-extended/acpica/acpica_20150515.bb| 46 +++ .../acpica/acpitests/aapits-linux.patch| 336 + .../acpica/acpitests/aapits-makefile.patch | 34 +++ meta/recipes-extended/a

[OE-core] [PATCH v2 00/11] UEFI + Secure Boot + qemu

2017-01-10 Thread Patrick Ohly
utils (2017-01-09 13:34:32 +) are available in the git repository at: git://github.com/pohly/openembedded-core secure-boot https://github.com/pohly/openembedded-core/tree/secure-boot Fathi Boudra (1): acpica: move from meta-oe to OE-core Patrick Ohly (9): ovmf: explicitly depend on nasm-nat

Re: [OE-core] [PATCH 4/9] ovmf: deploy firmware in image directory

2017-01-09 Thread Patrick Ohly
On Mon, 2017-01-09 at 19:50 -0800, Ricardo Neri wrote: > On Wed, 2017-01-04 at 11:01 +0100, Patrick Ohly wrote: > > On Wed, 2016-12-28 at 13:38 -0800, Ricardo Neri wrote: > > > > do_install_class-target() { > > > > -OVMF_DIR_SUFFIX="X64" > > &g

Re: [OE-core] [PATCH 8/9] runqemu: support UEFI with OVMF firmware

2017-01-09 Thread Patrick Ohly
On Mon, 2017-01-09 at 19:50 -0800, Ricardo Neri wrote: > On Wed, 2017-01-04 at 10:43 +0100, Patrick Ohly wrote: > > To > > test that supporting separate code and variables also works, I've > > implemented that locally so that ovmf.fd ovmf_secboot.fd, ovmf_code.fd, &g

Re: [OE-core] [PATCH 2/3] rm_work_and_downloads.bbclass: more aggressively minimize disk usage

2017-01-09 Thread Patrick Ohly
On Sat, 2017-01-07 at 09:09 +0100, Patrick Ohly wrote: > On Fri, 2017-01-06 at 13:29 -0800, Randy Witt wrote: > > > > There are times that the work directories help with the debugging of > > build failures. The logs aren't always enough. So a person might want > >

[OE-core] [PATCH V2 1/1] rootfs-postcommands.bbclass: sort passwd entries

2017-01-09 Thread Patrick Ohly
n't the case before. The order of the entries should not matter, but in obscure cases where it does (like having multiple entries for the same numeric ID) this behavior can be disabled by setting SORT_PASSWD_POSTPROCESS_COMMAND to an empty string. Fixes: YOCTO #10520 Signed-off-by: Patrick Ohly

Re: [OE-core] [PATCH 1/1] rootfs-postcommands.bbclass: sort passwd entries

2017-01-08 Thread Patrick Ohly
bly difficult, just more code. I also wonder how to handle comment lines - remove them (easy) or associate with the following entry (nicer)? -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no

Re: [OE-core] [PATCH 1/1] rootfs-postcommands.bbclass: sort passwd entries

2017-01-07 Thread Patrick Ohly
On Sat, 2017-01-07 at 09:59 +, Phil Blundell wrote: > On Sat, 2017-01-07 at 09:06 +0100, Patrick Ohly wrote: > > > Yes, but there's already a solution for that problem: > > useradd-staticids.bbclass > > > > I was assuming that someone who wants identical

Re: [OE-core] [PATCH 2/3] rm_work_and_downloads.bbclass: more aggressively minimize disk usage

2017-01-07 Thread Patrick Ohly
ially in the case of failures. > > > I'll admit it is a fabricated scenario, but in general I'm against one > knob requiring the turning of another knob. In principle I agree. Okay, let's separate the two. -- Best Regards, Patrick Ohly The content of this message is m

Re: [OE-core] [PATCH 1/1] rootfs-postcommands.bbclass: sort passwd entries

2017-01-07 Thread Patrick Ohly
On Fri, 2017-01-06 at 21:17 +, Phil Blundell wrote: > On Thu, 2017-01-05 at 16:38 +0100, Patrick Ohly wrote: > > The /etc passwd files in a rootfs consist of the default entries from > > base-passwd plus anything that gets added by preinst scripts or > > extrausers.

Re: [OE-core] [PATCH 2/3] rm_work_and_downloads.bbclass: more aggressively minimize disk usage

2017-01-06 Thread Patrick Ohly
uld run out of disk space. A "rm -rf downloads" at the end of the build doesn't help achieve that goal. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent

[OE-core] [PATCH 3/3] rm_work.bbclass: clean up sooner

2017-01-06 Thread Patrick Ohly
nd required considerably less disk space (14230MiB instead of 18740MiB for core-image-sato). Interestingly enough, builds with rm_work.bbclass were also faster than those without. Signed-off-by: Patrick Ohly --- meta/classes/rm_work.bbclass | 31 ++- 1 file changed, 18 inse

[OE-core] [PATCH 2/3] rm_work_and_downloads.bbclass: more aggressively minimize disk usage

2017-01-06 Thread Patrick Ohly
use. Signed-off-by: Patrick Ohly --- meta/classes/rm_work_and_downloads.bbclass | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 meta/classes/rm_work_and_downloads.bbclass diff --git a/meta/classes/rm_work_and_downloads.bbclass b/meta/classes

[OE-core] [PATCH 1/3] gcc-source.inc: cleanly disable do_rm_work

2017-01-06 Thread Patrick Ohly
Using "deltask" assumes that do_rm_work has been added already, which won't be the case anymore in the upcoming improved rm_work.bbclass, because then an anonymous python method will add do_rm_work. Setting RM_WORK_EXCLUDE works with the current and upcoming rm_work.bbclass and is the API that is

[OE-core] [PATCH 0/3] rm_work enhancements

2017-01-06 Thread Patrick Ohly
ckagegroup-core-lsb: add opengl to REQUIRED_DISTRO_FEATURES (2017-01-05 13:53:45 +) are available in the git repository at: git://github.com/pohly/openembedded-core rmwork https://github.com/pohly/openembedded-core/tree/rmwork Patrick Ohly (3): gcc-source.inc: cleanly disable

[OE-core] [PATCH 1/1] rootfs-postcommands.bbclass: sort passwd entries

2017-01-05 Thread Patrick Ohly
ed by setting SORT_PASSWD_POSTPROCESS_COMMAND to an empty string. Fixes: YOCTO #10520 Signed-off-by: Patrick Ohly --- meta/classes/rootfs-postcommands.bbclass | 20 1 file changed, 20 insertions(+) diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/r

Re: [OE-core] [PATCH 0/6] Add opengl to REQUIRED_DISTRO_FEATURES for some recipes

2017-01-05 Thread Patrick Ohly
On Thu, 2017-01-05 at 08:51 +, Richard Purdie wrote: > On Thu, 2017-01-05 at 08:32 +0100, Patrick Ohly wrote: > > On Wed, 2017-01-04 at 23:49 +, Burton, Ross wrote: > > > > > > > > > On 4 January 2017 at 22:57, Christopher Larson > > > wrote:

Re: [OE-core] [PATCH 0/6] Add opengl to REQUIRED_DISTRO_FEATURES for some recipes

2017-01-04 Thread Patrick Ohly
urprising. There's some truth to that, but I don't believe that it outweighs the disadvantages. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's posi

Re: [OE-core] [PATCH 3/3] classes/buildstats: don't expand variable pointing to SystemStats

2017-01-04 Thread Patrick Ohly
change, I'm just trying to understand whether this merely cosmetic or has some real impact. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the is

Re: [OE-core] [PATCH 3/9] ovmf: explicitly depend on nasm-native

2017-01-04 Thread Patrick Ohly
On Wed, 2016-12-28 at 02:59 +, Neri, Ricardo wrote: > On Wed, 2016-12-21 at 14:11 +0100, Patrick Ohly wrote: > > +DEPENDS_append = " nasm-native" > > + > Is this dependency needed for both native and target builds? If not, it > can be done with DEPENDS_class.

Re: [OE-core] [PATCH 6/9] ovmf_git.bb: enable Secure Boot

2017-01-04 Thread Patrick Ohly
On Wed, 2016-12-28 at 14:54 -0800, Ricardo Neri wrote: > On Wed, 2016-12-21 at 14:11 +0100, Patrick Ohly wrote: > > The recipe now compiles OVMF twice, once without Secure Boot, once > > with. This is the same approach as in > > https://src.fedoraproject.org/cgit/rpms/ed

Re: [OE-core] [PATCH 4/9] ovmf: deploy firmware in image directory

2017-01-04 Thread Patrick Ohly
bitbake. > However, a quick grep -n inherit reveals that the majority of the > recipes put their inheritances towards the top of the recipe. Agreed, that seems to be more common, although there are also examples where "inherit deploy" is directly in front of "do_deploy". I

Re: [OE-core] [PATCH 8/9] runqemu: support UEFI with OVMF firmware

2017-01-04 Thread Patrick Ohly
On Wed, 2016-12-28 at 15:33 -0800, Ricardo Neri wrote: > On Wed, 2016-12-21 at 14:11 +0100, Patrick Ohly wrote: > > +# File name of a OVMF BIOS file, to be added with -drive > > if=pflash. > > +# Found in the same places as the rootfs, with

Re: [OE-core] [PATCH 0/9] UEFI + Secure Boot + qemu

2016-12-28 Thread Patrick Ohly
approach. I'll prepare a revision of this patch series that includes acpica instead of iasl and also addresses the other points that Ricardo raised. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I m

Re: [OE-core] [PATCH 2/9] iasl: move from meta-luv to OE-core

2016-12-21 Thread Patrick Ohly
On Wed, 2016-12-21 at 16:11 +0200, Fathi Boudra wrote: > On 21 December 2016 at 15:11, Patrick Ohly wrote: > > iasl is also provided by the meta-oe layer's acpica recipe. iasl is a > > bit simpler and thus seems more suitable for OE-core. > > Simpler in what sense? L

[OE-core] [PATCH 6/9] ovmf_git.bb: enable Secure Boot

2016-12-21 Thread Patrick Ohly
cboot will boot with Secure Boot enabled. In contrast to Fedora, no attempt is made to strip potentially patent encumbered algorithms out of the OpenSSL archive. OVMF does not use the ones considered problematic for Fedora, so this shouldn't be a problem. Fixes: luv-yocto/#38 Signed-off-by

[OE-core] [PATCH 9/9] ovmf: build image which enrolls standard keys

2016-12-21 Thread Patrick Ohly
the initializer. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf-shell-image.bb | 22 + ...ollDefaultKeys-application-for-enrolling-.patch | 1123 meta/recipes-core/ovmf/ovmf/ovmf-shell-image.wks |4 + meta/recipes-core/ovmf/ovmf_git.bb

[OE-core] [PATCH 5/9] ovmf_git.bb: enable parallel compilation

2016-12-21 Thread Patrick Ohly
x27;1' [1] https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/edk2.spec Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index d

[OE-core] [PATCH 7/9] runqemu: let command line parameters override defaults

2016-12-21 Thread Patrick Ohly
e "qemuparams" after the parameters derived from the machine configuration the user gets the possibility to override those. Signed-off-by: Patrick Ohly --- scripts/runqemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runqemu b/scripts/runqemu index 0a9cb94

[OE-core] [PATCH 8/9] runqemu: support UEFI with OVMF firmware

2016-12-21 Thread Patrick Ohly
llows storing UEFI variables in the file. Instead of just "ovmf", a full path to an existing file can also be used, just as with the rootfs. That may be useful when making a permanent copy of the virtual machine data files. Signed-off-by: Patrick Ohly --- scripts/runqemu | 37 ++

[OE-core] [PATCH 4/9] ovmf: deploy firmware in image directory

2016-12-21 Thread Patrick Ohly
u would be more complicated, so for now the simpler approach with combined code and variable store is used. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 33 +++-- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/meta/recipes-core/

[OE-core] [PATCH 3/9] ovmf: explicitly depend on nasm-native

2016-12-21 Thread Patrick Ohly
Fixes a build issue when nasm was not build already because of something else. Signed-off-by: Patrick Ohly --- meta/recipes-core/ovmf/ovmf_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index e722db5..13b583b

[OE-core] [PATCH 2/9] iasl: move from meta-luv to OE-core

2016-12-21 Thread Patrick Ohly
ctive, PREFERRED_PROVIDER_iasl-native must be set to avoid a warning. It can be set to "acpica-native" when something from acpica besides just iasl is needed. Signed-off-by: Patrick Ohly --- meta/recipes-extended/iasl/iasl_20120215.bb | 27 +++ meta/recipes-extended/iasl/iasl_2

[OE-core] [PATCH 1/9] ovmf: move from meta-luv to OE-core

2016-12-21 Thread Patrick Ohly
From: meta-luv This is an unmodified copy of github.com/01org/luv-yocto/meta-luv/recipes-core/ovmf revision 4be4329. Signed-off-by: Patrick Ohly --- ...s-Force-tools-variables-to-host-toolchain.patch | 48 .../ovmf/0001-OvmfPkg-Enable-BGRT-in-OVMF.patch| 110

[OE-core] [PATCH 0/9] UEFI + Secure Boot + qemu

2016-12-21 Thread Patrick Ohly
quot;selftest/wic: extending test coverage for WIC script options" (2016-12-20 17:06:01 +) are available in the git repository at: git://github.com/pohly/openembedded-core secure-boot https://github.com/pohly/openembedded-core/tree/secure-boot Patrick Ohly (7): ovmf: expli

Re: [OE-core] multiconfig + siteinfo.bbclass

2016-12-14 Thread Patrick Ohly
On Wed, 2016-12-14 at 16:37 +0100, Patrick Ohly wrote: > Hello! > > While trying out a multiconfig with two configurations (one for MACHINE > = intel-corei7-64, one for quark) in custom Ostro derivative I got an > error while parsing recipes: > [...] > > However, I c

[OE-core] multiconfig + siteinfo.bbclass

2016-12-14 Thread Patrick Ohly
recent, but not quite master. I don't see any relevant changes since then. However, I can't reproduce this with just Poky :-/ Any suggestions? -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel,

Re: [OE-core] [PATCH V3 0/4] Persistent /var/log support

2016-12-14 Thread Patrick Ohly
On Wed, 2016-12-14 at 17:08 +0800, Chen Qi wrote: > Changes since V2: > Use boolean value consistently. Update the comments to fit the use of boolean > value. Looks good to me now. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and althoug

Re: [OE-core] [PATCH V2 4/4] package.bbclass: support persistent /var/log

2016-12-13 Thread Patrick Ohly
== 'yes'] Now that the rest of the changes treat VOLATILE_LOG_DIR as a boolean, this code here also needs to be changed. Otherwise VOLATILE_LOG_DIR=1 or VOLATILE_LOG_DIR=y won't work correctly. You might also want to change the description of the variable in the first patch to mention those ot

Re: [OE-core] [PATCH 3/4] initscripts: support persistent /var/log

2016-12-12 Thread Patrick Ohly
G_DIR to have more than just yes/no. Untested (relies on bool->str conversion): if [ ${@ oe.types.boolean('${VOLATILE_LOG_DIR}') } = True ]; then -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statemen

Re: [OE-core] [PATCH 2/4] base-files: respect VOLATILE_LOG_DIR

2016-12-12 Thread Patrick Ohly
aught and allows several other values besides yes/no. The change itself of course works either way. Just my 2 cents ;-} -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way repr

[OE-core] [PATCH] buildstats.py: skip collecting unavailable /proc data

2016-12-09 Thread Patrick Ohly
. Reported-by: Andreas Oberritter Signed-off-by: Patrick Ohly --- meta/lib/buildstats.py | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/meta/lib/buildstats.py b/meta/lib/buildstats.py index 9e5b6be..854c387 100644 --- a/meta/lib/buildstats.py +++ b/meta/lib

Re: [OE-core] [PATCH 01/11] buildstats: add system state sampling

2016-12-08 Thread Patrick Ohly
On Fri, 2016-12-09 at 01:29 +0100, Andreas Oberritter wrote: > Hi Patrick, > > On 28.11.2016 16:33, Patrick Ohly wrote: > > +def sample(self, force): > > +now = time.time() > > +if (now - self.last > self.min_seconds) or force: > >

Re: [OE-core] [PATCH 01/11] buildstats: add system state sampling

2016-12-08 Thread Patrick Ohly
On Fri, 2016-12-09 at 01:29 +0100, Andreas Oberritter wrote: > Hi Patrick, > > On 28.11.2016 16:33, Patrick Ohly wrote: > > +def sample(self, force): > > +now = time.time() > > +if (now - self.last > self.min_seconds) or force: > >

Re: [OE-core] [PATCH 3/4] kern-tools: fix processing for no branch meta-data

2016-12-06 Thread Patrick Ohly
Function failed: do_kernel_metadata (log file is located ...) This commit here fixed it for me. I see that it is already in Ross' mut2 branch, so hopefully that'll land in master soon. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I a

Re: [OE-core] [PATCH] libarchive: enable non-recursive extract/list

2016-12-04 Thread Patrick Ohly
On Thu, 2016-12-01 at 10:40 +0100, Patrick Ohly wrote: > Required for meta-swupd performance enhancements: in meta-swupd, the > so called "mega" image contains a rootfs with all files that can > potentially be installed on a device. Other virtual image recipes need > a su

[OE-core] [PATCH] libarchive: enable non-recursive extract/list

2016-12-01 Thread Patrick Ohly
(see https://groups.google.com/forum/#!topic/libarchive-discuss/JO3hqSaAVfs) but has been slow in actually commenting on it, so for now it has to be carried as distro patch. Signed-off-by: Patrick Ohly --- .../files/non-recursive-extract-and-list.patch | 153 + .../

[OE-core] [PATCH V2 10/11] buildstats: reduce amount of data stored for system utilization

2016-11-30 Thread Patrick Ohly
monitoring system utilization is small enough that it can be enabled by default. Signed-off-by: Patrick Ohly --- meta/lib/buildstats.py | 114 - 1 file changed, 104 insertions(+), 10 deletions(-) diff --git a/meta/lib/buildstats.py b/meta/lib

[OE-core] [PATCH V2 11/11] pybootchartgui: support reading reduced /proc logs

2016-11-30 Thread Patrick Ohly
. Signed-off-by: Patrick Ohly --- scripts/pybootchartgui/pybootchartgui/parsing.py | 31 1 file changed, 31 insertions(+) diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py index 1c8d8ef..bcfb2da 100644 --- a

[OE-core] [PATCH V2 08/11] pybootchartgui: render disk space usage

2016-11-30 Thread Patrick Ohly
o the displayed value may be slightly lower than the actual amount of space needed because sampling does not record the actual initial state. Signed-off-by: Patrick Ohly --- scripts/pybootchartgui/pybootchartgui/draw.py| 62 scripts/pybootchartgui/pybootchartgui/parsi

[OE-core] [PATCH V2 09/11] pybootchartgui: simplify drawing of memory usage

2016-11-30 Thread Patrick Ohly
The internal representation after parsing now matches exactly what the drawing code needs, thus speeding up drawing a bit. However, the main motivation is to store exactly that required information in a more compact file. Signed-off-by: Patrick Ohly --- scripts/pybootchartgui/pybootchartgui

<    1   2   3   4   5   6   7   8   >