Add helpers for updating arm tools in CIPD (flutter/engine#39458)

This commit is contained in:
Zachary Anderson
2023-02-07 12:31:27 -08:00
committed by GitHub
parent a479b5c310
commit 30c25acf8b
6 changed files with 42 additions and 0 deletions

View File

@@ -4178,6 +4178,7 @@ FILE: ../../../flutter/impeller/toolkit/egl/egl.cc
FILE: ../../../flutter/impeller/toolkit/egl/egl.h
FILE: ../../../flutter/impeller/toolkit/egl/surface.cc
FILE: ../../../flutter/impeller/toolkit/egl/surface.h
FILE: ../../../flutter/impeller/tools/malioc.json
FILE: ../../../flutter/impeller/typographer/backends/skia/text_frame_skia.cc
FILE: ../../../flutter/impeller/typographer/backends/skia/text_frame_skia.h
FILE: ../../../flutter/impeller/typographer/backends/skia/text_render_context_skia.cc

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
# Don't accidentally check in the Arm Tools.
arm-tools/

View File

@@ -0,0 +1,22 @@
# Updating malioc
Flutter uses `malioc` from the Arm Mobile Studio to statically analyze
Impeller's shaders. See `impeller/tools/malioc_diff.py` for more information
about that.
The files in this directory are instructions for updating the `flutter_internal`
CIPD package that CI uses to obtain `malioc`.
## Steps
1. Download the Arm Mobile Studio from [Arm](https://developer.arm.com/Tools%20and%20Software/Arm%20Mobile%20Studio)
2. Extract the `.zip` archive into a directory called `arm-tools` sibling to
this file.
3. Check that the `arm-tools` directory contains a child directory
`mali_offline_compiler`. If it instead contains a child directory which
is something like `Arm_Mobile_Studio_2022.4`, then copy the contents of that
directory to `arm-tools` instead.
4. Run the `generate.sh` script in this directory.
5. Verify that the file appears [here](https://chrome-infra-packages.appspot.com/p/flutter_internal/tools).
6. Update `.ci.yaml` to refer to the new version tag echoed by `generate.sh`.
7. Delete the `arm-tools` directory

View File

@@ -0,0 +1,5 @@
package: flutter_internal/tools/arm-tools
description: Tools for analyzing shaders
install_mode: copy
data:
- dir: arm-tools

View File

@@ -0,0 +1,11 @@
#!/bin/bash
#
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
version_tag=`date +%Y-%m-%dT%T%z`
cipd create --pkg-def cipd.yaml -tag last_updated:"$version_tag"