ramips: sercomm-payload: use pide-file argument
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 9 Apr 2023 07:59:21 +0000 (09:59 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 9 Apr 2023 07:59:21 +0000 (09:59 +0200)
Instead of passing an array of hex bytes for the Sercomm PID we can now use
the --pid-file parameter.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/ramips/image/common-sercomm.mk

index 1cd6d1ece775be9be2bd58164fd5b83b1a74c7e0..83bb2a742c98f956312d034c46d899664b6b141c 100644 (file)
@@ -51,7 +51,7 @@ define Build/sercomm-payload
        $(TOPDIR)/scripts/sercomm-payload.py \
                --input-file $@ \
                --output-file $@.tmp \
-               --pid "$$(cat $@.pid | od -t x1 -An -v | tr -d '\n')"
+               --pid-file $@.pid
        mv $@.tmp $@
        rm $@.pid
 endef