Skip to content

Commit bc1644c

Browse files
authored
Merge pull request #165 from f9micro/use-kconfiglib
build: Migrate to Kconfiglib
2 parents 66036cb + ad165c0 commit bc1644c

54 files changed

Lines changed: 133 additions & 23269 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*.swo
1414
*.out
1515
build/
16+
tools/kconfig/
1617
tags
1718
core
1819
.config

Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2013 The F9 Microkernel Project. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
mainmenu "F9 Microkernel Configurations"
6+
7+
source "board/Kconfig"
8+
source "platform/Kconfig"
9+
source "kernel/Kconfig"
10+
source "loader/Kconfig"
11+
source "user/Kconfig"

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ $(eval BOARD_$(BOARD)=y)
5151

5252
# Kconfig files to use
5353
KCONFIG_FILES = \
54+
board/Kconfig \
5455
platform/Kconfig \
5556
kernel/Kconfig \
5657
loader/Kconfig \

board/Kconfig

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright (c) 2013 The F9 Microkernel Project. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
menu "Board"
6+
7+
choice
8+
prompt "Target Board"
9+
default BOARD_STM32F4DISCOVERY
10+
help
11+
Select the target board for F9 Microkernel.
12+
13+
config BOARD_STM32F4DISCOVERY
14+
bool "STM32F4 Discovery"
15+
select PLATFORM_STM32F4
16+
help
17+
STM32F4 Discovery board with STM32F407VGT6 MCU.
18+
19+
config BOARD_STM32F429DISCOVERY
20+
bool "STM32F429 Discovery"
21+
select PLATFORM_STM32F429
22+
help
23+
STM32F429 Discovery board with STM32F429ZIT6 MCU and LCD.
24+
25+
config BOARD_STM32P103
26+
bool "Olimex STM32-P103"
27+
select PLATFORM_STM32F1
28+
help
29+
Olimex STM32-P103 board with STM32F103RBT6 MCU.
30+
31+
endchoice
32+
33+
endmenu
34+
35+
# Platform symbols (selected by board choice)
36+
config PLATFORM_STM32F4
37+
bool
38+
39+
config PLATFORM_STM32F429
40+
bool
41+
42+
config PLATFORM_STM32F1
43+
bool

external/kconfig/.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)