qualcommax: add kernel cmdline replacement hack
authorQiyuan Zhang <zhang.github@outlook.com>
Thu, 1 Aug 2024 22:24:55 +0000 (18:24 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 16 Feb 2025 12:03:23 +0000 (13:03 +0100)
commit45ce95a9b31c5c3a86d99a79508c8a176b304831
tree5f84c055c839dc0bc20d07fbf8f5005cec211eca
parentab9f1011ac3f78b5b8ee8ac959aa270c8d4b86f0
qualcommax: add kernel cmdline replacement hack

Add kernel command line replacement hack to qualcommax. Now we can
find and replace arguments in the kernel command line by setting
bootargs-find-1, bootargs-replace-1, bootargs-exact-match-1
and bootargs-find-2, bootargs-replace-2, bootargs-exact-match-2
under the chosen node in the device tree.

This hack replaces the first occurence of bootargs-find-X with
bootargs-replace-X. When bootargs-exact-match-X is set to "y",
then the replacement happens only if the kernel command line is
identical to bootargs-find-X.

Signed-off-by: Qiyuan Zhang <zhang.github@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/16070
(cherry picked from commit 337f6f76ca5361f45e76facd52396936b9fc25c0)
Signed-off-by: Rafal Boni <rafal.boni@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17889
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/patches-6.6/0911-arm64-cmdline-replacement.patch [new file with mode: 0644]