Skip to content

Commit 3b459e8

Browse files
authored
Merge pull request #4356 from BernardXiong/master
[bsp][x86] update x86 with Kconfig and newlib toolchains.
2 parents b204651 + 2da5d4a commit 3b459e8

35 files changed

+1281
-1020
lines changed

bsp/x86/.config

Lines changed: 535 additions & 0 deletions
Large diffs are not rendered by default.

bsp/x86/Kconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
mainmenu "RT-Thread Configuration"
2+
3+
config $BSP_DIR
4+
string
5+
option env="BSP_ROOT"
6+
default "."
7+
8+
config $RTT_DIR
9+
string
10+
option env="RTT_ROOT"
11+
default "../.."
12+
13+
config $PKGS_DIR
14+
string
15+
option env="PKGS_ROOT"
16+
default "packages"
17+
18+
source "$RTT_DIR/Kconfig"
19+
source "$PKGS_DIR/Kconfig"
20+
21+
config IA32
22+
bool
23+
select ARCH_IA32
24+
select RT_USING_COMPONENTS_INIT
25+
select RT_USING_USER_MAIN
26+
default y

bsp/x86/Makefile

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

bsp/x86/SConscript

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# for module compiling
21
import os
3-
Import('RTT_ROOT')
2+
from building import *
43

5-
cwd = str(Dir('#'))
4+
cwd = GetCurrentDir()
65
objs = []
76
list = os.listdir(cwd)
87

bsp/x86/applications/application.c

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

bsp/x86/applications/main.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
*/
8+
#include <stdio.h>
9+
#include <stdlib.h>
10+
11+
int main(void)
12+
{
13+
printf("hello!\n");
14+
15+
return 0;
16+
}

bsp/x86/applications/mnt.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
*/
8+
#include <rtthread.h>
9+
10+
extern int rt_floppy_init(void);
11+
12+
int mnt_init(void)
13+
{
14+
rt_floppy_init();
15+
16+
return 0;
17+
}

bsp/x86/applications/startup.c

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

0 commit comments

Comments
 (0)