You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/03 21:10:17 UTC

[incubator-nuttx-apps] branch master updated: Build system: Reference tools/define.sh through DEFINE macro

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d6fcfa  Build system: Reference tools/define.sh through DEFINE macro
1d6fcfa is described below

commit 1d6fcfac137b2659945591f6745172782bfa75e1
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun May 13 17:56:53 2018 +0800

    Build system: Reference tools/define.sh through DEFINE macro
---
 examples/module/drivers/chardev/Makefile | 2 +-
 examples/sotest/lib/modprint/Makefile    | 2 +-
 examples/sotest/lib/sotest/Makefile      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/module/drivers/chardev/Makefile b/examples/module/drivers/chardev/Makefile
index cc7105b..5b290d5 100644
--- a/examples/module/drivers/chardev/Makefile
+++ b/examples/module/drivers/chardev/Makefile
@@ -45,7 +45,7 @@ else
 NUTTXLIB = "$(TOPDIR)$(DELIM)staging"
 endif
 
-KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__}
+KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
 CMODULEFLAGS += $(KDEFINE)
 
 LDLIBPATH =
diff --git a/examples/sotest/lib/modprint/Makefile b/examples/sotest/lib/modprint/Makefile
index d7a6f69..3c77986 100644
--- a/examples/sotest/lib/modprint/Makefile
+++ b/examples/sotest/lib/modprint/Makefile
@@ -45,7 +45,7 @@ else
 NUTTXLIB = "$(TOPDIR)$(DELIM)staging"
 endif
 
-KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__}
+KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
 CMODULEFLAGS += $(KDEFINE)
 
 LDLIBPATH =
diff --git a/examples/sotest/lib/sotest/Makefile b/examples/sotest/lib/sotest/Makefile
index 89972d5..45c9ac6 100644
--- a/examples/sotest/lib/sotest/Makefile
+++ b/examples/sotest/lib/sotest/Makefile
@@ -45,7 +45,7 @@ else
 NUTTXLIB = "$(TOPDIR)$(DELIM)staging"
 endif
 
-KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__}
+KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
 CMODULEFLAGS += $(KDEFINE)
 
 LDLIBPATH =