summaryrefslogtreecommitdiff
path: root/zephyr/test/base32
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/base32')
-rw-r--r--zephyr/test/base32/CMakeLists.txt20
-rw-r--r--zephyr/test/base32/prj.conf2
2 files changed, 5 insertions, 17 deletions
diff --git a/zephyr/test/base32/CMakeLists.txt b/zephyr/test/base32/CMakeLists.txt
index 6ae6f232a9..674ad0d244 100644
--- a/zephyr/test/base32/CMakeLists.txt
+++ b/zephyr/test/base32/CMakeLists.txt
@@ -1,23 +1,9 @@
-# SPDX-License-Identifier: Apache-2.0
+# Copyright 2021 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.
cmake_minimum_required(VERSION 3.13.1)
-set(BOARD native_posix)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(base32)
-# Need to ensure that we are including only zephyr definitions in include files
-# We cannot set these via kconfig, since this unit test does not bring in the
-# zephyr-chrome repository
-zephyr_compile_definitions("CONFIG_ZEPHYR")
-
-# We need to include the EC include directory and this local test directory
-# for the task defines
-zephyr_include_directories(
- "${PLATFORM_EC}/zephyr/shim/include"
- "${PLATFORM_EC}/fuzz"
- "${PLATFORM_EC}/test"
- "${PLATFORM_EC}/include")
-
-# Include test file, test under test and console dependency
target_sources(app PRIVATE "${PLATFORM_EC}/test/base32.c")
-target_sources(app PRIVATE "${PLATFORM_EC}/common/base32.c")
diff --git a/zephyr/test/base32/prj.conf b/zephyr/test/base32/prj.conf
index 3940ec99eb..ec8c5035f5 100644
--- a/zephyr/test/base32/prj.conf
+++ b/zephyr/test/base32/prj.conf
@@ -3,3 +3,5 @@
# found in the LICENSE file.
CONFIG_ZTEST=y
+CONFIG_PLATFORM_EC=y
+CONFIG_CROS_EC=y