forked from LiteOS/LiteOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update shell etc arch compile feature
- Loading branch information
1 parent
a55e3c7
commit b3da661
Showing
4,840 changed files
with
1,441,497 additions
and
661,073 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,288 @@ | ||
# Generated by Huawei LiteOS Kconfig Tool | ||
# | ||
# Compilers | ||
# | ||
LOSCFG_COMPILER_GCC=y | ||
# LOSCFG_COMPILER_HIMIX_32 is not set | ||
LOSCFG_COMPILER_ARM_NONE_EABI=y | ||
# LOSCFG_COMPILER_OPTIMIZE_NONE is not set | ||
LOSCFG_COMPILER_OPTIMIZE_SPEED=y | ||
# LOSCFG_COMPILER_OPTIMIZE_SIZE is not set | ||
# end of Compilers | ||
|
||
# | ||
# Targets | ||
# | ||
LOSCFG_PLATFORM="Cloud_STM32F429IGTx_FIRE" | ||
LOSCFG_PLATFORM_STM32F429IGTX=y | ||
# LOSCFG_PLATFORM_STM32F769IDISCOVERY is not set | ||
# LOSCFG_PLATFORM_STM32L431_BearPi is not set | ||
LOSCFG_USING_BOARD_LD=y | ||
# LOSCFG_PLATFORM_BSP_GIC_V2 is not set | ||
LOSCFG_PLATFORM_BSP_NVIC=y | ||
# LOSCFG_PLATFORM_BSP_XTENSA_XEA3 is not set | ||
LOSCFG_ARCH_ARM_AARCH32=y | ||
LOSCFG_ARCH_ARM_CORTEX_M=y | ||
LOSCFG_ARCH_ARM_V7M=y | ||
LOSCFG_ARCH_ARM_VER="armv7-m" | ||
LOSCFG_ARCH_FPU_VFP_V4=y | ||
LOSCFG_ARCH_FPU_VFP_D16=y | ||
LOSCFG_ARCH_FPU="vfpv4-d16" | ||
LOSCFG_ARCH_CORTEX_M4=y | ||
LOSCFG_ARCH_CPU="cortex-m4" | ||
|
||
# | ||
# Extra Configurations | ||
# | ||
# LOSCFG_ARCH_FPU_DISABLE is not set | ||
# LOSCFG_ARCH_INTERRUPT_PREEMPTION is not set | ||
LOSCFG_IRQ_USE_STANDALONE_STACK=y | ||
# end of Targets | ||
|
||
# | ||
# Kernel | ||
# | ||
# LOSCFG_KERNEL_SMP is not set | ||
|
||
# | ||
# Basic Config | ||
# | ||
LOSCFG_SCHED_SQ=y | ||
# LOSCFG_SCHED_MQ is not set | ||
|
||
# | ||
# Task | ||
# | ||
LOSCFG_OBSOLETE_API=y | ||
# LOSCFG_LAZY_STACK is not set | ||
# LOSCFG_TASK_STATIC_ALLOCATION is not set | ||
LOSCFG_BASE_CORE_TSK_LIMIT=16 | ||
# end of Task | ||
|
||
LOSCFG_BASE_CORE_TIMESLICE=y | ||
LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT=2 | ||
LOSCFG_BASE_CORE_USE_MULTI_LIST=y | ||
# LOSCFG_BASE_CORE_USE_SINGLE_LIST is not set | ||
# end of Basic Config | ||
|
||
# | ||
# Memory Management | ||
# | ||
# LOSCFG_KERNEL_MEM_BESTFIT is not set | ||
LOSCFG_KERNEL_MEM_BESTFIT_LITTLE=y | ||
# LOSCFG_KERNEL_MEM_SLAB_EXTENTION is not set | ||
LOSCFG_MEM_TASK_STAT=y | ||
LOSCFG_KERNEL_MEMBOX=y | ||
LOSCFG_KERNEL_MEMBOX_STATIC=y | ||
# LOSCFG_KERNEL_MEMBOX_DYNAMIC is not set | ||
# end of Memory Management | ||
|
||
# | ||
# Hardware Interrupt | ||
# | ||
# LOSCFG_NO_SHARED_IRQ is not set | ||
LOSCFG_PLATFORM_HWI_LIMIT=256 | ||
# end of Hardware Interrupt | ||
|
||
LOSCFG_BASE_CORE_SWTMR=y | ||
|
||
# | ||
# Software Timer Options | ||
# | ||
LOSCFG_BASE_CORE_SWTMR_LIMIT=16 | ||
# LOSCFG_BASE_CORE_SWTMR_IN_ISR is not set | ||
# end of Software Timer Options | ||
|
||
LOSCFG_BASE_IPC_QUEUE=y | ||
|
||
# | ||
# Queue Options | ||
# | ||
# LOSCFG_QUEUE_STATIC_ALLOCATION is not set | ||
LOSCFG_BASE_IPC_QUEUE_LIMIT=10 | ||
# end of Queue Options | ||
|
||
LOSCFG_BASE_IPC_EVENT=y | ||
|
||
# | ||
# Event Options | ||
# | ||
LOSCFG_BASE_IPC_EVENT_LIMIT=10 | ||
# end of Event Options | ||
|
||
LOSCFG_BASE_IPC_MUX=y | ||
|
||
# | ||
# Mutex Options | ||
# | ||
LOSCFG_MUTEX_WAIT_PRIORITY=y | ||
LOSCFG_BASE_IPC_MUX_LIMIT=20 | ||
# end of Mutex Options | ||
|
||
LOSCFG_BASE_IPC_SEM=y | ||
|
||
# | ||
# Sem Options | ||
# | ||
LOSCFG_BASE_IPC_SEM_LIMIT=20 | ||
# end of Sem Options | ||
|
||
LOSCFG_KERNEL_EXTKERNEL=y | ||
LOSCFG_KERNEL_CPPSUPPORT=y | ||
# LOSCFG_KERNEL_MPU is not set | ||
LOSCFG_KERNEL_CPUP=y | ||
LOSCFG_CPUP_INCLUDE_IRQ=y | ||
# LOSCFG_KERNEL_DYNLOAD is not set | ||
LOSCFG_KERNEL_TICKLESS=y | ||
# LOSCFG_KERNEL_TRACE is not set | ||
# end of Kernel | ||
|
||
# | ||
# Lib | ||
# | ||
LOSCFG_LIB_LIBC=y | ||
LOSCFG_COMPAT_POSIX=y | ||
LOSCFG_LIB_LIBM=y | ||
LOSCFG_LIB_STDIO=y | ||
LOSCFG_LIB_ZLIB=y | ||
# end of Lib | ||
|
||
# | ||
# Compat | ||
# | ||
LOSCFG_COMPAT_CMSIS=y | ||
|
||
# | ||
# Cmsis Options | ||
# | ||
LOSCFG_CMSIS_VERSION=1 | ||
# end of Cmsis Options | ||
# end of Compat | ||
|
||
# | ||
# Components | ||
# | ||
|
||
# | ||
# FileSystem | ||
# | ||
# LOSCFG_COMPONENTS_FS is not set | ||
# end of FileSystem | ||
|
||
# | ||
# Graphical User Interface | ||
# | ||
|
||
# | ||
# only support STM32F769IDISCOVERY | ||
# | ||
# end of Graphical User Interface | ||
|
||
# | ||
# Network | ||
# | ||
# LOSCFG_COMPONENTS_NETWORK is not set | ||
# end of Network | ||
|
||
# | ||
# Security | ||
# | ||
# LOSCFG_COMPONENTS_SECURITY is not set | ||
# end of Security | ||
|
||
# | ||
# Sensorhub | ||
# | ||
# LOSCFG_COMPONENTS_SENSORHUB is not set | ||
# end of Sensorhub | ||
# end of Components | ||
|
||
# | ||
# Demos | ||
# | ||
|
||
# | ||
# Agent Tiny Mqtt Demo | ||
# | ||
# LOSCFG_DEMOS_AGENT_TINY_MQTT is not set | ||
# end of Agent Tiny Mqtt Demo | ||
|
||
# | ||
# FileSystem Demo | ||
# | ||
|
||
# | ||
# only support Cloud_STM32F429IGTx_FIRE | ||
# | ||
# end of FileSystem Demo | ||
|
||
# | ||
# Graphical User Interface Demo | ||
# | ||
|
||
# | ||
# only support STM32F769IDISCOVERY | ||
# | ||
# end of Graphical User Interface Demo | ||
|
||
# | ||
# Sensorhub Demo | ||
# | ||
|
||
# | ||
# only support Cloud_STM32F429IGTx_FIRE | ||
# | ||
# end of Sensorhub Demo | ||
# end of Demos | ||
|
||
# | ||
# Debug | ||
# | ||
# LOSCFG_COMPILE_DEBUG is not set | ||
LOSCFG_PLATFORM_ADAPT=y | ||
# LOSCFG_COREDUMP is not set | ||
# LOSCFG_GDB is not set | ||
# LOSCFG_ENABLE_MAGICKEY is not set | ||
# LOSCFG_THUMB is not set | ||
LOSCFG_DEBUG_VERSION=y | ||
# LOSCFG_DEBUG_KERNEL is not set | ||
|
||
# | ||
# only support Cloud_STM32F429IGTx_FIRE | ||
# | ||
LOSCFG_SHELL=y | ||
|
||
# | ||
# Functionality of Shell | ||
# | ||
LOSCFG_SHELL_FULL_CAP=y | ||
LOSCFG_SHELL_UART=y | ||
LOSCFG_SHELL_LK=y | ||
LOSCFG_SHELL_DMESG=y | ||
LOSCFG_SHELL_EXCINFO=y | ||
# end of Functionality of Shell | ||
|
||
# LOSCFG_EXC_INTERACTION is not set | ||
# LOSCFG_MEM_DEBUG is not set | ||
LOSCFG_PLATFORM_UART_WITHOUT_VFS=y | ||
LOSCFG_SERIAL_OUTPUT_ENABLE=y | ||
|
||
# | ||
# TestSuite or AppInit | ||
# | ||
LOSCFG_PLATFORM_OSAPPINIT=y | ||
# LOSCFG_TEST is not set | ||
# LOSCFG_TESTSUIT_SHELL is not set | ||
# LOSCFG_TEST_MANUAL_TEST is not set | ||
# LOSCFG_FUZZ_DT is not set | ||
# end of TestSuite or AppInit | ||
# end of Debug | ||
|
||
# | ||
# Stack Smashing Protector (SSP) Compiler Feature | ||
# | ||
# LOSCFG_CC_NO_STACKPROTECTOR is not set | ||
# LOSCFG_CC_STACKPROTECTOR is not set | ||
LOSCFG_CC_STACKPROTECTOR_STRONG=y | ||
# LOSCFG_CC_STACKPROTECTOR_ALL is not set | ||
# end of Stack Smashing Protector (SSP) Compiler Feature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
LITEOSTOPDIR = $(CURDIR) | ||
|
||
export LITEOSTOPDIR | ||
|
||
-include $(LITEOSTOPDIR)/config.mk | ||
|
||
RM = rm -rf | ||
MAKE = make | ||
__LIBS = libs | ||
|
||
LITEOS_TARGET = Huawei_LiteOS | ||
LITEOS_LIBS_TARGET = libs_target | ||
|
||
.PHONY: all lib clean cleanall $(LITEOS_TARGET) debug release help | ||
|
||
all: $(OUT) $(BUILD) $(LITEOS_TARGET) | ||
lib: $(OUT) $(BUILD) $(LITEOS_LIBS_TARGET) | ||
|
||
debug: | ||
$(HIDE)echo "=============== make a debug version ===============" | ||
$(HIDE) $(MAKE) all | ||
|
||
release: | ||
ifeq ($(PLATFORM),) | ||
$(HIDE)echo "=============== make a release version for platform $(PLATFORM) ===============" | ||
$(HIDE)$(SCRIPTS_PATH)/mklibversion.sh $(PLATFORM) | ||
else | ||
$(HIDE)echo "================make a release version for all platform ===============" | ||
$(HIDE)$(SCRIPTS_PATH)/mklibversion.sh | ||
endif | ||
|
||
#-----need move when make version-----# | ||
##### make lib ##### | ||
$(__LIBS): $(OUT) $(CXX_INCLUDE) | ||
$(LITEOS_TARGET): $(__LIBS) LITEOS_BUILD | ||
|
||
$(OUT): $(LITEOS_MENUCONFIG_H) | ||
$(HIDE)mkdir -p $(OUT)/lib | ||
|
||
$(BUILD): | ||
$(HIDE)mkdir -p $(BUILD) | ||
|
||
$(LITEOS_LIBS_TARGET): $(__LIBS) | ||
$(HIDE)for dir in $(LIB_SUBDIRS); \ | ||
do $(MAKE) -C $$dir all || exit 1; \ | ||
done | ||
$(HIDE)echo "=============== make lib done ===============" | ||
|
||
include tools/menuconfig/Makefile.kconfig | ||
|
||
$(LITEOS_MENUCONFIG_H): | ||
ifneq ($(LITEOS_PLATFORM_MENUCONFIG_H), $(wildcard $(LITEOS_PLATFORM_MENUCONFIG_H))) | ||
$(HIDE)+make savemenuconfig | ||
endif | ||
|
||
LITEOS_BUILD: $(LITEOS_MENUCONFIG_H) | ||
|
||
LITEOS_BUILD: | ||
$(HIDE)echo $(LOSCFG_ENTRY_SRC) | ||
|
||
$(HIDE)for dir in $(LITEOS_SUBDIRS); \ | ||
do $(MAKE) -C $$dir all || \ | ||
if [ "$$?" != "0" ]; then \ | ||
echo "########################################################################################################"; \ | ||
echo "######## LiteOS build failed! ########"; \ | ||
echo "########################################################################################################"; \ | ||
exit 1; \ | ||
fi;\ | ||
done | ||
|
||
$(LITEOS_TARGET): | ||
ifeq ($(OS), Linux) | ||
$(call update_from_baselib_file) | ||
endif | ||
$(LD) $(LITEOS_LDFLAGS) $(LITEOS_TABLES_LDFLAGS) $(LITEOS_DYNLDFLAGS) -Map=$(OUT)/$@.map -o $(OUT)/$@.elf --start-group $(LITEOS_BASELIB) --end-group | ||
$(OBJCOPY) -O binary $(OUT)/$@.elf $(OUT)/$@.bin | ||
$(OBJDUMP) -t $(OUT)/$@.elf |sort >$(OUT)/$@.sym.sorted | ||
$(OBJDUMP) -Mreg-names-raw -d $(OUT)/$@.elf |$(LITEOSTOPDIR)/tools/stackusage/stackusage |sort -n -k 1 -r >$(OUT)/$@.stack | ||
$(OBJDUMP) -d $(OUT)/$@.elf >$(OUT)/$@.asm | ||
$(SIZE) $(OUT)/$@.elf | ||
$(HIDE)echo "########################################################################################################" | ||
$(HIDE)echo "######## LiteOS build successfully! ########" | ||
$(HIDE)echo "########################################################################################################" | ||
|
||
clean: | ||
$(HIDE)for dir in $(LITEOS_SUBDIRS); \ | ||
do make -C $$dir clean|| exit 1; \ | ||
done | ||
$(HIDE)$(RM) $(__OBJS) $(LITEOS_TARGET) $(OUT) $(BUILD) *.bak *~ | ||
$(HIDE)echo "clean $(LITEOS_PLATFORM) finish" | ||
|
||
cleanall: | ||
$(HIDE)rm -rf $(LITEOSTOPDIR)/out | ||
$(HIDE)find platform/bsp/board/ -name board.ld -exec rm -rf {} \; | ||
$(HIDE)cd sample/sample_osdrv;make clean;cd ../..; | ||
$(HIDE)echo "clean all" |
Oops, something went wrong.