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
dc4c6bcb
Commit
dc4c6bcb
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
When creating kernel dependencies, need to define __KERNEL__
parent
c038f4ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libc/Makefile
+13
-1
13 additions, 1 deletion
libc/Makefile
mm/Makefile
+11
-1
11 additions, 1 deletion
mm/Makefile
with
24 additions
and
2 deletions
libc/Makefile
+
13
−
1
View file @
dc4c6bcb
...
...
@@ -35,6 +35,18 @@
-include
$(TOPDIR)/Make.defs
# CFLAGS
ifeq
($(CONFIG_NUTTX_KERNEL),y)
ifeq
($(CONFIG_WINDOWS_NATIVE),y)
KDEFINE
=
${
shell
$(
TOPDIR
)
\t
ools
\d
efine.bat
"
$(
CC
)
"
__KERNEL__
}
else
KDEFINE
=
${
shell
$(
TOPDIR
)
/tools/define.sh
"
$(
CC
)
"
__KERNEL__
}
endif
endif
# Sources and paths
ASRCS
=
CSRCS
=
...
...
@@ -107,7 +119,7 @@ endif
.depend
:
Makefile $(SRCS)
ifeq
($(CONFIG_NUTTX_KERNEL),y)
$(
Q
)
$(
MKDEP
)
--obj-path
ubin
--obj-suffix
$(
OBJEXT
)
$(
DEPPATH
)
"
$(
CC
)
"
--
$(
CFLAGS
)
--
$(
SRCS
)
>
Make_ubin.dep
$(
Q
)
$(
MKDEP
)
--obj-path
kbin
--obj-suffix
$(
OBJEXT
)
$(
DEPPATH
)
"
$(
CC
)
"
--
$(
CFLAGS
)
--
$(
SRCS
)
>
Make_kbin.dep
$(
Q
)
$(
MKDEP
)
--obj-path
kbin
--obj-suffix
$(
OBJEXT
)
$(
DEPPATH
)
"
$(
CC
)
"
--
$(
CFLAGS
)
$(
KDEFINE
)
--
$(
SRCS
)
>
Make_kbin.dep
else
$(
Q
)
$(
MKDEP
)
--obj-path
bin
--obj-suffix
$(
OBJEXT
)
$(
DEPPATH
)
"
$(
CC
)
"
--
$(
CFLAGS
)
--
$(
SRCS
)
>
Make_bin.dep
endif
...
...
This diff is collapsed.
Click to expand it.
mm/Makefile
+
11
−
1
View file @
dc4c6bcb
...
...
@@ -35,6 +35,16 @@
-include
$(TOPDIR)/Make.defs
# CFLAGS
ifeq
($(CONFIG_NUTTX_KERNEL),y)
ifeq
($(CONFIG_WINDOWS_NATIVE),y)
KDEFINE
=
${
shell
$(
TOPDIR
)
\t
ools
\d
efine.bat
"
$(
CC
)
"
__KERNEL__
}
else
KDEFINE
=
${
shell
$(
TOPDIR
)
/tools/define.sh
"
$(
CC
)
"
__KERNEL__
}
endif
endif
# Core allocator logic
ASRCS
=
...
...
@@ -102,7 +112,7 @@ endif
.depend
:
Makefile $(SRCS)
ifeq
($(CONFIG_NUTTX_KERNEL),y)
$(
Q
)
$(
MKDEP
)
--obj-path
ubin
--obj-suffix
$(
OBJEXT
)
"
$(
CC
)
"
--
$(
CFLAGS
)
--
$(
SRCS
)
>
Make_ubin.dep
$(
Q
)
$(
MKDEP
)
--obj-path
kbin
--obj-suffix
$(
OBJEXT
)
"
$(
CC
)
"
--
$(
CFLAGS
)
--
$(
SRCS
)
>
Make_kbin.dep
$(
Q
)
$(
MKDEP
)
--obj-path
kbin
--obj-suffix
$(
OBJEXT
)
"
$(
CC
)
"
--
$(
CFLAGS
)
$(
KDEFINE
)
--
$(
SRCS
)
>
Make_kbin.dep
else
$(
Q
)
$(
MKDEP
)
--obj-path
bin
--obj-suffix
$(
OBJEXT
)
"
$(
CC
)
"
--
$(
CFLAGS
)
--
$(
SRCS
)
>
Make_bin.dep
endif
...
...
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