mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
rkbin: fix sed delimiter clashing with the alternation pipes
The frequency rewrite used | both as the sed delimiter and inside the group alternation, so post_unpack failed and the previous build shipped no images. Use # as the delimiter; verified against the generated parameter dump (all five freq fields now rewrite to 786). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,7 @@ post_unpack() {
|
||||
RK3326_DDR_FREQ="${RK3326_DDR_FREQ:-786}"
|
||||
DDR_BIN="$(ls ${PKG_BUILD}/bin/rk33/rk3326_ddr_333MHz_*.bin)"
|
||||
${PKG_BUILD}/tools/ddrbin_tool.py rk3326 -g ${PKG_BUILD}/rk3326_ddr_freq.txt ${DDR_BIN}
|
||||
sed -i -E "s|^(lp2_freq|ddr3_freq|lp3_freq|ddr4_freq|lp4_freq)=.*|\1=${RK3326_DDR_FREQ}|" ${PKG_BUILD}/rk3326_ddr_freq.txt
|
||||
sed -i -E "s#^(lp2_freq|ddr3_freq|lp3_freq|ddr4_freq|lp4_freq)=.*#\1=${RK3326_DDR_FREQ}#" ${PKG_BUILD}/rk3326_ddr_freq.txt
|
||||
${PKG_BUILD}/tools/ddrbin_tool.py rk3326 ${PKG_BUILD}/rk3326_ddr_freq.txt ${DDR_BIN} >/dev/null
|
||||
echo "rkbin: RK3326 TPL DDR frequency set to ${RK3326_DDR_FREQ}MHz"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user