• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The ChromiumOS Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4"""Functions related to Intel Soc components.
5
6See proto definitions for descriptions of arguments.
7"""
8
9load("//config/util/component.star", "comp")
10
11def _family(name):
12    """Builds a Component.Soc.Family proto."""
13    return comp.create_soc_family(name = name)
14
15def _model(family, model, cores):
16    """Builds a Component proto for an Intel Soc."""
17    return comp.create_soc_model(
18        family = family,
19        model = "Intel(R) Celeron(R) N{} CPU @ 1.10GHz".format(model),
20        cores = cores,
21        id = "IntelR_CeleronR_N{}_CPU_1_10GHz".format(model),
22    )
23
24intel_soc = struct(
25    family = _family,
26    model = _model,
27)
28