Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user apps Kconfig for settings #121

Merged
merged 2 commits into from
Jan 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions board/discoveryf4/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,20 @@ CONFIG_PANIC_DUMP_STACK=y
# CONFIG_CRYP_USER_IRQ is not set
# CONFIG_HASH_RNG_USER_IRQ is not set
# CONFIG_FPU_USER_IRQ is not set

#
# User Space
#
CONFIG_BUILD_USER_APPS=y

#
# Apps
#
CONFIG_PINGPONG=y

#
# Test Cases
#
# CONFIG_EXTI_INTERRUPT_TEST is not set
CONFIG_L4_TEST=y
# CONFIG_LCD_TEST is not set
14 changes: 13 additions & 1 deletion board/discoveryf429/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ CONFIG_PANIC_DUMP_STACK=y
# CONFIG_LOADER is not set

#
# Test Case
# User Space
#
CONFIG_BUILD_USER_APPS=y

#
# Apps
#
CONFIG_PINGPONG=y

#
# Test Cases
#
CONFIG_EXTI_INTERRUPT_TEST=y
CONFIG_L4_TEST=y
CONFIG_LCD_TEST=y
14 changes: 13 additions & 1 deletion board/stm32p103/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ CONFIG_PANIC_DUMP_STACK=y
# CONFIG_LOADER is not set

#
# Test Case
# User Space
#
CONFIG_BUILD_USER_APPS=y

#
# Apps
#
CONFIG_PINGPONG=y

#
# Test Cases
#
CONFIG_EXTI_INTERRUPT_TEST=y
CONFIG_L4_TEST=y
# CONFIG_LCD_TEST is not set
17 changes: 12 additions & 5 deletions user/Kconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Copyright (c) 2015 The F9 Microkernel Project. All rights reserved.
# Copyright (c) 2015-2017 The F9 Microkernel Project. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

menu "Test Case"
config EXTI_INTERRUPT_TEST
bool "EXTI interrupt test case"
menu "User Space"

config BUILD_USER_APPS
bool "Build user applications for F9 microkernel"
default n
depends on EXTI0_USER_IRQ && EXTI1_USER_IRQ
---help---
Enable this options to will compile userspace apps
into f9-kernel, This may let you unable to use kdb.

source "user/Kconfig.apps"

source "user/Kconfig.tests"

endmenu
12 changes: 12 additions & 0 deletions user/Kconfig.apps
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (c) 2016 The F9 Microkernel Project. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

menu "Apps"
depends on BUILD_USER_APPS

config PINGPONG
bool "Pingpong game"
default n

endmenu
21 changes: 21 additions & 0 deletions user/Kconfig.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2016 The F9 Microkernel Project. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

menu "Test Cases"
depends on BUILD_USER_APPS

config EXTI_INTERRUPT_TEST
bool "EXTI interrupt test case"
default n
depends on EXTI0_USER_IRQ && EXTI1_USER_IRQ

config L4_TEST
bool "L4 Test Cases"
default n

config LCD_TEST
bool "LCD Test Cases"
default n

endmenu
22 changes: 16 additions & 6 deletions user/apps/build.mk
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
# Copyright (c) 2013 The F9 Microkernel Project. All rights reserved.
# Copyright (c) 2013,2017 The F9 Microkernel Project. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

user-apps-dirs = \
l4test \
pingpong
ifdef CONFIG_BUILD_USER_APPS

user-apps-dirs = ""

ifdef CONFIG_L4_TEST
user-apps-dirs += \
l4test
endif

ifdef CONFIG_PINGPONG
user-apps-dirs += \
pingpong
endif

ifdef CONFIG_EXTI_INTERRUPT_TEST
user-apps-dirs += \
irq_test
else
ifdef CONFIG_BOARD_STM32F429DISCOVERY
endif

ifdef CONFIG_LCD_TEST
user-apps-dirs += \
lcd_test
endif
Expand Down