diff options
author | Scott Collyer <scollyer@google.com> | 2018-03-07 17:03:10 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-15 15:27:31 -0700 |
commit | 514c3b3e26edb3b05b466c5569894808cfdc4a91 (patch) | |
tree | aa423d8e1a0a6827330aedf000f1b532425e40c7 /baseboard | |
parent | abde1bca995f018f4c1df8dc24a0a33c18557871 (diff) | |
download | chrome-ec-514c3b3e26edb3b05b466c5569894808cfdc4a91.tar.gz |
ec: Add /baseboard to EC project
This CL introduces /baseboard to the EC project which can contain
config options and code which is specific to certain family, but can
be shared among the board derivatives of that family. Only the
infrastructure changes are included with an empty baseboard.c/.h for
octopus.
BRANCH=none
BUG=b:74358864
TEST='make buildall' and ensure that all boards build successfully. In
addition, temporarily moved config options for USB-C and charger to
baseboard.h and tested that 'make BOARD=yorp' is successful.
Change-Id: I16656574f835c56598a9d2bf49bc1e946d71fe76
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/954444
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/octopus/baseboard.c | 6 | ||||
-rw-r--r-- | baseboard/octopus/baseboard.h | 11 | ||||
-rw-r--r-- | baseboard/octopus/build.mk | 9 |
3 files changed, 26 insertions, 0 deletions
diff --git a/baseboard/octopus/baseboard.c b/baseboard/octopus/baseboard.c new file mode 100644 index 0000000000..aeae096cc3 --- /dev/null +++ b/baseboard/octopus/baseboard.c @@ -0,0 +1,6 @@ +/* Copyright 2018 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* Octopus family-specific configuration */ diff --git a/baseboard/octopus/baseboard.h b/baseboard/octopus/baseboard.h new file mode 100644 index 0000000000..3335d38f1a --- /dev/null +++ b/baseboard/octopus/baseboard.h @@ -0,0 +1,11 @@ +/* Copyright 2018 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* Octopus board configuration */ + +#ifndef __CROS_EC_BASEBOARD_H +#define __CROS_EC_BASEBOARD_H + +#endif /* __CROS_EC_BASEBOARD_H */ diff --git a/baseboard/octopus/build.mk b/baseboard/octopus/build.mk new file mode 100644 index 0000000000..24e4cced5f --- /dev/null +++ b/baseboard/octopus/build.mk @@ -0,0 +1,9 @@ +# -*- makefile -*- +# Copyright 2018 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# Baseboard specific files build +# + +baseboard-y=baseboard.o |