mirror of
https://github.com/HEYAHONG/CoreBoard-001
synced 2025-05-08 10:15:05 +08:00
初步创建FW目录结构
This commit is contained in:
parent
ef95ecb895
commit
31f621cfe7
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
[submodule "FW/openwrt-23.05/openwrt"]
|
||||
path = FW/openwrt-23.05/openwrt
|
||||
url = https://git.openwrt.org/openwrt/openwrt.git
|
||||
branch = openwrt-23.05
|
43
FW/openwrt-23.05/Makefile
Normal file
43
FW/openwrt-23.05/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
|
||||
|
||||
ifeq ("${Q}","")
|
||||
Q=@
|
||||
endif
|
||||
|
||||
#伪目标
|
||||
.PHONY:all prepare build menuconfig
|
||||
|
||||
#主要步骤的依赖
|
||||
all:build
|
||||
build:prepare
|
||||
menuconfig:prepare
|
||||
|
||||
#openwrt源代码
|
||||
openwrt/Makefile:
|
||||
${Q}git submodule update --init --recursive
|
||||
${Q}[ -f openwrt/Makefile ] || echo openwrt download failed!
|
||||
${Q}[ -f openwrt/Makefile ]
|
||||
|
||||
#Kconfig配置
|
||||
openwrt/.config: openwrt/Makefile
|
||||
${Q}cp defconfig openwrt/.config
|
||||
|
||||
#feeds
|
||||
feeds:openwrt/Makefile
|
||||
${Q}openwrt/scripts/feeds update -a
|
||||
${Q}openwrt/scripts/feeds install -a -f
|
||||
|
||||
openwrt/feeds/:feeds
|
||||
|
||||
#准备
|
||||
prepare: openwrt/Makefile openwrt/feeds/ openwrt/.config
|
||||
${Q}-openwrt_path_patch 2>/dev/null #若处在HEnvBox中,尝试修改源代码保存路径
|
||||
|
||||
#构建
|
||||
build:
|
||||
${Q}${MAKE} -C openwrt V=sc
|
||||
|
||||
#Kconfig配置
|
||||
menuconfig:
|
||||
${Q}${MAKE} -C openwrt menuconfig
|
||||
${Q}cp openwrt/.config defconfig
|
6670
FW/openwrt-23.05/defconfig
Normal file
6670
FW/openwrt-23.05/defconfig
Normal file
File diff suppressed because it is too large
Load Diff
1
FW/openwrt-23.05/openwrt
Submodule
1
FW/openwrt-23.05/openwrt
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 9b33b74ef71225442361d5192d3a727be212c3cd
|
Loading…
x
Reference in New Issue
Block a user