[Webkit-unassigned] [Bug 249604] New: [WPE] Add support for generating a cross toolchain, images and cross building easily for a set of curated embedded targets with Yocto

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 19 13:15:56 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249604

            Bug ID: 249604
           Summary: [WPE] Add support for generating a cross toolchain,
                    images and cross building easily for a set of curated
                    embedded targets with Yocto
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clopez at igalia.com
                CC: angelos at igalia.com, bugs-noreply at webkitgtk.org,
                    psaavedra at igalia.com

It will be a good idea to have built-in support in the WebKit tooling scripts for building WebKit for different embedded boards with curated configurations.

This support would be used by the upcoming performance-bot  ( see bug 249031 ) for building WebKit for the target board.

This should allow to do the following:

- Build the cross-toolchain from scratch from the configuration files
- Build WebKit with this cross-toolchain
- Build an image for the target board (without WebKit)
- Generate a release.zip archive with WebKit for the board
- Detect when the configuration files change and rebuild the toolchain and WebKit

Proposed implementation:

1.
$ Tools/Scripts/build-webkit --wpe --release --cross-target=rpi3-32bits-mesa
This does:
 - If still not built, then builds cross-toolchain for embedded target: rpi3-32bits-mesa
 - Builds WebKit with the previous toolchain

2.
Tools/Scripts/cross-toolchain-helper --cross-target=rpi3-32bits-mesa --build-image 
This does:
  - Generates an image for the rpi3 that you can flash to an SDCard and boot with it.
  - Note: the image doesn't include WebKit (WPE) itself, but it includes everything needed to build WebKit or run tests.

3.
$ Tools/CISupport/built-product-archive --platform=wpe --release --cross-target=rpi3-32bits-mesa archive
This does:
 - Generates 'release.zip' with the built-product for the embedded target: rpi3-32bits-mesa
 - You can copy this 'release.zip' to the board running the image above and run the minibrowser or any test (like layout tests or perf tests) with this


For more details and examples, check the file: Tools/yocto/README.md on the upcoming patch.

Related: bug 249031

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221219/5ddd0568/attachment-0001.htm>


More information about the webkit-unassigned mailing list