Skip to contentSkip to conversation

V2: Upgrade efivar and efibootmgr

PATCH In review [email protected] 3 participants 11 messages Sep 29, 2015 – Oct 9, 2015

lore
Share & tools
lore
#0 lore raw

cover V2: Upgrade efivar and efibootmgr

From: Kai Kang <[email protected]>

Hi Martin,

V2 only affects efivar commit:
* update git repo - the previous repo uri is a clone of the official repo
* add efivar-native package to provide command makeguids for efivar to avoid cross compile issue

Kai Kang (2):
efivar: 0.7 -> 0.21
efibootmgr: 0.6.0 -> 0.12

 .../recipes-extended/efibootmgr/efibootmgr_0.12.bb | 27 +++++++++++++++++++
 .../efibootmgr/efibootmgr_0.6.0.bb                 | 26 ------------------
 .../efibootmgr/files/docbook-fixes.patch           | 28 -------------------
 .../files/w-keep-existing-mbr-signature.patch      | 26 ------------------
 .../efivar/0001-efivar-fix-for-cross-compile.patch | 31 ++++++++++++++++++++++
 meta-oe/recipes-extended/efivar/efivar_0.21.bb     | 28 +++++++++++++++++++
 meta-oe/recipes-extended/efivar/efivar_git.bb      | 18 -------------
 7 files changed, 86 insertions(+), 98 deletions(-)
 create mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb
 delete mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
 delete mode 100644 meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch
 delete mode 100644 meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch
 create mode 100644 meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
 create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
 delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
Signature · 1 line
2.6.0.rc2.10.gf4d9753
#1 lore raw

PATCH 1/2 efivar: 0.7 -> 0.21

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids
and add patch for target package to use this native makeguids command

---
 .../efivar/0001-efivar-fix-for-cross-compile.patch | 31 ++++++++++++++++++++++
 meta-oe/recipes-extended/efivar/efivar_0.21.bb     | 28 +++++++++++++++++++
 meta-oe/recipes-extended/efivar/efivar_git.bb      | 18 -------------
 3 files changed, 59 insertions(+), 18 deletions(-)
 create mode 100644 meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
 create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
 delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +31 -0
new file mode 100644
index 0000000..4bd7d95
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+ 	$(CC) $(cflags) -o $@ $^ -ldl
+ 
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-	./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
++	makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+ 
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+ 	$(CC) $(cflags) -c -o guidlist.o guids.S
+-- 
+2.6.0.rc2.10.gf4d9753
+
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +28 -0
new file mode 100644
index 0000000..2e3b643
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -18
deleted file mode 100644
index 18446a0..0000000
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
Signature · 1 line
2.6.0.rc2.10.gf4d9753
#2 lore raw

Re: [PATCH 1/2] efivar: 0.7 -> 0.21

Quoted 7 lines · On Tue, Sep 29, 2015 at 03:04:49PM +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids
and add patch for target package to use this native makeguids command

-native version is failing on hosts with older gcc (like Ubuntu 12.04 with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

Quoted 109 lines
---
 .../efivar/0001-efivar-fix-for-cross-compile.patch | 31 ++++++++++++++++++++++
 meta-oe/recipes-extended/efivar/efivar_0.21.bb     | 28 +++++++++++++++++++
 meta-oe/recipes-extended/efivar/efivar_git.bb      | 18 -------------
 3 files changed, 59 insertions(+), 18 deletions(-)
 create mode 100644 meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
 create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
 delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +31 -0
new file mode 100644
index 0000000..4bd7d95
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+ 	$(CC) $(cflags) -o $@ $^ -ldl
+ 
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-	./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
++	makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+ 
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+ 	$(CC) $(cflags) -c -o guidlist.o guids.S
+-- 
+2.6.0.rc2.10.gf4d9753
+
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +28 -0
new file mode 100644
index 0000000..2e3b643
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -18
deleted file mode 100644
index 18446a0..0000000
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
Signature · 1 line
2.6.0.rc2.10.gf4d9753
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

Re: [PATCH 1/2] efivar: 0.7 -> 0.21

Quoted 8 lines · Martin Jansa
Quoted 4 lines · On Tue, Sep 29, 2015 at 03:04:49PM +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

Quoted 8 lines
Quoted 3 lines

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids
and add patch for target package to use this native makeguids command

-native version is failing on hosts with older gcc (like Ubuntu 12.04 with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?

Quoted 118 lines
Quoted 108 lines

---

.../efivar/0001-efivar-fix-for-cross-compile.patch | 31 ++++++++++++++++++++++
meta-oe/recipes-extended/efivar/efivar_0.21.bb     | 28 +++++++++++++++++++
meta-oe/recipes-extended/efivar/efivar_git.bb      | 18 -------------
3 files changed, 59 insertions(+), 18 deletions(-)

create mode 100644 meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +31 -0
new file mode 100644
index 0000000..4bd7d95
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+ 	$(CC) $(cflags) -o $@ $^ -ldl
+
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-	./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
++	makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+ 	$(CC) $(cflags) -c -o guidlist.o guids.S
+--
+2.6.0.rc2.10.gf4d9753
+
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +28 -0
new file mode 100644
index 0000000..2e3b643
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -19
deleted file mode 100644
index 18446a0..0000000
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
--
Quoted 2 lines

2.6.0.rc2.10.gf4d9753

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw

Re: [PATCH 1/2] efivar: 0.7 -> 0.21

There is no gcc-native recipe.

Quoted 159 lines · Khem Raj
Quoted 8 lines · Martin Jansa
Quoted 4 lines · On Tue, Sep 29, 2015 at 03:04:49PM +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

Quoted 8 lines
Quoted 3 lines

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids
and add patch for target package to use this native makeguids command

-native version is failing on hosts with older gcc (like Ubuntu 12.04 with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?

Quoted 5 lines
Quoted 5 lines

---
.../efivar/0001-efivar-fix-for-cross-compile.patch | 31

++++++++++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28

+++++++++++++++++++

Quoted 3 lines
Quoted 3 lines

meta-oe/recipes-extended/efivar/efivar_git.bb | 18 -------------

3 files changed, 59 insertions(+), 18 deletions(-)

create mode 100644

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 4 lines
Quoted 4 lines

create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

diff --git

a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 0000000..4bd7d95
--- /dev/null
+++

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 25 lines
Quoted 25 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +24 -0
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+    $(CC) $(cflags) -o $@ $^ -ldl
+
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +7 -0
++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+    $(CC) $(cflags) -c -o guidlist.o guids.S
+--
+2.6.0.rc2.10.gf4d9753
+
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb line 2

Quoted 7 lines

new file mode 100644
index 0000000..2e3b643

meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +2 -0
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +4 -0
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"

Quoted 6 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 6 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +6 -0
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = "

file://0001-efivar-fix-for-cross-compile.patch"

Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +9 -0
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +7 -0
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_git.bb line 2

Quoted 7 lines

deleted file mode 100644
index 18446a0..0000000

meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -2
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -4
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"

Quoted 16 lines
Quoted 13 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -13
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
--
Quoted 2 lines

2.6.0.rc2.10.gf4d9753

Quoted 7 lines

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#5 lore raw

Re: [PATCH 1/2] efivar: 0.7 -> 0.21

Quoted 1 line · Martin Jansa

There is no gcc-native recipe.

There are 2 options that the old gcc can NOT recognize: '-Wmaybe-uninitialized' and '-std=gnu11'

I think we can drop them and use default value of option '-std=' only for native package.

It needs some tiny fixes for C99 mode:

| guid.h:34:2: error: 'for' loop initial declarations are only allowed in C99 mode

I'll send the V3 pull request if no objection.

Thanks,
Kai

Quoted 155 lines · Khem Raj
Quoted 153 lines
Quoted 8 lines · Martin Jansa
Quoted 4 lines · On Tue, Sep 29, 2015 at 03:04:49PM +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

Quoted 7 lines
Quoted 3 lines

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids
and add patch for target package to use this native makeguids command

-native version is failing on hosts with older gcc (like Ubuntu 12.04 with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?

Quoted 3 lines
Quoted 3 lines

---
.../efivar/0001-efivar-fix-for-cross-compile.patch | 31

++++++++++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28

+++++++++++++++++++

Quoted 3 lines
Quoted 3 lines

meta-oe/recipes-extended/efivar/efivar_git.bb | 18 -------------

3 files changed, 59 insertions(+), 18 deletions(-)

create mode 100644

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 4 lines
Quoted 4 lines

create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

diff --git

a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 0000000..4bd7d95
--- /dev/null
+++

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 25 lines
Quoted 25 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +24 -0
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+    $(CC) $(cflags) -o $@ $^ -ldl
+
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +7 -0
++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+    $(CC) $(cflags) -c -o guidlist.o guids.S
+--
+2.6.0.rc2.10.gf4d9753
+
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb line 2

Quoted 7 lines

new file mode 100644
index 0000000..2e3b643

meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +2 -0
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +4 -0
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"

Quoted 6 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 6 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +6 -0
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = "

file://0001-efivar-fix-for-cross-compile.patch"

Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +9 -0
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +7 -0
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_git.bb line 2

Quoted 7 lines

deleted file mode 100644
index 18446a0..0000000

meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -2
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -4
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"

Quoted 14 lines
Quoted 14 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -13
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
--

2.6.0.rc2.10.gf4d9753

Quoted 8 lines
Quoted 1 line

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
Regards,
Neil | Kai Kang
#6 lore raw

Re: [PATCH 1/2] efivar: 0.7 -> 0.21

In reply to Martin Jansa
Quoted 1 line · Martin Jansa

There is no gcc-native recipe.

right, I meant is need one

Quoted 167 lines · Khem Raj
Quoted 153 lines
Quoted 9 lines · Martin Jansa
Quoted 4 lines · On Tue, Sep 29, 2015 at 03:04:49PM +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

Quoted 8 lines
Quoted 3 lines

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids
and add patch for target package to use this native makeguids command

-native version is failing on hosts with older gcc (like Ubuntu 12.04 with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?

Quoted 5 lines
Quoted 5 lines

---
.../efivar/0001-efivar-fix-for-cross-compile.patch | 31

++++++++++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28

+++++++++++++++++++

Quoted 3 lines
Quoted 3 lines

meta-oe/recipes-extended/efivar/efivar_git.bb | 18 -------------

3 files changed, 59 insertions(+), 18 deletions(-)

create mode 100644

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 4 lines
Quoted 4 lines

create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

diff --git

a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 0000000..4bd7d95
--- /dev/null
+++

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 25 lines
Quoted 25 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +24 -0
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+    $(CC) $(cflags) -o $@ $^ -ldl
+
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +7 -0
++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+    $(CC) $(cflags) -c -o guidlist.o guids.S
+--
+2.6.0.rc2.10.gf4d9753
+
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb line 2

Quoted 7 lines

new file mode 100644
index 0000000..2e3b643

meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +2 -0
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +4 -0
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"

Quoted 6 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 6 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +6 -0
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = "

file://0001-efivar-fix-for-cross-compile.patch"

Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +9 -0
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +7 -0
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_git.bb line 2

Quoted 7 lines

deleted file mode 100644
index 18446a0..0000000

meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -2
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -4
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"

Quoted 16 lines
Quoted 13 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -13
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
--
Quoted 2 lines

2.6.0.rc2.10.gf4d9753

Quoted 7 lines

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#7 lore raw

Re: [PATCH 1/2] efivar: 0.7 -> 0.21

I could use one for your internal projects, but this efi recipe is first one in world which cannot be built with 4.6 (At least first I know about).

In some recipes it was relatively easy to disable (e.g. efl, elementary need --disable-cxx-bindings if you build native version with gcc which doesn't support -std=gnu++11).

Quoted 191 lines · Khem Raj
Quoted 1 line · Martin Jansa

There is no gcc-native recipe.

right, I meant is need one

Quoted 5 lines · Khem Raj
Quoted 3 lines
Quoted 3 lines

On Oct 8, 2015, at 2:59 AM, Martin Jansa <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines

On Tue, Sep 29, 2015 at 03:04:49PM +0800, [email protected]

Quoted 7 lines · wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids and add patch for target package to use this native makeguids

command

Quoted 10 lines
Quoted 10 lines
Quoted 5 lines

-native version is failing on hosts with older gcc (like Ubuntu 12.04 with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?

Quoted 2 lines
Quoted 2 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

---
.../efivar/0001-efivar-fix-for-cross-compile.patch | 31

++++++++++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28

+++++++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/efivar/efivar_git.bb | 18

-------------

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
3 files changed, 59 insertions(+), 18 deletions(-)

create mode 100644

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

diff --git

a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 1 line
Quoted 1 line

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 0000000..4bd7d95
--- /dev/null
+++

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Review line 1

Quoted 2 lines
(quoted diff) +1 -0
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00

2001

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 5 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +5 -0
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file

which

Quoted 27 lines
Quoted 27 lines
Quoted 18 lines
Quoted 18 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +18 -0
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+    $(CC) $(cflags) -o $@ $^ -ldl
+
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +7 -0
++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+    $(CC) $(cflags) -c -o guidlist.o guids.S
+--
+2.6.0.rc2.10.gf4d9753
+
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb line 2

Quoted 7 lines

new file mode 100644
index 0000000..2e3b643

meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +2 -0
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to

the

Quoted 31 lines
Quoted 31 lines

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +4 -0
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"

Quoted 6 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 6 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +6 -0
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = "

file://0001-efivar-fix-for-cross-compile.patch"

Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +9 -0
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +7 -0
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_git.bb line 2

Quoted 7 lines

deleted file mode 100644
index 18446a0..0000000

meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -2
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to

the

Quoted 38 lines
Quoted 31 lines

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -4
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"

Quoted 16 lines
Quoted 13 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -13
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
--
Quoted 2 lines

2.6.0.rc2.10.gf4d9753

Quoted 7 lines

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw

Re: [PATCH 1/2] efivar: 0.7 -> 0.21

Quoted 6 lines · Martin Jansa

I could use one for your internal projects, but this efi recipe is first one in world which cannot be built with 4.6 (At least first I know about).

In some recipes it was relatively easy to disable (e.g. efl, elementary need --disable-cxx-bindings if you build native version with gcc which doesn't support -std=gnu++11).

Soon there will be more as we upgrade autoconf/automake to whatever next version is going to be, there its going to default to C11, so you still have time
to move away but its imminent.

Quoted 199 lines · Khem Raj
Quoted 186 lines
Quoted 1 line · Martin Jansa

There is no gcc-native recipe.

right, I meant is need one

Quoted 5 lines · Khem Raj
Quoted 3 lines
Quoted 3 lines

On Oct 8, 2015, at 2:59 AM, Martin Jansa <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines

On Tue, Sep 29, 2015 at 03:04:49PM +0800, [email protected]

Quoted 7 lines · wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

From: Kai Kang <[email protected]>

Upgrade efivar from 0.7 to 0.21.

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids and add patch for target package to use this native makeguids

command

Quoted 10 lines
Quoted 10 lines
Quoted 5 lines

-native version is failing on hosts with older gcc (like Ubuntu 12.04 with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?

Quoted 2 lines
Quoted 2 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

---
.../efivar/0001-efivar-fix-for-cross-compile.patch | 31

++++++++++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28

+++++++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/efivar/efivar_git.bb | 18

-------------

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
3 files changed, 59 insertions(+), 18 deletions(-)

create mode 100644

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

diff --git

a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 1 line
Quoted 1 line

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 0000000..4bd7d95
--- /dev/null
+++

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Review line 1

Quoted 2 lines
(quoted diff) +1 -0
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00

2001

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

Quoted 5 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +5 -0
+From: Kai Kang <[email protected]>
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file

which

Quoted 27 lines
Quoted 27 lines
Quoted 18 lines
Quoted 18 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +18 -0
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+    $(CC) $(cflags) -o $@ $^ -ldl
+
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file +7 -0
++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+    $(CC) $(cflags) -c -o guidlist.o guids.S
+--
+2.6.0.rc2.10.gf4d9753
+
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb line 2

Quoted 7 lines

new file mode 100644
index 0000000..2e3b643

meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +2 -0
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to

the

Quoted 31 lines
Quoted 31 lines

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +4 -0
+HOMEPAGE = "https://github.com/rhinstaller/efivar"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"

Quoted 6 lines

meta-oe/recipes-extended/efivar/efivar_0.21.bb

Quoted 6 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +6 -0
+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = "

file://0001-efivar-fix-for-cross-compile.patch"

Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +9 -0
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+    oe_runmake -C src makeguids
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-extended/efivar/efivar_0.21.bb new file +7 -0
+}
+
+do_install_class-native() {
+    install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
(quoted diff) +0 -0

b/meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

meta-oe/recipes-extended/efivar/efivar_git.bb line 2

Quoted 7 lines

deleted file mode 100644
index 18446a0..0000000

meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -2
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to

the

Quoted 38 lines
Quoted 31 lines

UEFI variable facility"

Quoted 4 lines

meta-oe/recipes-extended/efivar/efivar_git.bb

Quoted 4 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -4
-HOMEPAGE = "https://github.com/vathpela/efivar"
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"

Quoted 16 lines
Quoted 13 lines
meta-oe/recipes-extended/efivar/efivar_git.bb deleted +0 -13
-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-    oe_runmake install DESTDIR=${D}
-}
--
Quoted 2 lines

2.6.0.rc2.10.gf4d9753

Quoted 7 lines

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw

PATCH 2/2 efibootmgr: 0.6.0 -> 0.12

In reply to [email protected]

From: Kai Kang <[email protected]>

Upgrade efibootmgr from 0.6.0 to 0.12.

* update HOMEPAGE
* drop useless patches
* add dependency efivar
* update CFLAGS to fix print wrong version issue

---
 .../recipes-extended/efibootmgr/efibootmgr_0.12.bb | 27 +++++++++++++++++++++
 .../efibootmgr/efibootmgr_0.6.0.bb                 | 26 --------------------
 .../efibootmgr/files/docbook-fixes.patch           | 28 ----------------------
 .../files/w-keep-existing-mbr-signature.patch      | 26 --------------------
 4 files changed, 27 insertions(+), 80 deletions(-)
 create mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb
 delete mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
 delete mode 100644 meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch
 delete mode 100644 meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch
meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb new file +27 -0
new file mode 100644
index 0000000..03aaf13
@@ -0,0 +1,27 @@
+DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager."
+SUMMARY = "EFI Boot Manager"
+HOMEPAGE = "https://github.com/rhinstaller/efibootmgr"
+SECTION = "base"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
+
+DEPENDS = "pciutils zlib efivar"
+
+COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
+
+SRC_URI = "https://github.com/rhinstaller/efibootmgr/releases/download/${BP}/${BP}.tar.bz2 \
+           file://ldflags.patch \
+          "
+
+SRC_URI[md5sum] = "6647f5cd807bc8484135ba74fcbcc39a"
+SRC_URI[sha256sum] = "a66f5850677e86255d93cb1cead04c3c48a823a2b864c579321f2a07f00256e6"
+
+EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/include `pkg-config --cflags efivar` \
+                 -DEFIBOOTMGR_VERSION=\"$(RELEASE_MAJOR).$(RELEASE_MINOR)\" '"
+
+do_install () {
+    install -D -p -m0755 src/efibootmgr/efibootmgr ${D}/${sbindir}/efibootmgr
+}
+
+inherit pkgconfig
meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb deleted +0 -26
deleted file mode 100644
index 501ff2a..0000000
@@ -1,26 +0,0 @@
-DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager."
-SUMMARY = "EFI Boot Manager"
-HOMEPAGE = "http://linux.dell.com/efibootmgr/"
-SECTION = "base"
-
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
-
-DEPENDS = "pciutils zlib"
-
-COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
-
-SRC_URI = "http://linux.dell.com/efibootmgr/permalink/efibootmgr-${PV}.tar.gz \
-    file://ldflags.patch \
-    file://docbook-fixes.patch \
-    file://w-keep-existing-mbr-signature.patch \
-"
-
-SRC_URI[md5sum] = "9e9a31d79e579644de83a14139b66d10"
-SRC_URI[sha256sum] = "5167488b92950e60028d1025942ce6bda04638c6fb5e110abb8c8f687844d155"
-
-EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/lib -I${S}/src/include -fgnu89-inline'"
-
-do_install () {
-    install -D -p -m0755 src/efibootmgr/efibootmgr ${D}/${sbindir}/efibootmgr
-}
meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch deleted +0 -28
deleted file mode 100644
index f2dc83b..0000000
@@ -1,28 +0,0 @@
-Upstream-Status: Pending
-
-Import this patch from meta-linaro.
-
-Signed-off-by: Kai Kang <[email protected]>
-
-diff --git a/src/man/man8/efibootmgr.8.docbook b/src/man/man8/efibootmgr.8.docbook
-index aef4444..eb8f266 100644
---- a/src/man/man8/efibootmgr.8.docbook
-+++ b/src/man/man8/efibootmgr.8.docbook
-@@ -302,7 +302,7 @@
-           <title>Displaying the current settings (must be root).</title>
-           
-           <para>
--            <computeroutput>
-+            <programlisting>
-   [root@localhost ~]# efibootmgr
-   BootCurrent: 0004
-   BootNext: 0003
-@@ -313,7 +313,7 @@
-   Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233)   
-   Boot0003* PXE Boot: MAC(00D0B7C15D91)               
-   Boot0004* Linux
--            </computeroutput>
-+            </programlisting>
-           </para>
-           <para>This shows:</para>
-           <itemizedlist>
meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch deleted +0 -26
deleted file mode 100644
index 58bd135..0000000
@@ -1,26 +0,0 @@
-Upstream-Status: Pending
-
-Import this patch from meta-linaro.
-
-Signed-off-by: Kai Kang <[email protected]>
----
-Description: Fix -w option to leave an existing unique MBR signature intact
- This makes the implementation match the documentation.
-Author: Colin Watson <[email protected]>
-Bug-Ubuntu: https://bugs.launchpad.net/bugs/1065261
-Forwarded: no
-Last-Update: 2013-02-01
-
-Index: b/src/lib/disk.c
-===================================================================
---- a/src/lib/disk.c
-+++ b/src/lib/disk.c
-@@ -352,7 +352,7 @@
- 		printf("******************************************************\n\n");
- 		
- 	}
--	else if (opts.write_signature) {
-+	else if (!mbr->unique_mbr_signature && opts.write_signature) {
- 		
- 		/* MBR Signatures must be unique for the 
- 		   EFI Boot Manager
Signature · 1 line
2.6.0.rc2.10.gf4d9753
author
#10 lore raw
In reply to [email protected]
Quoted 7 lines · On 2015年09月29日 15:04, [email protected] wrote:

From: Kai Kang <[email protected]>

Hi Martin,

V2 only affects efivar commit:
* update git repo - the previous repo uri is a clone of the official repo
* add efivar-native package to provide command makeguids for efivar to avoid cross compile issue

Forgot add option '-M' for 'git format-patch', will resend it.

--Kai

Quoted 21 lines

Kai Kang (2):

   efivar: 0.7 -> 0.21
   efibootmgr: 0.6.0 -> 0.12
  .../recipes-extended/efibootmgr/efibootmgr_0.12.bb | 27 +++++++++++++++++++
  .../efibootmgr/efibootmgr_0.6.0.bb                 | 26 ------------------
  .../efibootmgr/files/docbook-fixes.patch           | 28 -------------------
  .../files/w-keep-existing-mbr-signature.patch      | 26 ------------------
  .../efivar/0001-efivar-fix-for-cross-compile.patch | 31 ++++++++++++++++++++++
  meta-oe/recipes-extended/efivar/efivar_0.21.bb     | 28 +++++++++++++++++++
  meta-oe/recipes-extended/efivar/efivar_git.bb      | 18 -------------
  7 files changed, 86 insertions(+), 98 deletions(-)

create mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb
delete mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
delete mode 100644 meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch delete mode 100644 meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch create mode 100644 meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

Signature · 2 lines
Regards,
Neil | Kai Kang