APP_Framework support nuttx-10.2.0

This commit is contained in:
wgz-code
2022-03-01 17:57:08 +08:00
parent b916ebb768
commit 4d6caa6182
18 changed files with 4832 additions and 101 deletions
@@ -53,7 +53,10 @@ ARCH_DIR = arch/$(CONFIG_ARCH)
ARCH_SRC = $(ARCH_DIR)/src
ARCH_INC = $(ARCH_DIR)/include
export APPPATHS = -I$(APPDIR)/../../../APP_Framework/Framework/sensor
export APPPATHS = -I$(APPDIR)/../../../APP_Framework/Framework/sensor
APPPATHS += -I$(APPDIR)/../../../APP_Framework/Framework/connection
APPPATHS += -I$(APPDIR)/../../../APP_Framework/Framework/connection/zigbee
APPPATHS += -I$(APPDIR)/../../../APP_Framework/Framework/connection/zigbee/e18
APPPATHS += -I$(APPDIR)/../../../APP_Framework/Applications/general_functions/list
APPPATHS += -I$(APPDIR)/../../../APP_Framework/Framework/transform_layer/nuttx
@@ -332,9 +335,7 @@ endif
$(Q) touch $@
dirlinks: include/arch include/arch/board include/arch/chip $(ARCH_SRC)/board $(ARCH_SRC)/chip drivers/platform
$(Q) $(MAKE) -C libs/libxx dirlinks
$(Q) $(MAKE) -C boards dirlinks
$(Q) $(MAKE) -C openamp dirlinks
$(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks
# context
@@ -467,6 +468,26 @@ endif
download: $(BIN)
$(call DOWNLOAD, $<)
# bootloader
#
# Some architectures require the provisioning of a bootloader or other
# functions required for properly executing the NuttX binary.
# Make.defs files for those architectures should define a bootloader target
# with the correct operations for that platform. It will generate an error
# if the bootloader target is not defined.
bootloader:
$(Q) $(MAKE) -C $(ARCH_SRC) bootloader
# clean_bootloader
#
# Removes all of the files and directories created by the bootloader target.
# It will generate an error if the clean_bootloader target is not defined on
# the architecture-specific Makefile.
clean_bootloader:
$(Q) $(MAKE) -C $(ARCH_SRC) clean_bootloader
# pass1dep: Create pass1 build dependencies
# pass2dep: Create pass2 build dependencies
@@ -576,10 +597,14 @@ $(foreach SDIR, $(CLEANDIRS), $(eval $(call SDIR_template,$(SDIR),distclean)))
subdir_distclean: $(foreach SDIR, $(CLEANDIRS), $(SDIR)_distclean)
distclean: clean subdir_distclean clean_context
distclean: clean subdir_distclean
ifeq ($(CONFIG_BUILD_2PASS),y)
$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) distclean
endif
ifeq ($(CONFIG_ARCH_HAVE_BOOTLOADER),y)
$(Q) $(MAKE) clean_bootloader
endif
$(Q) $(MAKE) clean_context
$(call DELFILE, Make.defs)
$(call DELFILE, defconfig)
$(call DELFILE, .config)
@@ -335,7 +335,6 @@ void generate_definitions(FILE *stream)
{
printf("#define %s 1\n", varname);
printf("#define %s 1\n", &varname[7]);
}
/* Or to '2' if it has the special value 'm' */
@@ -351,7 +350,7 @@ void generate_definitions(FILE *stream)
else
{
printf("#define %s %s\n", varname, varval);
printf("#define %s %s\n", &varname[7], varval);
printf("#define %s %s\n", &varname[7], varval);
}
}
}