初步创建FW目录结构

This commit is contained in:
HEYAHONG 2024-04-30 13:50:08 +08:00
parent ef95ecb895
commit 31f621cfe7
No known key found for this signature in database
GPG Key ID: 97E3E469FE2C920B
4 changed files with 6718 additions and 0 deletions

4
.gitmodules vendored Normal file
View 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
View 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

File diff suppressed because it is too large Load Diff

@ -0,0 +1 @@
Subproject commit 9b33b74ef71225442361d5192d3a727be212c3cd