]> git.ipfire.org Git - thirdparty/openwrt.git/commit
uboot-lantiq: fix C-style comments in AWK scripts
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Mar 2026 00:06:24 +0000 (01:06 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 23 Mar 2026 00:25:12 +0000 (01:25 +0100)
commit70ea59fcd9c117e680633907173fd5bce0a3bc3a
tree5d7a114aabe96213c418a4e2a788457e1d1c29c9
parentd56b8a81c9eecea3fdb7e42d1c6b15fbd31f7537
uboot-lantiq: fix C-style comments in AWK scripts

Modern gawk rejects C-style /* ... */ comments in AWK code, treating
them as regex patterns where '*' has nothing to quantify. Replace all
such comments with AWK-style '#' comments in lantiq_bdi_conf.awk and
lantiq_ram_init_uart.awk.

Also replace the pattern 'if (x) /* comment */ else action' which used
a C comment as a null statement with the equivalent 'if (!x) action'.

Fixes build error:
  awk: error: ? * + or {interval} not preceded by valid subpattern

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Link: https://github.com/openwrt/openwrt/pull/22458
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 9b1f73ec319cb0b6a6da1960e9fbaf6655ce259c)
package/boot/uboot-lantiq/patches/0017-tools-add-some-helper-tools-for-Lantiq-SoCs.patch