Commit Graph

429 Commits

Author SHA1 Message Date
Gregory Nutt 22484386ee fs/cromfs and tools/gencromfs: Various fixes for traversal relative file paths. Biggest changes is in types used: Cannot use size_t or mode_t in common structures because they have different sizes on the (64-bit) host and the (32-bit) target. Use uint32_t instead of size_t for offsets. Use uint16_t instead of mode_t. 2018-03-20 12:37:01 -06:00
Gregory Nutt 87fd4e2916 fs/cromfs: Fix read logic. tools/genromfs.c: Last node in directory needs to have zero for peer offset. Still some issues with empty directories. 2018-03-20 10:37:42 -06:00
Gregory Nutt d6b9802264 tools/gencromfs.c: Fix a mixconception about how nested directories should be traversed. 2018-03-20 08:50:59 -06:00
Gregory Nutt eec44d1f01 This commit adds tools/gencromfs.c, a tool that can be used to generate CROMFS file system images.
Squashed commit of the following:

    tools/gencromfs.c:  Seems basically functional but has not has not yet been integrated with CROMFS.
    tools/gencromfs.c:  Revist previous commit.  Let's make no assumptions about the compatibility of the host system and NuttX.
    tools/gencromfs.c:  I think access mode bits are sufficiently standard that we can just copy them from the host.  This is don't mostly to pick up the executable bits and other conbinations of bits without doing a bit-for-bit decode.
    tools/gencromfs.c:  Code complete but only partially functional.
    tools/gencromfs.c:  type definitions must precede data definitions
    tools/gencromfs.c:  Adds a little more logic to gencromfs tools.  Still not complete but can traverse directories and generate directory and hard-link nodes.
    tools/gencromfs.c: Beginning of a genromfs tool that will eventually be used for generation of CROMFS file system images.
2018-03-20 07:31:13 -06:00
Gregory Nutt 947191780f tools: Trivial. define _GNU_SOURCE to be 1, don't just define it. 2018-01-30 11:08:18 -06:00
Gregory Nutt 8956a6001f tools/logparser.c: A few more minor enhancements. Also add #define _GNU_SOURCE to all C files that call asprintf() 2018-01-29 13:13:29 -06:00
Gregory Nutt 4b44a84bc9 tools/logparser.c: Fix some issues, improve output a little. 2018-01-29 11:51:43 -06:00
Gregory Nutt fce345113f tools/logparser: Add a tool which (when it matures) will help me to convert git logs to ChangeLog format. 2018-01-29 10:50:14 -06:00
Gregory Nutt d5dc79563c Correct another problem found in build testing. 2018-01-04 13:36:14 -06:00
Gregory Nutt 35b12f7f0f tools/cvsparser.c: Add a check to avoid access past the end of a fixed size array 2017-12-21 12:37:10 -06:00
Gregory Nutt 0649209725 configs/stm3220g-eval/ide: Remove the uVision IDE setup. This has not been used for years and it a maintenance problem for me. 2017-11-16 08:51:49 -06:00
Gregory Nutt f41d968455 tools/configure.c: Trivial design improvement to last commit. 2017-11-10 09:39:06 -06:00
Gregory Nutt 9fefa93361 tools/configure.c: Update functionality to match last change to tools/configure.sh 2017-11-09 17:36:46 -06:00
jeditekunum 7b3fc03f65 tools/configure.sh: This commit adds a -m option for macOS. For anyone not aware, Apple renamed OSX to macOS recently; thus the 'm' instead of 'o'. This does not change the other uses of *_OSX to macOS. 2017-11-09 17:11:59 -06:00
Gregory Nutt 89f3093590 tools/: configure.sh and configure.c should redirect stdout to /dev/null but should not suppress stderr output. 2017-10-01 15:41:59 -06:00
Gregory Nutt 9eca03b9be tools/configure.sh: Another fix for the script. The last change only worked for Windows Cygwin; for Linux, it needed to remove some additional things from the defconfig file. 2017-10-01 14:24:57 -06:00
Gregory Nutt e505df2eb5 tools/configure.c: Duplicate new functionaity added to configure.sh. 2017-10-01 12:45:29 -06:00
Gregory Nutt 13d2fe6edf tools/configure.sh: Add special support so that you can start with a a windows native configuration and install on a different host (and vice versa). 2017-10-01 11:49:17 -06:00
Jeff 25e4fb2886 tools/mkdeps.c: Eliminate a warning. MAX_PATH may already be defined in included system files. 2017-08-04 12:25:38 -06:00
Gregory Nutt 02c6672868 tools/refresh.sh: Update so that it can find the Make.defs file in the new location. 2017-07-15 08:18:56 -06:00
Gregory Nutt 1e781ec4a7 configure.c edited online with Bitbucket 2017-07-13 00:48:11 +00:00
Gregory Nutt c9724936f5 stm32f103-minimum: Move common Make.defs to scripts sub-directory 2017-07-10 17:34:52 -06:00
Gregory Nutt 316fde135c Build System: It is no longer necessary to have a unique Make.defs file for each configuration. A board may share a common Make.defs file in the scripts directory. 2017-07-10 17:00:54 -06:00
Gregory Nutt 1bc0eea143 tools/tesbuild.sh: Fix missing $ before variable name. 2017-07-10 10:39:31 -06:00
Gregory Nutt a49ec44427 tools/refresh.sh: Now runs make savedefconfig before copying the new defconfig file in place; Also, added a new option --defaults. Since the number of defaults that you now have to answer is so large, the option lets you just accept the default values. So it works just like --slilent but still prompts you for the decision to save or discard the new defconfig file. 2017-07-10 09:53:55 -06:00
Gregory Nutt ef1eb97660 Update configure.sh, configure.bat, configure.c: With compressed format, part of the installation requires that we run 'make olddefconfig' to restore the uncompressed defconfig format. Also, while I was at it, I also added options to select host platform on configure command line. 2017-07-10 09:38:45 -06:00
Gregory Nutt 5a9eebe270 More conversions of defconfig files to compressed format. All but Windows native configurati9ons. 2017-07-09 20:05:59 -06:00
Gregory Nutt c3b14f98ea tools/: Remove dangling space at the end of lines. 2017-06-28 13:56:46 -06:00
Gregory Nutt 8a4bac43a1 tool/configure will now copy Eclipse project files if they are present in the board directory file 2017-06-15 09:59:32 -06:00
Gregory Nutt fe5b3a58e4 Update tools/configure.c to same functionality as configure.sh. Add an array of optional file names. Currently, .gdbinit is the only optional file but other things like IDE-specific project files might need to be copied as well. 2017-06-15 08:24:28 -06:00
Hidetaka Takano d155939258 Improve configure.sh behavior (proposal).
- enable to call from top directory.
 - enable to designate direct path for config.
 - install .gdbinit if the target has.
2017-06-15 21:12:56 +09:00
David Sidrane 48fb789cf3 testbuild:Added -x to fail build on errors for CI
On CI we want to know ASAP of a failure. This adds the
   -x (exit on build failures) option to faclitate that
   behavior.

   Use ${MAKE} ${MAKE_FLAGS} for make invocation.
   When -x is provided change MAKE_FLAGS to
   --silent --no-print-directory and set -e

   Ignore exit status when using grep for checking
   for CONFIG_NXWM=y
2017-06-13 08:35:21 -10:00
Gregory Nutt c584d27c3c Revert "Build system: Hook tools/initconfig into top-level Makefiles."
This reverts commit 430060e92e.

That commit has some unexpected side-effects
2017-06-02 16:14:27 -06:00
Gregory Nutt 2c903d5c7a Fix spelling in printf output 2017-06-02 16:12:21 -06:00
Gregory Nutt 430060e92e Build system: Hook tools/initconfig into top-level Makefiles. 2017-06-02 13:06:09 -06:00
Gregory Nutt efbd035b56 Cosmetic changes to comments 2017-06-02 11:24:19 -06:00
Gregory Nutt 624bd0b9e9 tools/: Add initialconfig.c so that perhaps in the future we will be able to use this to generate a new configuration from scratch (rather than having to derive new configurations from existing configurations) 2017-06-02 10:17:30 -06:00
Gregory Nutt 6e4918c557 Remove CONFIG_ARM_TOOLCHAIN_GNU; replace with CONFIG_ARCH_TOOLCHAIN_GNU 2017-05-13 13:28:15 -06:00
Gregory Nutt 0de294a586 Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
Gregory Nutt 2f9028b547 Remove all remaining references to setenv.h and setenv.bat. 2017-04-26 10:28:37 -06:00
Gregory Nutt ca116647a8 tools/testbuild.sh: Add debug option (-d) 2017-03-10 13:13:30 -06:00
Gregory Nutt 9a76a6de26 kconfig2html: Need to increase the maximum number of default values 2017-03-08 12:12:55 -06:00
Gregory Nutt 97c5421c0c tools/mkconfig.c: Purely cosmetic update. 2017-02-09 17:02:19 -06:00
Gregory Nutt d35676860b tools/mkconfig.c: Purely cosmetic update. 2017-02-09 16:29:01 -06:00
Gregory Nutt 0b4a9539be tools/mkconfig.c: Add logic to keep all of the buffering options in sync. 2017-02-09 16:17:54 -06:00
Gregory Nutt b473516c93 tools/noteinfo.c: A hack tool that I use to analyze some sched_note output. Needs a home and may be useful to others. 2017-02-05 09:53:56 -06:00
Gregory Nutt fcc8444ae0 Update some comments and a README file. 2017-01-18 14:19:27 -06:00
Gregory Nutt 6889171d7f Update a README 2017-01-02 14:02:20 -06:00
Gregory Nutt a323fb91d0 tools/: Small simplication to usage 2017-01-01 15:39:24 -06:00
Gregory Nutt 34be3e7c3c Add configuration support for builds with Ubuntu under Windows 10 2017-01-01 15:34:23 -06:00