From a4652e5a028d50e1e35e690b9536f3d5d6cec31b Mon Sep 17 00:00:00 2001 From: AI Dev Date: Fri, 11 Sep 2026 17:31:21 +0000 Subject: [PATCH] t31_lite_zte-k545: ship the excludes list the device was missing #151 added the K545 without general/scripts/excludes/t31_lite.list, which README lists among the files a registered device must have. Nothing failed for the want of it -- the image builds and the author has it running -- but it builds close to the edge: rootfs.squashfs came out at 4560KB of the 5120KB an 8M layout allows, 560KB of headroom, while the uncompressed tree is 14.2MB. Every sensor the T31 osdrv ships is in there, and the board has exactly one. The list is t31_lite_chinatelecom-y4h-50's, which is the conservative of the two in the tree: it prunes other sensors' .bin, .yaml and .ko and stops there. The tc70-v3 variant also globs kernel/drivers/net/wireless/*, and this board's Wi-Fi is the out-of-tree atbm60xx module, so that one is not worth the risk here for the few KB it would add. Verified against the osdrv rather than by pattern: it ships sc4336-t31.bin and sc4336.yaml, and neither appears in the list, so the K545's own sensor survives the prune. The devices this list came from run the same SoC and flavour, so the paths are the ones this image actually has. The sibling t31_lite_zte-k540 has the same gap and the same sensor; it is left alone here for its author to decide. --- .../general/scripts/excludes/t31_lite.list | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 devices/t31_lite_zte-k545/general/scripts/excludes/t31_lite.list diff --git a/devices/t31_lite_zte-k545/general/scripts/excludes/t31_lite.list b/devices/t31_lite_zte-k545/general/scripts/excludes/t31_lite.list new file mode 100644 index 000000000..f4bf64359 --- /dev/null +++ b/devices/t31_lite_zte-k545/general/scripts/excludes/t31_lite.list @@ -0,0 +1,67 @@ +/etc/sensor/gc2053-t31.bin +/etc/sensor/gc2083-t31.bin +/etc/sensor/gc4023-t31.bin +/etc/sensor/gc4653-t31.bin +/etc/sensor/imx307-t31.bin +/etc/sensor/imx327-t31.bin +/etc/sensor/jxf37-t31.bin +/etc/sensor/jxh62-t31.bin +/etc/sensor/jxq03-t31.bin +/etc/sensor/os03b10-t31.bin +/etc/sensor/sc200ai-t31.bin +/etc/sensor/sc2232h-t31.bin +/etc/sensor/sc2335-t31.bin +/etc/sensor/sc2336-t31.bin +/etc/sensor/sc3335-t31.bin +/etc/sensor/sc3338-t31.bin +/etc/sensor/sc4236-t31.bin +/etc/sensor/sc5235-t31.bin +# +/etc/sensor/gc2053.yaml +/etc/sensor/gc2083.yaml +/etc/sensor/gc4023.yaml +/etc/sensor/gc4653.yaml +/etc/sensor/imx307.yaml +/etc/sensor/imx327.yaml +/etc/sensor/imx335.yaml +/etc/sensor/jxf22.yaml +/etc/sensor/jxf23.yaml +/etc/sensor/jxf37.yaml +/etc/sensor/jxh42.yaml +/etc/sensor/jxh62.yaml +/etc/sensor/jxh63.yaml +/etc/sensor/jxk04.yaml +/etc/sensor/jxq03.yaml +/etc/sensor/os03b10.yaml +/etc/sensor/ov2735.yaml +/etc/sensor/ov2735b.yaml +/etc/sensor/ov4689.yaml +/etc/sensor/ps5260.yaml +/etc/sensor/sc200ai.yaml +/etc/sensor/sc2232.yaml +/etc/sensor/sc2232h.yaml +/etc/sensor/sc2335.yaml +/etc/sensor/sc2336.yaml +/etc/sensor/sc3335.yaml +/etc/sensor/sc3338.yaml +/etc/sensor/sc4236.yaml +/etc/sensor/sc5235.yaml +# +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc2053_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc2083_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc4023_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc4653_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx307_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx327_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxf37_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh62_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh63_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxq03_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_os03b10_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc200ai_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2232h_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2335_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2336_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc3338_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc4236_t31.ko +/lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc5235_t31.ko