topaz-kernel: Disable fsgen

This commit is contained in:
AspectPower
2025-04-20 20:27:21 +03:00
parent 840a1c109b
commit 55b5f41469

View File

@@ -1,3 +1,15 @@
if [ -f "device/xiaomi/topaz-kernel/vendor_dlkm/qca_cld3_wlan.ko.xz" ]; then
xz -d device/xiaomi/topaz-kernel/vendor_dlkm/qca_cld3_wlan.ko.xz
fi
FSGEN_BP="build/soong/fsgen/Android.bp"
# Check if patch is already applied
if ! grep -q 'enabled: false' "$FSGEN_BP"; then
echo "Applying custom patch for fsgen..."
sed -i '/soong_filesystem_creator {/a\ enabled: false,' "$FSGEN_BP"
echo "Patch applied successfully"
else
echo "Patch already applied. Skipping..."
fi