samples/board/x86_info: move to tests directory

This application's primary purpose is to provide some useful data to
the author of an x86 board support package for Zephyr-- it's not a
good sample.  It's not a good test either, but as a test it at least
prevents regressions in multiboot/ACPI builds.

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
Charles E. Youse 2019-09-27 15:56:30 -04:00 committed by Andrew Boie
commit dc8b3b1094
10 changed files with 8 additions and 10 deletions

View file

@ -1,6 +0,0 @@
sample:
description: Tool to illustrate the use of some x86-specific kernel
interfaces, and also to provide information about x86-based platforms
(memory map, CPU information, timer frequencies) useful when bringing
up new boards.
name: x86 platform information tool

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2019 Intel Corp.
cmake_minimum_required(VERSION 3.8.2)
cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(x86_info)

View file

@ -4,7 +4,7 @@
*/
#include <zephyr.h>
#include "x86_info.h"
#include "info.h"
__weak void multiboot(void)
{
@ -18,12 +18,12 @@ __weak void acpi(void)
void main(void)
{
printk("\n\nx86_info: the Zephyr x86 platform information tool\n\n");
printk("\n\ninfo: the Zephyr x86 platform information tool\n\n");
multiboot();
memmap();
acpi();
timer();
printk("x86_info: complete\n");
printk("info: complete\n");
}

View file

@ -0,0 +1,4 @@
tests:
arch.x86.info:
arch_whitelist: x86
platform_whitelist: up_squared