Skip to contentSkip to conversation

xen: Fix menuconfig and add support for config fragments and diffconfig

PATCH In review Diego Sueiro 3 participants 8 messages Aug 14, 2020 – Aug 27, 2020 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen: Fix menuconfig and add support for config fragments and diffconfig

Changes in v2:
- Fixed typo in recipes-extended/xen/README
- Removed documentation changes from 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Updated Upstream-Status in 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Call find_cfgs function only once in recipes-extended/xen/xen-hypervisor.inc

Diego Sueiro (1):
xen: Fix menuconfig and add support for config fragments and
diffconfig

 recipes-extended/xen/README                        |  3 ++
 ...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
 recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
 recipes-extended/xen/xen_4.14.bb                   |  1 +
 recipes-extended/xen/xen_git.bb                    |  1 +
 5 files changed, 73 insertions(+), 30 deletions(-)
 create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#1 lore raw

PATCH v2 1/1 xen: Fix menuconfig and add support for config fragments and diffconfig

This patch introduces the following changes:

1. When building in OE environment the linker path needs to be passed when buildind the Kconfig tool in order to get the menuconfig task properly working.

2. By inheriting cml1.bbclass we can drop some environment variables settings in xen-hypervisor.inc for the menuconfig task, and also be able to search for config fragmens and use the diffconfig task. Also, there is no need to have a custom do_menuconfig task anymore.

Change-Id I8d61ec76d92de7d1613b79edf55b4868fe712334
---
 recipes-extended/xen/README                        |  3 ++
 ...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
 recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
 recipes-extended/xen/xen_4.14.bb                   |  1 +
 recipes-extended/xen/xen_git.bb                    |  1 +
 5 files changed, 73 insertions(+), 30 deletions(-)
 create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
recipes-extended/xen/README +3 -0
index 34e7977..f286bb5 100644
@@ -25,6 +25,9 @@ Select the config settings that you want and Save the file. If you save it to
 the default ".config" file when prompted by menuconfig, you can find it in the
 'xen' subdirectory of the build tree.
 
+Configuration fragments are also supported. To use them you need to list the
+.cfg files in the SRC_URI.
+
 security patches
 ----------------
 
recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch new file +49 -0

49 lines not on this page · raw message

recipes-extended/xen/xen-hypervisor.inc +19 -30

67 lines not on this page · raw message

recipes-extended/xen/xen_4.14.bb +1 -0
index 0413bee..91e8988 100644
@@ -6,6 +6,7 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
 SRC_URI = " \
     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
     file://xen-arm64-implement-atomic-fetch-add.patch \
+    file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \
     "
 
 LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
recipes-extended/xen/xen_git.bb +1 -0
index 408bc3b..57791fc 100644
@@ -6,6 +6,7 @@ XEN_BRANCH ?= "master"
 SRC_URI = " \
     git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
     file://xen-arm64-implement-atomic-fetch-add.patch \
+    file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \
     "
 
 LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#2 lore raw
In reply to Diego Sueiro

In message: [meta-virtualization][PATCH v2] xen: Fix menuconfig and add support for config fragments and diffconfig

Quoted 5 lines · on 14/08/2020 Diego Sueiro wrote:

Changes in v2:
- Fixed typo in recipes-extended/xen/README
- Removed documentation changes from 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Updated Upstream-Status in 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Call find_cfgs function only once in recipes-extended/xen/xen-hypervisor.inc

v2 looks good to me.

Christopher, do you agree ?

Bruce

Quoted 19 lines

Diego Sueiro (1):
xen: Fix menuconfig and add support for config fragments and
diffconfig

 recipes-extended/xen/README                        |  3 ++
 ...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
 recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
 recipes-extended/xen/xen_4.14.bb                   |  1 +
 recipes-extended/xen/xen_git.bb                    |  1 +
 5 files changed, 73 insertions(+), 30 deletions(-)
 create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Reviewed-by
#3 lore raw
Quoted 14 lines · Bruce Ashfield via lists.yoctoproject.org

In message: [meta-virtualization][PATCH v2] xen: Fix menuconfig and add support for config fragments and diffconfig

Quoted 5 lines · on 14/08/2020 Diego Sueiro wrote:

Changes in v2:
- Fixed typo in recipes-extended/xen/README
- Removed documentation changes from 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Updated Upstream-Status in 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Call find_cfgs function only once in recipes-extended/xen/xen-hypervisor.inc

Quoted 3 lines

v2 looks good to me.

Christopher, do you agree ?

I tested it and it worked for me, including modifying the xen configuration.

So you can add my:

Quoted 24 lines

Bruce

Quoted 19 lines

Diego Sueiro (1):
xen: Fix menuconfig and add support for config fragments and
diffconfig

recipes-extended/xen/README                        |  3 ++
...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
recipes-extended/xen/xen_4.14.bb                   |  1 +
recipes-extended/xen/xen_git.bb                    |  1 +
5 files changed, 73 insertions(+), 30 deletions(-)

create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

Gentle ping :-)

Bertrand

Quoted 52 lines · Bertrand Marquis via lists.yoctoproject.org
Quoted 15 lines · Bruce Ashfield via lists.yoctoproject.org

In message: [meta-virtualization][PATCH v2] xen: Fix menuconfig and add support for config fragments and diffconfig

Quoted 5 lines · on 14/08/2020 Diego Sueiro wrote:

Changes in v2:
- Fixed typo in recipes-extended/xen/README
- Removed documentation changes from 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Updated Upstream-Status in 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Call find_cfgs function only once in recipes-extended/xen/xen-hypervisor.inc

Quoted 3 lines

v2 looks good to me.

Christopher, do you agree ?

I tested it and it worked for me, including modifying the xen configuration.

So you can add my:

Quoted 24 lines

Bruce

Quoted 19 lines

Diego Sueiro (1):
xen: Fix menuconfig and add support for config fragments and
diffconfig

recipes-extended/xen/README                        |  3 ++
...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
recipes-extended/xen/xen_4.14.bb                   |  1 +
recipes-extended/xen/xen_git.bb                    |  1 +
5 files changed, 73 insertions(+), 30 deletions(-)

create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#6 lore raw

I was waiting on something from Christopher on this, but as it turns out .. I was going to do a merge of the pending queue now that some oe-core work is done.

So your timing is good. It should be in the tree by EOD.

Bruce

Quoted 59 lines · Bertrand Marquis

Gentle ping :-)

Bertrand

Quoted 52 lines · Bertrand Marquis via lists.yoctoproject.org
Quoted 15 lines · Bruce Ashfield via lists.yoctoproject.org

In message: [meta-virtualization][PATCH v2] xen: Fix menuconfig and add support for config fragments and diffconfig

Quoted 5 lines · on 14/08/2020 Diego Sueiro wrote:

Changes in v2:
- Fixed typo in recipes-extended/xen/README
- Removed documentation changes from 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Updated Upstream-Status in 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Call find_cfgs function only once in recipes-extended/xen/xen-hypervisor.inc

Quoted 3 lines

v2 looks good to me.

Christopher, do you agree ?

I tested it and it worked for me, including modifying the xen configuration.

So you can add my:

Quoted 24 lines

Bruce

Quoted 19 lines

Diego Sueiro (1):
xen: Fix menuconfig and add support for config fragments and
diffconfig

recipes-extended/xen/README                        |  3 ++
...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
recipes-extended/xen/xen_4.14.bb                   |  1 +
recipes-extended/xen/xen_git.bb                    |  1 +
5 files changed, 73 insertions(+), 30 deletions(-)

create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#7 lore raw
Quoted 10 lines · Bruce Ashfield

I was waiting on something from Christopher on this, but as it turns out .. I was going to do a merge of the pending queue now that some oe-core work is done.

So your timing is good. It should be in the tree by EOD.

I have a recurrent task to check for pending pushes on different mailing lists ;-)

Perfect thanks a lot :-)

Bertrand

Quoted 70 lines

Bruce

Quoted 59 lines · Bertrand Marquis

Gentle ping :-)

Bertrand

Quoted 52 lines · Bertrand Marquis via lists.yoctoproject.org
Quoted 15 lines · Bruce Ashfield via lists.yoctoproject.org

In message: [meta-virtualization][PATCH v2] xen: Fix menuconfig and add support for config fragments and diffconfig

Quoted 5 lines · on 14/08/2020 Diego Sueiro wrote:

Changes in v2:
- Fixed typo in recipes-extended/xen/README
- Removed documentation changes from 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Updated Upstream-Status in 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Call find_cfgs function only once in recipes-extended/xen/xen-hypervisor.inc

Quoted 3 lines

v2 looks good to me.

Christopher, do you agree ?

I tested it and it worked for me, including modifying the xen configuration.

So you can add my:

Quoted 24 lines

Bruce

Quoted 19 lines

Diego Sueiro (1):
xen: Fix menuconfig and add support for config fragments and
diffconfig

recipes-extended/xen/README                        |  3 ++
...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
recipes-extended/xen/xen_4.14.bb                   |  1 +
recipes-extended/xen/xen_git.bb                    |  1 +
5 files changed, 73 insertions(+), 30 deletions(-)

create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#8 lore raw
In reply to Diego Sueiro

v2 is merged (which is now a 1 patch series, versus the original 2 patch series).

If I've got that wrong, let me know!

Bruce

In message: [meta-virtualization][PATCH v2] xen: Fix menuconfig and add support for config fragments and diffconfig

Quoted 24 lines · on 14/08/2020 Diego Sueiro wrote:

Changes in v2:
- Fixed typo in recipes-extended/xen/README
- Removed documentation changes from 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Updated Upstream-Status in 0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch
- Call find_cfgs function only once in recipes-extended/xen/xen-hypervisor.inc

Diego Sueiro (1):
xen: Fix menuconfig and add support for config fragments and
diffconfig

 recipes-extended/xen/README                        |  3 ++
 ...g-Allow-specification-of-ncurses-location.patch | 49 ++++++++++++++++++++++
 recipes-extended/xen/xen-hypervisor.inc            | 49 +++++++++-------------
 recipes-extended/xen/xen_4.14.bb                   |  1 +
 recipes-extended/xen/xen_git.bb                    |  1 +
 5 files changed, 73 insertions(+), 30 deletions(-)
 create mode 100644 recipes-extended/xen/files/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.