diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-04-15 16:25:38 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-04-15 16:25:38 -0600 |
commit | 6ef3f7271f6a54069046b859e6d1c120425370ab (patch) | |
tree | 5d14036f54253c0bc2252f018b1de7f461baf5ab | |
parent | de239f1fef2cfbde85791452f95b3372cc1afe1e (diff) | |
download | px4-nuttx-6ef3f7271f6a54069046b859e6d1c120425370ab.tar.gz px4-nuttx-6ef3f7271f6a54069046b859e6d1c120425370ab.tar.bz2 px4-nuttx-6ef3f7271f6a54069046b859e6d1c120425370ab.zip |
Update comments and README
-rw-r--r-- | apps/system/zoneinfo/README.txt | 12 | ||||
-rw-r--r-- | nuttx/libc/Kconfig | 12 |
2 files changed, 19 insertions, 5 deletions
diff --git a/apps/system/zoneinfo/README.txt b/apps/system/zoneinfo/README.txt index 497a02f29..bcd5530e8 100644 --- a/apps/system/zoneinfo/README.txt +++ b/apps/system/zoneinfo/README.txt @@ -60,6 +60,15 @@ modifications to the configuration that I used for testing: NOTE: The full TZ database is quite large. To create a reasonable sized ROMFS image, I had to trim some of the files like this: + cd nuttx + cd tools + ./configure.sh sim/nsh + cd .. + make menuconfig + +Select the above localtime() and apps/system/zoneinfo configuration settings. +Then: + make context cd ../apps/system/zoneinfo/tzbin/etc/zoneinfo @@ -73,6 +82,9 @@ force rebuilding of the ROMFS filesystem be removing some files: cd ../../nuttx make +If you have problems building the simulator on your platform, check out +nuttx/configs/sim/README.txt. You might find some help there. + Here is a sample run. I have not seen any errors in single stepping through the logic but neither am I certain that everything is working properly: diff --git a/nuttx/libc/Kconfig b/nuttx/libc/Kconfig index 9aedf7b85..51b6d042d 100644 --- a/nuttx/libc/Kconfig +++ b/nuttx/libc/Kconfig @@ -275,7 +275,9 @@ config LIBC_LOCALTIME environment variable TZ must be set to the name of that timezone file when tzset() is called. - See https://www.iana.org/time-zones + See https://www.iana.org/time-zones . See also apps/system/zoneinfo + which provides a framework for incorporating the TZ database into a + NuttX build. if LIBC_LOCALTIME @@ -286,10 +288,10 @@ config LIBC_TZ_MAX_TIMES 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 + Warning: Some files in IANA TZ database include many times. 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, the + default used here. You may want to reduce this value for a smaller footprint. config LIBC_TZ_MAX_TYPES |