]> git.ipfire.org Git - thirdparty/openwrt.git/commit
uboot-lantiq: fix C-style comments in AWK scripts 22458/head
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:23:33 +0000 (01:23 +0100)
commit9b1f73ec319cb0b6a6da1960e9fbaf6655ce259c
treec837ad0bb1711c9438a9604bb719c79762eb7391
parent62ca0a987f790b5039f6e3b3029d4ddc9ca20b60
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>
package/boot/uboot-lantiq/patches/0017-tools-add-some-helper-tools-for-Lantiq-SoCs.patch