• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Copyright 2020 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# See generated commit message for details on script.
7
8project=$1
9name=restructure-platform-config
10
11changes=$(git status | grep "sw_build_config")
12if [[ -n "${changes}" ]]; then
13  echo "For ${project}, uploading: ${changes}"
14  git add -u
15  git commit -m"
16${project}: Regenerated platform config structure
17
18With multi cros_workon projects in portage, only one directory per
19project can be watched.  This creates a problem for intermixing manually
20crafted files (e.g. audio config, thermal config, etc...) and
21autogenerated config files.
22
23To support this and keep it obvious as to what's autogenerated at what's
24not, the directory structure is being inverted for sw_build_config where
25generated will be pushed down to the lower layers in the file tree so
26that other manually crafted files can also be managed as necessary.
27
28cros_workon will then watch the entire chromeos-config structure.
29
30This also starts generated the arc config files (since all projects are being updated).
31
32BUG=None
33TEST=cq
34"
35
36  repo upload --no-verify --ht="${name}"
37fi
38