• 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# Restructures the generated platform config based on the portage needs.
7
8project=$1
9
10if [ -f "sw_build_config/platform/chromeos-config/generated/project-config.json" ]; then
11  echo "sw_build_config already exists for ${project}"
12  exit 0
13fi
14if [ ! -f "generated/project/project-config.json" ]; then
15  echo "project-config.json doesn't exist for ${project}"
16  exit 0
17fi
18mkdir -p sw_build_config/platform/chromeos-config/generated/arc
19mkdir -p sw_build_config/platform/chromeos-config/generated/bluetooth
20git mv generated/project/project-config.json sw_build_config/platform/chromeos-config/generated
21./config/bin/gen_config config.star
22git add sw_build_config/platform/chromeos-config/generated/arc/*
23git add sw_build_config/platform/chromeos-config/generated/bluetooth/*
24git add -u
25