Commit 7c85f4b2 authored by Anas Nashif's avatar Anas Nashif
Browse files

samples: remove board_shell



This sample is not working on all boards anymore. Adding every single
shell we have to the prj.conf does not work on every board, due to
missing features.

Instead, we now change how shell modules are enabled and make it
possible to enable shell command and modules for any application when
CONFIG_SHELL is enabled.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent cd8f46b9
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(board_shell)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})

tests/boards/board_shell/prj.conf

deleted100644 → 0
+0 −31
Original line number Diff line number Diff line
CONFIG_SHELL=y
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_KERNEL_SHELL=y
CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_BOOT_BANNER=n
CONFIG_THREAD_NAME=y
CONFIG_DEVICE_SHELL=y
CONFIG_TEST_SHELL=y
CONFIG_HWINFO=y
CONFIG_HWINFO_SHELL=y
CONFIG_GPIO_SHELL=y
CONFIG_GPIO=y
CONFIG_FLASH=y
CONFIG_FLASH_SHELL=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_MAP_SHELL=y
CONFIG_ADC=y
CONFIG_ADC_SHELL=y
CONFIG_CAN=y
CONFIG_CAN_SHELL=y
CONFIG_PWM=y
CONFIG_PWM_SHELL=y
CONFIG_EEPROM=y
CONFIG_EEPROM_SHELL=y
CONFIG_SENSOR=y
CONFIG_SENSOR_SHELL=y
CONFIG_DAC=y
CONFIG_DAC_SHELL=y
+0 −20
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr.h>
#include <sys/printk.h>
#include <shell/shell.h>
#include <shell/shell_uart.h>
#include <version.h>
#include <logging/log.h>
#include <stdlib.h>

LOG_MODULE_REGISTER(app);

void main(void)
{

}
+0 −5
Original line number Diff line number Diff line
tests:
  boards.shell.shell:
    tags: shell
    harness: keyboard
    platform_whitelist: nrf52840dk_nrf52840 frdm_k64f