Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
7f57e11e
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
7f57e11e
编写于
5月 11, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 11, 2022
浏览文件
操作
浏览文件
下载
差异文件
!881 修改jffs2引用路径
Merge pull request !881 from xuxinyu/master
上级
90d6ff9a
1097d41a
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
10039 addition
and
6 deletion
+10039
-6
fs/BUILD.gn
fs/BUILD.gn
+1
-0
fs/jffs2/BUILD.gn
fs/jffs2/BUILD.gn
+69
-2
fs/jffs2/Makefile
fs/jffs2/Makefile
+42
-4
fs/jffs2/jffs2.patch
fs/jffs2/jffs2.patch
+9927
-0
未找到文件。
fs/BUILD.gn
浏览文件 @
7f57e11e
...
...
@@ -33,6 +33,7 @@ group("fs") {
deps = [
"fat",
"fat/virpart",
"jffs2",
"nfs",
"patchfs",
"proc",
...
...
fs/jffs2/BUILD.gn
浏览文件 @
7f57e11e
...
...
@@ -31,19 +31,86 @@ import("//kernel/liteos_a/liteos.gni")
module_switch = defined(LOSCFG_FS_JFFS)
module_name = get_path_info(rebase_path("."), "name")
linux_path = rebase_path("//kernel/linux/linux-5.10")
out_path = rebase_path(target_out_dir)
kernel_module(module_name) {
patch_path = rebase_path(".")
cmd = "if [ -d ${out_path}/jffs2_build ]; then rm -r ${out_path}/jffs2_build; fi && mkdir -p ${out_path}/jffs2_build/fs"
cmd += " && cp ${linux_path}/fs/jffs2 ${out_path}/jffs2_build/fs/. -r"
cmd += " && pushd ${out_path}/jffs2_build/"
cmd += " && patch -p1 < ${patch_path}/jffs2.patch && popd"
exec_script("//build/lite/run_shell_cmd.py", [ cmd ])
sources = [
"src/jffs2_hash.c",
"src/vfs_jffs2.c",
]
sources += LINUX_KERNEL_FS_JFFS2_SRC_FILES
sources += [
"${out_path}/jffs2_build/fs/jffs2/background.c",
"${out_path}/jffs2_build/fs/jffs2/build.c",
"${out_path}/jffs2_build/fs/jffs2/compr.c",
"${out_path}/jffs2_build/fs/jffs2/compr_rtime.c",
"${out_path}/jffs2_build/fs/jffs2/compr_rubin.c",
"${out_path}/jffs2_build/fs/jffs2/compr_zlib.c",
"${out_path}/jffs2_build/fs/jffs2/debug.c",
"${out_path}/jffs2_build/fs/jffs2/dir.c",
"${out_path}/jffs2_build/fs/jffs2/erase.c",
"${out_path}/jffs2_build/fs/jffs2/file.c",
"${out_path}/jffs2_build/fs/jffs2/fs.c",
"${out_path}/jffs2_build/fs/jffs2/gc.c",
"${out_path}/jffs2_build/fs/jffs2/malloc.c",
"${out_path}/jffs2_build/fs/jffs2/nodelist.c",
"${out_path}/jffs2_build/fs/jffs2/nodemgmt.c",
"${out_path}/jffs2_build/fs/jffs2/read.c",
"${out_path}/jffs2_build/fs/jffs2/readinode.c",
"${out_path}/jffs2_build/fs/jffs2/scan.c",
"${out_path}/jffs2_build/fs/jffs2/summary.c",
"${out_path}/jffs2_build/fs/jffs2/super.c",
"${out_path}/jffs2_build/fs/jffs2/write.c",
"${out_path}/jffs2_build/fs/jffs2/writev.c",
]
include_dirs = LINUX_KERNEL_FS_JFFS2_INCLUDE_DIRS
include_dirs = [
"${out_path}/jffs2_build/fs",
"${out_path}/jffs2_build/fs/jffs2",
]
public_configs = [ ":public" ]
deps = [ ":cp_jffs2_src" ]
}
config("public") {
include_dirs = [ "include" ]
}
action("cp_jffs2_src") {
script = "//build/lite/run_shell_cmd.py"
outputs = [
"${target_out_dir}/jffs2_build/fs/jffs2/background.c",
"${target_out_dir}/jffs2_build/fs/jffs2/build.c",
"${target_out_dir}/jffs2_build/fs/jffs2/compr.c",
"${target_out_dir}/jffs2_build/fs/jffs2/compr_rtime.c",
"${target_out_dir}/jffs2_build/fs/jffs2/compr_rubin.c",
"${target_out_dir}/jffs2_build/fs/jffs2/compr_zlib.c",
"${target_out_dir}/jffs2_build/fs/jffs2/debug.c",
"${target_out_dir}/jffs2_build/fs/jffs2/dir.c",
"${target_out_dir}/jffs2_build/fs/jffs2/erase.c",
"${target_out_dir}/jffs2_build/fs/jffs2/file.c",
"${target_out_dir}/jffs2_build/fs/jffs2/fs.c",
"${target_out_dir}/jffs2_build/fs/jffs2/gc.c",
"${target_out_dir}/jffs2_build/fs/jffs2/malloc.c",
"${target_out_dir}/jffs2_build/fs/jffs2/nodelist.c",
"${target_out_dir}/jffs2_build/fs/jffs2/nodemgmt.c",
"${target_out_dir}/jffs2_build/fs/jffs2/read.c",
"${target_out_dir}/jffs2_build/fs/jffs2/readinode.c",
"${target_out_dir}/jffs2_build/fs/jffs2/scan.c",
"${target_out_dir}/jffs2_build/fs/jffs2/summary.c",
"${target_out_dir}/jffs2_build/fs/jffs2/super.c",
"${target_out_dir}/jffs2_build/fs/jffs2/write.c",
"${target_out_dir}/jffs2_build/fs/jffs2/writev.c",
]
}
fs/jffs2/Makefile
浏览文件 @
7f57e11e
...
...
@@ -31,13 +31,51 @@ include $(LITEOSTOPDIR)/config.mk
MODULE_NAME
:=
$(
notdir
$(
shell
pwd
))
LOCAL_SRCS
:=
$(
wildcard
src/
*
.c
)
\
$(
wildcard
$(LITEOSTOPDIR)
/../linux/linux-5.10/fs/jffs2/
*
.c
)
LINUX_PATH
:=
$(LITEOSTOPDIR)
/../linux/linux-5.10
LOCAL_PATH
:=
$(
shell
pwd
)
TEMP_SRC_PATH
:=
$(OUT)
/jffs2_build
LOCAL_SRCS
:=
\
$(TEMP_SRC_PATH)
/fs/jffs2/background.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/build.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/compr.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/compr_rtime.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/compr_rubin.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/compr_zlib.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/debug.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/dir.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/erase.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/file.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/fs.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/gc.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/malloc.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/nodelist.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/nodemgmt.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/read.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/readinode.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/scan.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/summary.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/super.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/write.c
\
$(TEMP_SRC_PATH)
/fs/jffs2/writev.c
\
$(LOCAL_PATH)
/src/jffs2_hash.c
\
$(LOCAL_PATH)
/src/vfs_jffs2.c
\
LOCAL_INCLUDE
:=
\
-I
$(LITEOSTOPDIR)
/fs/jffs2/include
\
-I
$(
LITEOSTOPDIR)
/../linux/linux-5.10
/fs/jffs2
\
-I
$(
LITEOSTOPDIR)
/../linux/linux-5.10
/fs
-I
$(
TEMP_SRC_PATH)
/fs/jffs2
\
-I
$(
TEMP_SRC_PATH)
/fs
LOCAL_FLAGS
:=
$(LOCAL_INCLUDE)
.PHONY
:
patch patch_clean
$(LOCAL_SRCS)
:
patch
patch
:
patch_clean
cp
$(LINUX_PATH)
/fs/jffs2
$(TEMP_SRC_PATH)
/fs/.
-r
cd
$(TEMP_SRC_PATH)
&&
patch
-p1
<
$(LOCAL_PATH)
/jffs2.patch
patch_clean
:
$(HIDE)
$(RM)
-rf
$(TEMP_SRC_PATH)
include
$(MODULE)
fs/jffs2/jffs2.patch
0 → 100644
浏览文件 @
7f57e11e
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录