From a3b803747b363b0ececd329583e0412672e7f30b Mon Sep 17 00:00:00 2001 From: Zhihao Cheng Date: Fri, 2 Feb 2024 10:22:53 +0800 Subject: mtd-utils: Extract list implementation to common lib and add list_sort support Current list implementation code is put under jffs utils, extract it into common lib, and add more list operations(eg. list_move, list_splice, etc.). Besides, add list sorting support in new source file lib/list_sort.c. This is a preparation for replacing implementation of UBIFS utils with linux kernel libs. Signed-off-by: Zhihao Cheng Signed-off-by: David Oberhollenzer --- lib/Makemodule.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Makemodule.am') diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 570896b..7f890da 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -5,6 +5,8 @@ libmtd_a_SOURCES = \ include/libfec.h \ lib/common.c \ include/common.h \ + lib/list_sort.c \ + include/list.h \ lib/libcrc32.c \ include/crc32.h \ lib/libmtd_legacy.c \ -- cgit v1.2.3