Kconfig and tools/Makefile.unix and : add dynamic application loadable support

This commit is contained in:
Gregory Nutt 2018-08-22 09:02:26 -06:00
parent 2edfe7ed42
commit dc15583df8
3 changed files with 18 additions and 8 deletions

10
Kconfig
View File

@ -161,6 +161,16 @@ config APPS_DIR
example, to include makefile fragments (e.g., .config or Make.defs) example, to include makefile fragments (e.g., .config or Make.defs)
or to set up include file paths. or to set up include file paths.
config BUILD_LOADABLE
bool "NuttX application loadable build"
default n if !BUILD_KERNEL
default y if BUILD_KERNEL
---help---
Automatically selected if KERNEL build is selected.
This selection only effects the behavior of the 'make export'
target and currently has no effect unless you wish to build
loadable applications in a FLAT build.
choice choice
prompt "Memory organization" prompt "Memory organization"
default BUILD_FLAT default BUILD_FLAT

View File

@ -166,10 +166,10 @@ MKEXPORT_ARGS = -w$(WINTOOL) -t "$(TOPDIR)"
ifeq ($(CONFIG_BUILD_PROTECTED),y) ifeq ($(CONFIG_BUILD_PROTECTED),y)
MKEXPORT_ARGS += -u MKEXPORT_ARGS += -u
else else ifeq ($(CONFIG_BUILD_KERNEL),y)
ifeq ($(CONFIG_BUILD_KERNEL),y) MKEXPORT_ARGS += -u
else ifeq ($(CONFIG_BUILD_LOADABLE),y)
MKEXPORT_ARGS += -u MKEXPORT_ARGS += -u
endif
endif endif
ifeq ($(V),2) ifeq ($(V),2)

View File

@ -158,11 +158,11 @@ MKEXPORT = tools\mkexport.bat
MKEXPORT_ARGS = -w$(WINTOOL) -t "$(TOPDIR)" MKEXPORT_ARGS = -w$(WINTOOL) -t "$(TOPDIR)"
ifeq ($(CONFIG_BUILD_PROTECTED),y) ifeq ($(CONFIG_BUILD_PROTECTED),y)
MKEXPORT_ARGS = -u MKEXPORT_ARGS += -u
else else ifeq ($(CONFIG_BUILD_KERNEL),y)
ifeq ($(CONFIG_BUILD_KERNEL),y) MKEXPORT_ARGS += -u
MKEXPORT_ARGS = -u else ifeq ($(CONFIG_BUILD_LOADABLE),y)
endif MKEXPORT_ARGS += -u
endif endif
ifeq ($(V),2) ifeq ($(V),2)