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>
Tue, 31 Dec 2024 16:44:10 +0000 (17:44 +0100)
commitf7ee30120faf6e667570b94d8695487ace5d2caa
tree9745820136ea0f1182a93804f9a645a41b83567c
parent5b3044e8e3900956d0813f2d600650917e19ec84
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
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/patches-6.6/0911-arm64-cmdline-replacement.patch [new file with mode: 0644]