Skip to content

Commit 04b2b72

Browse files
author
zhengchenxiao
committed
add:can choose to set the path to your local kernel repository or pull the git remote kernel repository.
1 parent 747c561 commit 04b2b72

File tree

9 files changed

+305
-79
lines changed

9 files changed

+305
-79
lines changed

models/.config

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
# CONFIG_VENDOR_NXP is not set
1+
CONFIG_TARGET_FILE=""
22
# CONFIG_VENDOR_ROCKCHIP is not set
33
CONFIG_VENDOR_QEMU=y
4-
# CONFIG_VENDOR_CVITEK is not set
54
CONFIG_BOARD_VIRT64_AARCH64=y
65
# CONFIG_BOARD_VEXPRESS_A9 is not set
76

87
#
9-
# Application Configuration
8+
# Kernel Configuration
9+
#
10+
CONFIG_KERNEL_SOURCE_GIT=y
11+
# CONFIG_KERNEL_SOURCE_LOCAL is not set
12+
# end of Kernel Configuration
13+
14+
#
15+
# Selection the desired apps Application
1016
#
1117
CONFIG_APP_BUSYBOX=y
12-
CONFIG_APP_CPP=y
13-
CONFIG_APP_FFMPEG=y
18+
CONFIG_FORCE_APP_BUSYBOX=y
19+
# CONFIG_APP_CPP is not set
20+
# CONFIG_APP_FFMPEG is not set
1421
CONFIG_APP_HELLO=y
1522
# CONFIG_APP_MICROPYTHON is not set
1623
# CONFIG_APP_PLAYER is not set
@@ -21,4 +28,4 @@ CONFIG_APP_HELLO=y
2128
# CONFIG_APP_WEBCLIENT is not set
2229
# CONFIG_APP_WEBSERVER is not set
2330
# CONFIG_APP_ZLIB is not set
24-
# end of Application Configuration
31+
# end of Selection the desired apps Application

models/.config.old

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
# CONFIG_VENDOR_NXP is not set
1+
CONFIG_TARGET_FILE=""
22
# CONFIG_VENDOR_ROCKCHIP is not set
33
CONFIG_VENDOR_QEMU=y
4-
# CONFIG_VENDOR_CVITEK is not set
54
CONFIG_BOARD_VIRT64_AARCH64=y
65
# CONFIG_BOARD_VEXPRESS_A9 is not set
76

87
#
9-
# Application Configuration
8+
# Kernel Configuration
9+
#
10+
# CONFIG_KERNEL_SOURCE_GIT is not set
11+
CONFIG_KERNEL_SOURCE_LOCAL=y
12+
CONFIG_KERNEL_LOCAL_DIR="/home/zcx/rt-thread/"
13+
# end of Kernel Configuration
14+
15+
#
16+
# Selection the desired apps Application
1017
#
1118
CONFIG_APP_BUSYBOX=y
12-
CONFIG_APP_CPP=y
13-
CONFIG_APP_FFMPEG=y
19+
CONFIG_FORCE_APP_BUSYBOX=y
20+
# CONFIG_APP_CPP is not set
21+
# CONFIG_APP_FFMPEG is not set
1422
CONFIG_APP_HELLO=y
15-
CONFIG_APP_MICROPYTHON=y
23+
# CONFIG_APP_MICROPYTHON is not set
1624
# CONFIG_APP_PLAYER is not set
1725
# CONFIG_APP_SHM_PING is not set
1826
# CONFIG_APP_SHM_PONG is not set
@@ -21,4 +29,4 @@ CONFIG_APP_MICROPYTHON=y
2129
# CONFIG_APP_WEBCLIENT is not set
2230
# CONFIG_APP_WEBSERVER is not set
2331
# CONFIG_APP_ZLIB is not set
24-
# end of Application Configuration
32+
# end of Selection the desired apps Application

models/Kconfig

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ mainmenu "Chip and Board Configuration"
1010
#
1111
choice
1212
prompt "Select Vendor"
13-
default VENDOR_NXP
13+
default VENDOR_QEMU
1414

15-
config VENDOR_NXP
16-
bool "NXP"
17-
help
18-
Select NXP vendor.
15+
#config VENDOR_NXP
16+
# bool "NXP"
17+
# help
18+
# Select NXP vendor.
1919

2020
config VENDOR_ROCKCHIP
2121
bool "Rockchip"
@@ -27,10 +27,10 @@ config VENDOR_QEMU
2727
help
2828
Select QEMU vendor.
2929

30-
config VENDOR_CVITEK
31-
bool "Cvitek"
32-
help
33-
Select Cvitek vendor.
30+
#config VENDOR_CVITEK
31+
# bool "Cvitek"
32+
# help
33+
# Select Cvitek vendor.
3434

3535
endchoice
3636

@@ -178,16 +178,54 @@ if VENDOR_QEMU
178178
endif
179179

180180

181+
#
182+
# 可选内核来源,如果本地有rt-thread仓库,可以指定本地目录,xmake编译过程中将不会再次拉取rt-thread仓库
183+
#
184+
menu "Kernel Configuration"
185+
186+
choice KERNEL_SOURCE
187+
prompt "Select Kernel Source"
188+
help
189+
Choose how to provide the kernel source.
190+
default KERNEL_SOURCE_GIT
191+
192+
config KERNEL_SOURCE_GIT
193+
bool "Fetch from Git repository"
194+
help
195+
Fetch the kernel source from a Git repository.
196+
197+
config KERNEL_SOURCE_LOCAL
198+
bool "Use a local directory"
199+
help
200+
Use an existing kernel source directory on the local file system.
201+
202+
endchoice
203+
204+
config KERNEL_LOCAL_DIR
205+
string "Local Kernel Directory"
206+
default "/home/rtthread/rt-thread/"
207+
depends on KERNEL_SOURCE_LOCAL
208+
help
209+
Specify the path to the local kernel source directory. This option
210+
is only available if "Use a local directory" is selected above.
211+
212+
endmenu
213+
181214
#
182215
# 选择开发板后,配置您想使用的 app
183216
#
184-
menu "Application Configuration"
217+
menu "Selection the desired apps Application"
185218

186219
config APP_BUSYBOX
187220
bool "busybox"
188221
help
189222
Select busybox application.
190223

224+
config FORCE_APP_BUSYBOX
225+
bool
226+
default y
227+
select APP_BUSYBOX
228+
191229
config APP_CPP
192230
bool "cpp"
193231
help

repo/packages/r/rt-thread/bsp/qemu_virt64_aarch64.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
--
2323
-- qemu_virt64_aarch64.lua
2424
function build(toolchainsdir)
25-
print("===============",toolchainsdir,"===============")
25+
print("building qemu_aarch64 kernel")
2626
os.setenv("RTT_CC_PREFIX", "aarch64-linux-musleabi-")
2727
os.setenv("RTT_EXEC_PATH", toolchainsdir)
2828
os.setenv("PATH", os.getenv("RTT_EXEC_PATH") .. ":" .. os.getenv("PATH"))
@@ -34,11 +34,8 @@ function build(toolchainsdir)
3434
local build = path.join(rt_dir,"/bsp/qemu-virt64-aarch64")
3535
local build_dir = os.curdir()
3636
local config_dir = path.join(os.scriptdir(),"qemu_aarch64.config")
37-
-- print("===============build:",build,"===============")
38-
-- print("===============config_dir:",config_dir,"===============")
3937
os.cp(config_dir,path.join(build,".config"))
4038
os.cd(build)
41-
-- exit()
4239
os.exec("scons --pyconfig-silent")
4340
os.exec("pkgs --update")
4441
os.exec("scons")

0 commit comments

Comments
 (0)