Skip to contentSkip to conversation

Document changes in WIC and Go language

PATCH Applied [email protected] 2 participants 11 messages Apr 4, 2024

lore
Share & tools
lore
#0 lore raw

cover Document changes in WIC and Go language

From: Joao Marcos Costa <[email protected]>

Hello,

This series targets the enhancements in WIC Image Creator, as well as the changes in Go language. The latter spread into multiple sections.

Best regards,

Joao Marcos Costa (5):
release-notes: add changes to wic
release-notes: add changes to Go language
release-notes: add Go language upgrade
migration: add Go language changes
release-notes: add create_go.py to script changes

 .../migration-guides/migration-5.0.rst        |  4 ++++
 .../migration-guides/release-notes-5.0.rst    | 22 +++++++++++++++++++
 2 files changed, 26 insertions(+)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/5 release-notes: add changes to wic

From: Joao Marcos Costa <[email protected]>

Summarize changes in 'wic Image Creator enhancements' item.

---
 .../migration-guides/release-notes-5.0.rst         | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +14 -0
index adc1597bb..a56995cc9 100644
@@ -26,6 +26,20 @@ New Features / Enhancements in 5.0
 
 -  wic Image Creator enhancements:
 
+   -  Allow the imager's output file extension to match the imager's name,
+      instead of hardcoding it to 'direct' (i.e., the default imager)
+
+   -  For GPT-based disks, add reproducible Disk GUID generation
+
+   -  Allow generating reproducible ext4 images
+
+   -  Add feature to fill a specific range of a partition with zeros
+
+   -  ``bootimg-efi``: add ``install-kernel-into-boot-dir`` parameter to
+      configure kernel installation point(s) (i.e., rootfs and/or boot partition)
+
+   -  ``rawcopy``: add support for zstd decompression
+
 -  SDK-related improvements:
 
 -  Testing:
Signature · 1 line
2.43.0
Reviewed-by on v1 1/5 Applied
#2 lore raw

Re: [PATCH v1 1/5] release-notes: add changes to wic

Hi João,

Thanks for the new notes!

Quoted 14 lines · On 4/4/24 at 18:56, [email protected] wrote:

From: Joao Marcos Costa <[email protected]>

Summarize changes in 'wic Image Creator enhancements' item.

---
  .../migration-guides/release-notes-5.0.rst         | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +0 -0
index adc1597bb..a56995cc9 100644

documentation/migration-guides/release-notes-5.0.rst New Features / Enhancements in 5.0 · line 30

Quoted 5 lines
documentation/migration-guides/release-notes-5.0.rst +2 -0
@@ -26,6 +26,20 @@ New Features / Enhancements in 5.0
 
  -  wic Image Creator enhancements:
 
+   -  Allow the imager's output file extension to match the imager's name,
+      instead of hardcoding it to 'direct' (i.e., the default imager)

I replaced 'direct' by ``direct``.
Let me know if I was wrong. Not too late to change.

Merged into "master-next".
Cheers
Michael

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 2/5 release-notes: add changes to Go language

In reply to [email protected]

From: Joao Marcos Costa <[email protected]>

Mention the new class 'go-vendor' in 'Miscellaneous changes'.

---
 documentation/migration-guides/release-notes-5.0.rst | 4 ++++
 1 file changed, 4 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +4 -0
index a56995cc9..e03f722a2 100644
@@ -62,6 +62,10 @@ New Features / Enhancements in 5.0
    -  ``systemd-boot`` can, from now on, be compiled as ``native``, thus
       providing ``ukify`` tool to build UKI images.
 
+   -  The ``go-vendor`` class was added to support offline builds (i.e.,
+      vendoring). It can also handle modules from the same repository, taking
+      into account their versions.
+
 Known Issues in 5.0
 ~~~~~~~~~~~~~~~~~~~
 
Signature · 1 line
2.43.0
#4 lore raw

Re: [PATCH v1 2/5] release-notes: add changes to Go language

Hi João,

Quoted 14 lines · On 4/4/24 at 18:56, [email protected] wrote:

From: Joao Marcos Costa <[email protected]>

Mention the new class 'go-vendor' in 'Miscellaneous changes'.

---
  documentation/migration-guides/release-notes-5.0.rst | 4 ++++
  1 file changed, 4 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +0 -0
index a56995cc9..e03f722a2 100644

documentation/migration-guides/release-notes-5.0.rst New Features / Enhancements in 5.0 · line 67

Quoted 6 lines
documentation/migration-guides/release-notes-5.0.rst +3 -0
@@ -62,6 +62,10 @@ New Features / Enhancements in 5.0
     -  ``systemd-boot`` can, from now on, be compiled as ``native``, thus
        providing ``ukify`` tool to build UKI images.
 
+   -  The ``go-vendor`` class was added to support offline builds (i.e.,
+      vendoring). It can also handle modules from the same repository, taking
+      into account their versions.

Before I merge this one, could you send an update that also briefly describes this new class in ref-manual/classes.rst? This way, you will be able to make a reference to this class in the release notes too.

Thanks in advance
Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

PATCH 3/5 release-notes: add Go language upgrade

In reply to [email protected]

From: Joao Marcos Costa <[email protected]>

There were multiple bumps between Scarthgap and Nanbield, but overall the version was upgraded from 1.20.10 (in Nanbield) to 1.22.1 (in Scarthgap).

---
 documentation/migration-guides/release-notes-5.0.rst | 2 ++
 1 file changed, 2 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +2 -0
index e03f722a2..4ff05d86f 100644
@@ -85,6 +85,8 @@ Security Fixes in 5.0
 Recipe Upgrades in 5.0
 ~~~~~~~~~~~~~~~~~~~~~~
 
+-  go: update 1.20.10 -> 1.22.1
+
 Contributors to 5.0
 ~~~~~~~~~~~~~~~~~~~
 
Signature · 1 line
2.43.0
Reviewed-by on v1 3/5 Applied
#6 lore raw

Re: [PATCH v1 3/5] release-notes: add Go language upgrade

Quoted 15 lines · On 4/4/24 at 18:56, [email protected] wrote:

From: Joao Marcos Costa <[email protected]>

There were multiple bumps between Scarthgap and Nanbield, but overall the version was upgraded from 1.20.10 (in Nanbield) to 1.22.1 (in Scarthgap).

---
  documentation/migration-guides/release-notes-5.0.rst | 2 ++
  1 file changed, 2 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +0 -0
index e03f722a2..4ff05d86f 100644

documentation/migration-guides/release-notes-5.0.rst Security Fixes in 5.0 · line 91

Quoted 7 lines
documentation/migration-guides/release-notes-5.0.rst +2 -0
@@ -85,6 +85,8 @@ Security Fixes in 5.0
  Recipe Upgrades in 5.0
  ~~~~~~~~~~~~~~~~~~~~~~
 
+-  go: update 1.20.10 -> 1.22.1
+
  Contributors to 5.0
  ~~~~~~~~~~~~~~~~~~~

Merged into master-next.
Thanks!
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#7 lore raw

PATCH 4/5 migration: add Go language changes

In reply to [email protected]

From: Joao Marcos Costa <[email protected]>

---
 documentation/migration-guides/migration-5.0.rst | 4 ++++
 1 file changed, 4 insertions(+)
documentation/migration-guides/migration-5.0.rst +4 -0
index a9075c298..302d7fe5a 100644
@@ -52,6 +52,10 @@ See :ref:`all supported distributions <system-requirements-supported-distros>`.
 Go language changes
 ~~~~~~~~~~~~~~~~~~~
 
+The ``linkmode`` flag was dropped from ``GO_LDFLAGS`` for
+nativesdk/cross-canadian. Also, dynamic linking was disabled for the whole set
+of (previously) supported architectures in ``goarch`` class.
+
 .. _migration-5.0-systemd-changes:
 
 systemd changes
Signature · 1 line
2.43.0
#8 lore raw

Re: [PATCH v1 4/5] migration: add Go language changes

Hi João

Quoted 12 lines · On 4/4/24 at 18:56, [email protected] wrote:

From: Joao Marcos Costa <[email protected]>

---
  documentation/migration-guides/migration-5.0.rst | 4 ++++
  1 file changed, 4 insertions(+)
documentation/migration-guides/migration-5.0.rst +0 -0
index a9075c298..302d7fe5a 100644

documentation/migration-guides/migration-5.0.rst See :ref:`all supported distributions <system-requirements-supported-distros>`. · line 56

Quoted 5 lines
documentation/migration-guides/migration-5.0.rst +2 -0
@@ -52,6 +52,10 @@ See :ref:`all supported distributions <system-requirements-supported-distros>`.
  Go language changes
  ~~~~~~~~~~~~~~~~~~~
 
+The ``linkmode`` flag was dropped from ``GO_LDFLAGS`` for
+nativesdk/cross-canadian. Also, dynamic linking was disabled for the whole set

Did you mean ``nativesdk/cross-canadian``?
What was the commit?

documentation/migration-guides/migration-5.0.rst See :ref:`all supported distributions <system-requirements-supported-distros>`. · line 57

Quoted 1 line
documentation/migration-guides/migration-5.0.rst +1 -0
+of (previously) supported architectures in ``goarch`` class.

s/in ``goarch``/in the ``goarch``
Thanks
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#9 lore raw

PATCH 5/5 release-notes: add create_go.py to script changes

In reply to [email protected]

From: Joao Marcos Costa <[email protected]>

Mention this new script, at recipetool, in 'Utiliy script changes'.

---
 documentation/migration-guides/release-notes-5.0.rst | 2 ++
 1 file changed, 2 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +2 -0
index 4ff05d86f..1c8538986 100644
@@ -46,6 +46,8 @@ New Features / Enhancements in 5.0
 
 -  Utility script changes:
 
+   -  New ``recipetool/create_go.py`` script added to support Go recipe creation
+
 -  BitBake improvements:
 
 -  Packaging changes:
Signature · 1 line
2.43.0
Reviewed-by on v1 5/5 Applied
#10 lore raw

Re: [PATCH v1 5/5] release-notes: add create_go.py to script changes

Quoted 3 lines · On 4/4/24 at 18:56, [email protected] wrote:

From: Joao Marcos Costa <[email protected]>

Mention this new script, at recipetool, in 'Utiliy script changes'.

s/Utiliy/Utility/

Fixed!

Quoted 11 lines
---
  documentation/migration-guides/release-notes-5.0.rst | 2 ++
  1 file changed, 2 insertions(+)
documentation/migration-guides/release-notes-5.0.rst +0 -0
index 4ff05d86f..1c8538986 100644

documentation/migration-guides/release-notes-5.0.rst New Features / Enhancements in 5.0 · line 53

Quoted 8 lines
documentation/migration-guides/release-notes-5.0.rst +2 -0
@@ -46,6 +46,8 @@ New Features / Enhancements in 5.0
 
  -  Utility script changes:
 
+   -  New ``recipetool/create_go.py`` script added to support Go recipe creation
+
  -  BitBake improvements:
 
  -  Packaging changes:

Merged into master-next.

So, just need updates for 2 commits.
Please send them against "master-next".

Thanks!
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com