mirror of
https://github.com/VIKINGYFY/immortalwrt.git
synced 2025-12-16 17:15:26 +00:00
See announcement mail for list of new features: https://lists.infradead.org/pipermail/linux-mtd/2025-February/108248.html Cherry pick some upstream commits which fix build problems in some situations. autoreconf fixup is needed now otherwise the build fails with: ``` mtd-utils-2.3.0/missing: line 81: automake-1.16: command not found ``` The code in tests/ubifs_tools-tests/Makemodule.am does not build because some test data is not packaged in the tar files, do not build code from this directory. The size increased only very little: 61498 bin/targets/ramips/mt7621/packages/nand-utils-2.3.0-r1.apk 101643 bin/targets/ramips/mt7621/packages/ubi-utils-2.3.0-r1.apk 61243 bin/targets/ramips/mt7621/packages/nand-utils-2.2.1-r1.apk 101291 bin/targets/ramips/mt7621/packages/ubi-utils-2.2.1-r1.apk Link: https://github.com/openwrt/openwrt/pull/20540 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From 77981a2888c711268b0e7f32af6af159c2288e23 Mon Sep 17 00:00:00 2001
|
|
From: Fabio Estevam <festevam@gmail.com>
|
|
Date: Wed, 19 Feb 2025 10:02:44 -0300
|
|
Subject: ubifs-utils: extract_files: Include <linux/limits.h>
|
|
|
|
Include <linux/limits.h> to fix the following build error when building
|
|
with musl:
|
|
|
|
| ../git/ubifs-utils/fsck.ubifs/extract_files.c: In function 'parse_ino_node':
|
|
| ../git/ubifs-utils/fsck.ubifs/extract_files.c:144:47: error: 'XATTR_LIST_MAX' undeclared (first use in this function)
|
|
| 144 | if (ino_node->xnms + ino_node->xcnt > XATTR_LIST_MAX) {
|
|
| | ^~~~~~~~~~~~~~
|
|
| ../git/ubifs-utils/fsck.ubifs/extract_files.c:144:47: note: each undeclared identifier is reported only once for each function it appears in
|
|
| make: *** [Makefile:4374: ubifs-utils/fsck.ubifs/fsck_ubifs-extract_files.o] Error 1
|
|
|
|
Signed-off-by: Fabio Estevam <festevam@gmail.com>
|
|
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
|
|
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
|
|
---
|
|
ubifs-utils/fsck.ubifs/extract_files.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/ubifs-utils/fsck.ubifs/extract_files.c
|
|
+++ b/ubifs-utils/fsck.ubifs/extract_files.c
|
|
@@ -10,6 +10,8 @@
|
|
#include <getopt.h>
|
|
#include <sys/stat.h>
|
|
|
|
+#include <linux/limits.h>
|
|
+
|
|
#include "linux_err.h"
|
|
#include "bitops.h"
|
|
#include "kmem.h"
|