mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-22 05:12:26 +01:00
ramips: RT1800: fix invalid octal number error
This commit removes the padded zeros in the date formatting.
The padded zeros from the date command causes the numbers
to be interpreted as an octal number by printf. Months, days,
and years with the number 08 or 09 raise an error in printf as an
"invalid octal number" and get interpreted as a zero.
Signed-off-by: Max Qian <public@maxqia.com>
(cherry picked from commit 794349a28a)
This commit is contained in:
parent
c3be832427
commit
2dc284a79a
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ define Build/belkin-header
|
|||
|
||||
( \
|
||||
type_fw_date=$$(printf "01%02x%02x%02x" \
|
||||
$$(date -d "@$(SOURCE_DATE_EPOCH)" "+%y %m %d")); \
|
||||
$$(date -d "@$(SOURCE_DATE_EPOCH)" "+%-y %-m %-d")); \
|
||||
hw_fw_ver=$$(printf "%02x%02x%02x%02x" \
|
||||
$(hw_ver) $$(echo $(fw_ver) | cut -d. -f-3 | tr . ' ')); \
|
||||
fw_len_crc=$$(gzip -c $@ | tail -c 8 | od -An -tx8 | tr -d ' \n'); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue