Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
97c5421c
Commit
97c5421c
authored
8 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
tools/mkconfig.c: Purely cosmetic update.
parent
9946969c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/mkconfig.c
+16
-9
16 additions, 9 deletions
tools/mkconfig.c
with
16 additions
and
9 deletions
tools/mkconfig.c
+
16
−
9
View file @
97c5421c
...
...
@@ -112,7 +112,7 @@ int main(int argc, char **argv, char **envp)
printf
(
"/* NXFLAT requires PIC support in the TCBs. */
\n\n
"
);
printf
(
"#if defined(CONFIG_NXFLAT)
\n
"
);
printf
(
"# undef CONFIG_PIC
\n
"
);
printf
(
"# undef
CONFIG_PIC
\n
"
);
printf
(
"# define CONFIG_PIC 1
\n
"
);
printf
(
"#endif
\n\n
"
);
...
...
@@ -139,6 +139,21 @@ int main(int argc, char **argv, char **envp)
printf
(
"# define CONFIG_NFILE_DESCRIPTORS 0
\n
"
);
printf
(
"#endif
\n\n
"
);
printf
(
"/* If no file descriptors are configured, then make certain no streams
\n
"
);
printf
(
" * are configured either.
\n
"
);
printf
(
" */
\n\n
"
);
printf
(
"#if CONFIG_NFILE_DESCRIPTORS == 0
\n
"
);
printf
(
"# undef CONFIG_NFILE_STREAMS
\n
"
);
printf
(
"# define CONFIG_NFILE_STREAMS 0
\n
"
);
printf
(
"#endif
\n\n
"
);
printf
(
"/* The correct way to disable stream support is to set the number of
\n
"
);
printf
(
" * streamd to zero.
\n
"
);
printf
(
" */
\n\n
"
);
printf
(
"#ifndef CONFIG_NFILE_STREAMS
\n
"
);
printf
(
"# define CONFIG_NFILE_STREAMS 0
\n
"
);
printf
(
"#endif
\n\n
"
);
printf
(
"/* If a console is selected, then make sure that there are resources for
\n
"
);
printf
(
" * three file descriptors and, if any streams are selected, also for three
\n
"
);
printf
(
" * file streams.
\n
"
);
...
...
@@ -164,14 +179,6 @@ int main(int argc, char **argv, char **envp)
printf
(
"# undef CONFIG_RAMLOG_CONSOLE
\n
"
);
printf
(
"#endif
\n\n
"
);
printf
(
"/* If no file descriptors are configured, then make certain no
\n
"
);
printf
(
" * streams are configured either.
\n
"
);
printf
(
" */
\n\n
"
);
printf
(
"#if CONFIG_NFILE_DESCRIPTORS == 0
\n
"
);
printf
(
"# undef CONFIG_NFILE_STREAMS
\n
"
);
printf
(
"# define CONFIG_NFILE_STREAMS 0
\n
"
);
printf
(
"#endif
\n\n
"
);
printf
(
"/* If no file streams are configured, then make certain that buffered I/O
\n
"
);
printf
(
" * support is disabled
\n
"
);
printf
(
" */
\n\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment