Add helpers for updating arm tools in CIPD (flutter/engine#39458)
This commit is contained in:
@@ -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
|
||||
|
||||
1
engine/src/flutter/impeller/tools/malioc.json
Normal file
1
engine/src/flutter/impeller/tools/malioc.json
Normal file
File diff suppressed because one or more lines are too long
2
engine/src/flutter/tools/cipd/malioc/.gitignore
vendored
Normal file
2
engine/src/flutter/tools/cipd/malioc/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Don't accidentally check in the Arm Tools.
|
||||
arm-tools/
|
||||
22
engine/src/flutter/tools/cipd/malioc/README.md
Normal file
22
engine/src/flutter/tools/cipd/malioc/README.md
Normal 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
|
||||
5
engine/src/flutter/tools/cipd/malioc/cipd.yaml
Normal file
5
engine/src/flutter/tools/cipd/malioc/cipd.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
package: flutter_internal/tools/arm-tools
|
||||
description: Tools for analyzing shaders
|
||||
install_mode: copy
|
||||
data:
|
||||
- dir: arm-tools
|
||||
11
engine/src/flutter/tools/cipd/malioc/generate.sh
Executable file
11
engine/src/flutter/tools/cipd/malioc/generate.sh
Executable 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"
|
||||
Reference in New Issue
Block a user