mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
configs/sim/src: Add logic to test localtime and TZ database. See apps/system/README.txt for info
This commit is contained in:
+17
-2
@@ -281,15 +281,30 @@ if LIBC_LOCALTIME
|
||||
|
||||
config LIBC_TZ_MAX_TIMES
|
||||
int "Maximum number of times in timezone"
|
||||
default 8
|
||||
default 370
|
||||
---help---
|
||||
Timezone files with more than this number of times will not be usedi
|
||||
(tmecnt).
|
||||
|
||||
Warning: Some files in IANA TZ database include many more times than
|
||||
this. The current posixrules file, for example, has timecnt = 236.
|
||||
The value of TX_MAX_ITMES in the tzfile.h header file on my Linux
|
||||
system is 370. You may want to reduce this value for a smaller
|
||||
footprint.
|
||||
|
||||
config LIBC_TZ_MAX_TYPES
|
||||
int "Maximum number of TZ types"
|
||||
default 8
|
||||
default 20
|
||||
---help---
|
||||
Maximum number of local time types. You may want to reduce this value
|
||||
for a smaller footprint.
|
||||
|
||||
config LIBC_TZDIR
|
||||
string "zoneinfo directory path"
|
||||
default "/etc/zoneinfo"
|
||||
---help---
|
||||
This is the full path to the location where the TZ database is expected
|
||||
to be found.
|
||||
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user