From c38a108343be413ff5cdcc093254cc485c2d75f7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 5 Sep 2014 11:25:34 -0600 Subject: [PATCH] Copy more logic from nuttx/tools/Config.mk into the Make.defs file. Plus trivial related changes --- Makefile | 8 ++++---- examples/elf/Kconfig | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b8d73f995..0ad9596d6 100644 --- a/Makefile +++ b/Makefile @@ -35,17 +35,17 @@ # ############################################################################ --include $(TOPDIR)/Make.defs - APPDIR = ${shell pwd} +TOPDIR ?= $(APPDIR)/import + +-include $(TOPDIR)/Make.defs # Application Directories # CONFIGURED_APPS is the list of all configured built-in directories/built # action. # SUBDIRS is the list of all directories containing Makefiles. It is used -# only for cleaning. builtin must always be the first in the list. This -# list can be extended by the .config file as well. +# only for cleaning. builtin must always be the first in the list. CONFIGURED_APPS = SUBDIRS = examples graphics interpreters modbus builtin import nshlib diff --git a/examples/elf/Kconfig b/examples/elf/Kconfig index 87b74dd80..be967324a 100644 --- a/examples/elf/Kconfig +++ b/examples/elf/Kconfig @@ -14,7 +14,7 @@ if EXAMPLES_ELF config EXAMPLES_ELF_SYSCALL bool "Link with SYSCALL library" default n - depends on LIB_SYSCALL + depends on LIB_SYSCALL && !BUILD_KERNEL ---help--- Link with the SYCALL library. By default, all undefined symbols must be provided via a symbol table. But if this option is @@ -26,6 +26,7 @@ config EXAMPLES_ELF_SYSCALL config EXAMPLES_ELF_LIBC bool "Link with LIBC" default n + depends on !BUILD_KERNEL ---help--- Link with the C library (and also math library if it was built). By default, all undefined symbols must be provided via a symbol