diff --git a/public/rtos/code/build.sh b/public/rtos/code/build.sh new file mode 100755 index 0000000..5973411 --- /dev/null +++ b/public/rtos/code/build.sh @@ -0,0 +1,21 @@ +export DIR_SCRIPT=$(cd `dirname "$0"`;pwd) + +echo "###### start compiling smartos..." +export DIR_SMARTOS_SRC=${DIR_SCRIPT}/smartos_code +cd ${DIR_SMARTOS_SRC} +make clean && make + +echo "###### start compiling spinlock..." +export DIR_SPINLOCK_SRC=${DIR_SCRIPT}/spinlock_code +cd ${DIR_SPINLOCK_SRC} +make clean && make + +echo "###### start compiling interrupt..." +export DIR_INTERRUPT_SRC=${DIR_SCRIPT}/interrupt_code +cd ${DIR_INTERRUPT_SRC} +make clean && make + +echo "###### start compiling hw_q..." +export DIR_HWQ_SRC=${DIR_SCRIPT}/hw_q_code +cd ${DIR_HWQ_SRC} +make clean && make diff --git a/public/rtos/code/hw_q_code/lib/libhwque.a b/public/rtos/code/hw_q_code/lib/libhwque.a index 8752bd5..95ea2b1 100644 Binary files a/public/rtos/code/hw_q_code/lib/libhwque.a and b/public/rtos/code/hw_q_code/lib/libhwque.a differ diff --git a/public/rtos/code/smartos_code/lib/makefile b/public/rtos/code/hw_q_code/makefile similarity index 57% rename from public/rtos/code/smartos_code/lib/makefile rename to public/rtos/code/hw_q_code/makefile index 0eed540..b5adc49 100644 --- a/public/rtos/code/smartos_code/lib/makefile +++ b/public/rtos/code/hw_q_code/makefile @@ -2,15 +2,18 @@ # Automatically-generated file. Do not edit! ################################################################################ --include ../makefile.init +# set toolchain home +ifeq ($(strip $(MaPU_TC_HOME)),) +MaPU_TC_HOME := /public/share/tools/msdk/toolchain +endif -RM := find . -path './build' -prune -o -print -a -type f -not -name '*.mk' -a -not -name '*.ld' -a -not -name 'makefile' -a -not -name 'genhex.sh' -delete & rm -rf +RM := rm -rf +APP: all +LIB: libhwque.a +.PHONY: LIB APP # All of the sources participating in the build are defined here --include sources.mk --include ../Src/subdir.mk --include subdir.mk --include objects.mk +-include ./obj/subdir.mk ifneq ($(MAKECMDGOALS),clean) ifneq ($(strip $(C_DEPS)),) @@ -18,26 +21,22 @@ ifneq ($(strip $(C_DEPS)),) endif endif --include ../makefile.defs - # Add inputs and outputs from these tool invocations to the build variables # All Target -all: libsmartos_code.a +all: libhwque.a # Tool invocations -libsmartos_code.a: $(OBJS) +libhwque.a: $(OBJS) @echo 'Building target: $@' @echo 'Invoking: GNU archiver' - ar rcs "libsmartos_code.a" $(USER_OBJS) $(OBJS) $(LIBS) + ar rcs "./lib/libhwque.a" $(USER_OBJS) $(OBJS) $(LIBS) @echo 'Finished building target: $@' @echo ' ' # Other Targets clean: - -$(RM) $(LIB)$(OBJS)$(C_DEPS) libsmartos_code.a + -$(RM) ./obj/*.o ./obj/*.d ./lib/libhwque.a -@echo ' ' .PHONY: all clean dependents - --include ../makefile.targets diff --git a/public/rtos/code/hw_q_code/obj/subdir.mk b/public/rtos/code/hw_q_code/obj/subdir.mk new file mode 100644 index 0000000..bd4210b --- /dev/null +++ b/public/rtos/code/hw_q_code/obj/subdir.mk @@ -0,0 +1,20 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Add inputs and outputs from these tool invocations to the build variables + +C_SRCS += ./src/hwque.c + +OBJS += ./obj/hwque.o + +C_DEPS += ./obj/hwque.d + +obj/%.o: ./src/%.c + @echo 'Building file: $<' + @echo 'Invoking: Clang' + /public/share/tools/msdk/toolchain/bin/ucp2/clang --target=ucps2 $(INCS) -I./inc -I/public/share/tools/msdk/toolchain/include/ucp2/newlib -I/public/share/tools/msdk/toolchain/include/ucp2/llvm -O2 -Wno-constant-conversion -nostdlibinc -MMD -MP -o "$@" -c "$<" + @echo 'Finished building: $<' + @echo ' ' + + diff --git a/public/rtos/code/hw_q_code/Src/hwque.c b/public/rtos/code/hw_q_code/src/hwque.c similarity index 100% rename from public/rtos/code/hw_q_code/Src/hwque.c rename to public/rtos/code/hw_q_code/src/hwque.c diff --git a/public/rtos/code/interrupt_code/lib/libinterrupt.a b/public/rtos/code/interrupt_code/lib/libinterrupt.a index 8e0d988..64a699d 100644 Binary files a/public/rtos/code/interrupt_code/lib/libinterrupt.a and b/public/rtos/code/interrupt_code/lib/libinterrupt.a differ diff --git a/public/rtos/code/interrupt_code/makefile b/public/rtos/code/interrupt_code/makefile new file mode 100644 index 0000000..3b2deaf --- /dev/null +++ b/public/rtos/code/interrupt_code/makefile @@ -0,0 +1,42 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# set toolchain home +ifeq ($(strip $(MaPU_TC_HOME)),) +MaPU_TC_HOME := /public/share/tools/msdk/toolchain +endif + +RM := rm -rf +APP: all +LIB: libinterrupt.a +.PHONY: LIB APP + +# All of the sources participating in the build are defined here +-include ./obj/subdir.mk + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +endif + +# Add inputs and outputs from these tool invocations to the build variables + +# All Target +all: libinterrupt.a + +# Tool invocations +libinterrupt.a: $(OBJS) + @echo 'Building target: $@' + @echo 'Invoking: GNU archiver' + ar rcs "./lib/libinterrupt.a" $(USER_OBJS) $(OBJS) $(LIBS) + @echo 'Finished building target: $@' + @echo ' ' + +# Other Targets +clean: + -$(RM) ./obj/*.o ./obj/*.d ./lib/libinterrupt.a + -@echo ' ' + +.PHONY: all clean dependents diff --git a/public/rtos/code/interrupt_code/obj/subdir.mk b/public/rtos/code/interrupt_code/obj/subdir.mk new file mode 100644 index 0000000..849cc6d --- /dev/null +++ b/public/rtos/code/interrupt_code/obj/subdir.mk @@ -0,0 +1,37 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Add inputs and outputs from these tool invocations to the build variables +ASM_SRCS += \ +./src/__ucps2_interrupt.s.asm + +C_SRCS += \ +./src/alg.s.c \ +./src/inter_vector.s.c + +OBJS += \ +./obj/__ucps2_interrupt.s.o \ +./obj/alg.s.o \ +./obj/inter_vector.s.o + +C_DEPS += \ +./obj/alg.s.d \ +./obj/inter_vector.s.d + +# Each subdirectory must supply rules for building sources it contributes +obj/__ucps2_interrupt.s.o: ./src/__ucps2_interrupt.s.asm + @echo 'Building file: $<' + @echo 'Invoking: llvm-mc Assembler' + $(MaPU_TC_HOME)/bin/ucp2/llvm-mc -arch=ucps2 -I./inc -filetype=obj -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +obj/%.o: ./src/%.c + @echo 'Building file: $<' + @echo 'Invoking: Clang' + /public/share/tools/msdk/toolchain/bin/ucp2/clang --target=ucps2 $(INCS) -I./inc -I/public/share/tools/msdk/toolchain/include/ucp2/newlib -I/public/share/tools/msdk/toolchain/include/ucp2/llvm -O2 -Wno-constant-conversion -nostdlibinc -MMD -MP -o "$@" -c "$<" + @echo 'Finished building: $<' + @echo ' ' + + diff --git a/public/rtos/code/interrupt_code/Src/__ucps2_interrupt.s.asm b/public/rtos/code/interrupt_code/src/__ucps2_interrupt.s.asm similarity index 100% rename from public/rtos/code/interrupt_code/Src/__ucps2_interrupt.s.asm rename to public/rtos/code/interrupt_code/src/__ucps2_interrupt.s.asm diff --git a/public/rtos/code/interrupt_code/Src/alg.s.c b/public/rtos/code/interrupt_code/src/alg.s.c similarity index 100% rename from public/rtos/code/interrupt_code/Src/alg.s.c rename to public/rtos/code/interrupt_code/src/alg.s.c diff --git a/public/rtos/code/interrupt_code/Src/inter_vector.s.c b/public/rtos/code/interrupt_code/src/inter_vector.s.c similarity index 100% rename from public/rtos/code/interrupt_code/Src/inter_vector.s.c rename to public/rtos/code/interrupt_code/src/inter_vector.s.c diff --git a/public/rtos/code/smartos_code/.cproject b/public/rtos/code/smartos_code/.cproject deleted file mode 100644 index d6a04a7..0000000 --- a/public/rtos/code/smartos_code/.cproject +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/rtos/code/smartos_code/.mapu b/public/rtos/code/smartos_code/.mapu deleted file mode 100644 index 994fb40..0000000 --- a/public/rtos/code/smartos_code/.mapu +++ /dev/null @@ -1,8 +0,0 @@ -{ - "project": { - "incList": [ - "../inc" - ], - "libList": [] - } -} \ No newline at end of file diff --git a/public/rtos/code/smartos_code/.project b/public/rtos/code/smartos_code/.project deleted file mode 100644 index 2adbc28..0000000 --- a/public/rtos/code/smartos_code/.project +++ /dev/null @@ -1,27 +0,0 @@ - - - smartos - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - com.smartlogic.mapu.build.staticlibrary.libraryNature - - diff --git a/public/rtos/code/smartos_code/.settings/org.eclipse.cdt.core.prefs b/public/rtos/code/smartos_code/.settings/org.eclipse.cdt.core.prefs deleted file mode 100644 index f358a5e..0000000 --- a/public/rtos/code/smartos_code/.settings/org.eclipse.cdt.core.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -environment/project/com.smartlogic.mapu.build.ucp2.staticlib.debug.355068173/append=true -environment/project/com.smartlogic.mapu.build.ucp2.staticlib.debug.355068173/appendContributed=true -environment/project/com.smartlogic.mapu.build.ucp2.staticlib.release.735433344/append=true -environment/project/com.smartlogic.mapu.build.ucp2.staticlib.release.735433344/appendContributed=true diff --git a/public/rtos/code/smartos_code/lib/libsmartos.a b/public/rtos/code/smartos_code/lib/libsmartos.a new file mode 100644 index 0000000..f29a907 Binary files /dev/null and b/public/rtos/code/smartos_code/lib/libsmartos.a differ diff --git a/public/rtos/code/smartos_code/lib/objects.mk b/public/rtos/code/smartos_code/lib/objects.mk deleted file mode 100644 index 12acc56..0000000 --- a/public/rtos/code/smartos_code/lib/objects.mk +++ /dev/null @@ -1,14 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -USER_OBJS := - -LIBS := - -LIBS += - -LIBDIRS := - -INCS := - diff --git a/public/rtos/code/smartos_code/lib/sources.mk b/public/rtos/code/smartos_code/lib/sources.mk deleted file mode 100644 index bcdab81..0000000 --- a/public/rtos/code/smartos_code/lib/sources.mk +++ /dev/null @@ -1,15 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -ASM_SRCS := -C_SRCS := -O_SRCS := -LIB := -OBJS := -C_DEPS := - -# Every subdirectory with source files must be described here -SUBDIRS := \ -Src \ - diff --git a/public/rtos/code/smartos_code/lib/subdir.mk b/public/rtos/code/smartos_code/lib/subdir.mk deleted file mode 100644 index e9c76ae..0000000 --- a/public/rtos/code/smartos_code/lib/subdir.mk +++ /dev/null @@ -1,98 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -ASM_SRCS += \ -../Src/__ucps2_interrupt.s.asm - -C_SRCS += \ -../Src/alg.s.c \ -../Src/debug.s.c \ -../Src/func_lib_ape.c \ -../Src/inter_vector.s.c \ -../Src/mailbox.s.c \ -../Src/os_core.s.c \ -../Src/os_cpu_c.s.c \ -../Src/os_dbg_r.s.c \ -../Src/os_flag.s.c \ -../Src/os_mbox.s.c \ -../Src/os_mem.s.c \ -../Src/os_mutex.s.c \ -../Src/os_q.s.c \ -../Src/os_sem.s.c \ -../Src/os_task.s.c \ -../Src/os_time.s.c \ -../Src/os_tmr.s.c \ -../Src/os_ucp.s.c \ -../Src/sem.s.c \ -../Src/smartos.s.c \ -../Src/timer.s.c \ -../Src/ucos_ii.s.c - -OBJS += \ -./Lib/__ucps2_interrupt.s.o \ -./Lib/alg.s.o \ -./Lib/debug.s.o \ -./Lib/func_lib_ape.o \ -./Lib/inter_vector.s.o \ -./Lib/mailbox.s.o \ -./Lib/os_core.s.o \ -./Lib/os_cpu_c.s.o \ -./Lib/os_dbg_r.s.o \ -./Lib/os_flag.s.o \ -./Lib/os_mbox.s.o \ -./Lib/os_mem.s.o \ -./Lib/os_mutex.s.o \ -./Lib/os_q.s.o \ -./Lib/os_sem.s.o \ -./Lib/os_task.s.o \ -./Lib/os_time.s.o \ -./Lib/os_tmr.s.o \ -./Lib/os_ucp.s.o \ -./Lib/sem.s.o \ -./Lib/smartos.s.o \ -./Lib/timer.s.o \ -./Lib/ucos_ii.s.o - -C_DEPS += \ -./Lib/alg.s.d \ -./Lib/debug.s.d \ -./Lib/func_lib_ape.d \ -./Lib/inter_vector.s.d \ -./Lib/mailbox.s.d \ -./Lib/os_core.s.d \ -./Lib/os_cpu_c.s.d \ -./Lib/os_dbg_r.s.d \ -./Lib/os_flag.s.d \ -./Lib/os_mbox.s.d \ -./Lib/os_mem.s.d \ -./Lib/os_mutex.s.d \ -./Lib/os_q.s.d \ -./Lib/os_sem.s.d \ -./Lib/os_task.s.d \ -./Lib/os_time.s.d \ -./Lib/os_tmr.s.d \ -./Lib/os_ucp.s.d \ -./Lib/sem.s.d \ -./Lib/smartos.s.d \ -./Lib/timer.s.d \ -./Lib/ucos_ii.s.d - - -# Each subdirectory must supply rules for building sources it contributes -Lib/__ucps2_interrupt.s.o: ../Src/__ucps2_interrupt.s.asm - @echo 'Building file: $<' - @echo 'Invoking: llvm-mc Assembler' - $(MaPU_TC_HOME)/bin/ucp2/llvm-mc -arch=ucps2 -I../inc -filetype=obj -o "$@" "$<" - @echo 'Finished building: $<' - @echo ' ' - -Lib/%.o: ../Src/%.c - @echo 'Building file: $<' - @echo 'Invoking: Clang' - /public/share/tools/msdk/toolchain/bin/ucp2/clang --target=ucps2 $(INCS) -I../inc -I/public/share/tools/msdk/toolchain/include/ucp2/newlib -I/public/share/tools/msdk/toolchain/include/ucp2/llvm -O2 -Wno-constant-conversion -nostdlibinc -MMD -MP -o "$@" -c "$<" - @echo 'Finished building: $<' - @echo ' ' - - diff --git a/public/rtos/code/smartos_code/makefile b/public/rtos/code/smartos_code/makefile new file mode 100644 index 0000000..f633148 --- /dev/null +++ b/public/rtos/code/smartos_code/makefile @@ -0,0 +1,42 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# set toolchain home +ifeq ($(strip $(MaPU_TC_HOME)),) +MaPU_TC_HOME := /public/share/tools/msdk/toolchain +endif + +RM := rm -rf +APP: all +LIB: libsmartos.a +.PHONY: LIB APP + +# All of the sources participating in the build are defined here +-include ./obj/subdir.mk + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +endif + +# Add inputs and outputs from these tool invocations to the build variables + +# All Target +all: libsmartos.a + +# Tool invocations +libsmartos.a: $(OBJS) + @echo 'Building target: $@' + @echo 'Invoking: GNU archiver' + ar rcs "./lib/libsmartos.a" $(USER_OBJS) $(OBJS) $(LIBS) + @echo 'Finished building target: $@' + @echo ' ' + +# Other Targets +clean: + -$(RM) ./obj/*.o ./obj/*.d ./lib/libsmartos.a + -@echo ' ' + +.PHONY: all clean dependents diff --git a/public/rtos/code/smartos_code/makefile.init b/public/rtos/code/smartos_code/makefile.init deleted file mode 100644 index b113228..0000000 --- a/public/rtos/code/smartos_code/makefile.init +++ /dev/null @@ -1,12 +0,0 @@ -# set custom targets - -# set toolchain home -ifeq ($(strip $(MaPU_TC_HOME)),) -MaPU_TC_HOME := /public/share/tools/msdk/toolchain -endif - -APP: all - -LIB: libsmartos.a - -.PHONY: LIB APP \ No newline at end of file diff --git a/public/rtos/code/smartos_code/obj/subdir.mk b/public/rtos/code/smartos_code/obj/subdir.mk new file mode 100644 index 0000000..1afb8a7 --- /dev/null +++ b/public/rtos/code/smartos_code/obj/subdir.mk @@ -0,0 +1,98 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Add inputs and outputs from these tool invocations to the build variables +ASM_SRCS += \ +./src/__ucps2_interrupt.s.asm + +C_SRCS += \ +./src/alg.s.c \ +./src/debug.s.c \ +./src/func_lib_ape.c \ +./src/inter_vector.s.c \ +./src/mailbox.s.c \ +./src/os_core.s.c \ +./src/os_cpu_c.s.c \ +./src/os_dbg_r.s.c \ +./src/os_flag.s.c \ +./src/os_mbox.s.c \ +./src/os_mem.s.c \ +./src/os_mutex.s.c \ +./src/os_q.s.c \ +./src/os_sem.s.c \ +./src/os_task.s.c \ +./src/os_time.s.c \ +./src/os_tmr.s.c \ +./src/os_ucp.s.c \ +./src/sem.s.c \ +./src/smartos.s.c \ +./src/timer.s.c \ +./src/ucos_ii.s.c + +OBJS += \ +./obj/__ucps2_interrupt.s.o \ +./obj/alg.s.o \ +./obj/debug.s.o \ +./obj/func_lib_ape.o \ +./obj/inter_vector.s.o \ +./obj/mailbox.s.o \ +./obj/os_core.s.o \ +./obj/os_cpu_c.s.o \ +./obj/os_dbg_r.s.o \ +./obj/os_flag.s.o \ +./obj/os_mbox.s.o \ +./obj/os_mem.s.o \ +./obj/os_mutex.s.o \ +./obj/os_q.s.o \ +./obj/os_sem.s.o \ +./obj/os_task.s.o \ +./obj/os_time.s.o \ +./obj/os_tmr.s.o \ +./obj/os_ucp.s.o \ +./obj/sem.s.o \ +./obj/smartos.s.o \ +./obj/timer.s.o \ +./obj/ucos_ii.s.o + +C_DEPS += \ +./obj/alg.s.d \ +./obj/debug.s.d \ +./obj/func_lib_ape.d \ +./obj/inter_vector.s.d \ +./obj/mailbox.s.d \ +./obj/os_core.s.d \ +./obj/os_cpu_c.s.d \ +./obj/os_dbg_r.s.d \ +./obj/os_flag.s.d \ +./obj/os_mbox.s.d \ +./obj/os_mem.s.d \ +./obj/os_mutex.s.d \ +./obj/os_q.s.d \ +./obj/os_sem.s.d \ +./obj/os_task.s.d \ +./obj/os_time.s.d \ +./obj/os_tmr.s.d \ +./obj/os_ucp.s.d \ +./obj/sem.s.d \ +./obj/smartos.s.d \ +./obj/timer.s.d \ +./obj/ucos_ii.s.d + + +# Each subdirectory must supply rules for building sources it contributes +obj/__ucps2_interrupt.s.o: ./src/__ucps2_interrupt.s.asm + @echo 'Building file: $<' + @echo 'Invoking: llvm-mc Assembler' + $(MaPU_TC_HOME)/bin/ucp2/llvm-mc -arch=ucps2 -I./inc -filetype=obj -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +obj/%.o: ./src/%.c + @echo 'Building file: $<' + @echo 'Invoking: Clang' + /public/share/tools/msdk/toolchain/bin/ucp2/clang --target=ucps2 $(INCS) -I./inc -I/public/share/tools/msdk/toolchain/include/ucp2/newlib -I/public/share/tools/msdk/toolchain/include/ucp2/llvm -O2 -Wno-constant-conversion -nostdlibinc -MMD -MP -o "$@" -c "$<" + @echo 'Finished building: $<' + @echo ' ' + + diff --git a/public/rtos/code/smartos_code/Src/__ucps2_interrupt.s.asm b/public/rtos/code/smartos_code/src/__ucps2_interrupt.s.asm similarity index 100% rename from public/rtos/code/smartos_code/Src/__ucps2_interrupt.s.asm rename to public/rtos/code/smartos_code/src/__ucps2_interrupt.s.asm diff --git a/public/rtos/code/smartos_code/Src/alg.s.c b/public/rtos/code/smartos_code/src/alg.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/alg.s.c rename to public/rtos/code/smartos_code/src/alg.s.c diff --git a/public/rtos/code/smartos_code/Src/debug.s.c b/public/rtos/code/smartos_code/src/debug.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/debug.s.c rename to public/rtos/code/smartos_code/src/debug.s.c diff --git a/public/rtos/code/smartos_code/Src/func_lib_ape.c b/public/rtos/code/smartos_code/src/func_lib_ape.c similarity index 100% rename from public/rtos/code/smartos_code/Src/func_lib_ape.c rename to public/rtos/code/smartos_code/src/func_lib_ape.c diff --git a/public/rtos/code/smartos_code/Src/func_lib_ape.h b/public/rtos/code/smartos_code/src/func_lib_ape.h similarity index 100% rename from public/rtos/code/smartos_code/Src/func_lib_ape.h rename to public/rtos/code/smartos_code/src/func_lib_ape.h diff --git a/public/rtos/code/smartos_code/Src/inter_vector.s.c b/public/rtos/code/smartos_code/src/inter_vector.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/inter_vector.s.c rename to public/rtos/code/smartos_code/src/inter_vector.s.c diff --git a/public/rtos/code/smartos_code/Src/mailbox.s.c b/public/rtos/code/smartos_code/src/mailbox.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/mailbox.s.c rename to public/rtos/code/smartos_code/src/mailbox.s.c diff --git a/public/rtos/code/smartos_code/Src/os_core.s.c b/public/rtos/code/smartos_code/src/os_core.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_core.s.c rename to public/rtos/code/smartos_code/src/os_core.s.c diff --git a/public/rtos/code/smartos_code/Src/os_cpu_c.s.c b/public/rtos/code/smartos_code/src/os_cpu_c.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_cpu_c.s.c rename to public/rtos/code/smartos_code/src/os_cpu_c.s.c diff --git a/public/rtos/code/smartos_code/Src/os_dbg_r.s.c b/public/rtos/code/smartos_code/src/os_dbg_r.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_dbg_r.s.c rename to public/rtos/code/smartos_code/src/os_dbg_r.s.c diff --git a/public/rtos/code/smartos_code/Src/os_flag.s.c b/public/rtos/code/smartos_code/src/os_flag.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_flag.s.c rename to public/rtos/code/smartos_code/src/os_flag.s.c diff --git a/public/rtos/code/smartos_code/Src/os_mbox.s.c b/public/rtos/code/smartos_code/src/os_mbox.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_mbox.s.c rename to public/rtos/code/smartos_code/src/os_mbox.s.c diff --git a/public/rtos/code/smartos_code/Src/os_mem.s.c b/public/rtos/code/smartos_code/src/os_mem.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_mem.s.c rename to public/rtos/code/smartos_code/src/os_mem.s.c diff --git a/public/rtos/code/smartos_code/Src/os_mutex.s.c b/public/rtos/code/smartos_code/src/os_mutex.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_mutex.s.c rename to public/rtos/code/smartos_code/src/os_mutex.s.c diff --git a/public/rtos/code/smartos_code/Src/os_q.s.c b/public/rtos/code/smartos_code/src/os_q.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_q.s.c rename to public/rtos/code/smartos_code/src/os_q.s.c diff --git a/public/rtos/code/smartos_code/Src/os_sem.s.c b/public/rtos/code/smartos_code/src/os_sem.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_sem.s.c rename to public/rtos/code/smartos_code/src/os_sem.s.c diff --git a/public/rtos/code/smartos_code/Src/os_task.s.c b/public/rtos/code/smartos_code/src/os_task.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_task.s.c rename to public/rtos/code/smartos_code/src/os_task.s.c diff --git a/public/rtos/code/smartos_code/Src/os_time.s.c b/public/rtos/code/smartos_code/src/os_time.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_time.s.c rename to public/rtos/code/smartos_code/src/os_time.s.c diff --git a/public/rtos/code/smartos_code/Src/os_tmr.s.c b/public/rtos/code/smartos_code/src/os_tmr.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_tmr.s.c rename to public/rtos/code/smartos_code/src/os_tmr.s.c diff --git a/public/rtos/code/smartos_code/Src/os_ucp.s.c b/public/rtos/code/smartos_code/src/os_ucp.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/os_ucp.s.c rename to public/rtos/code/smartos_code/src/os_ucp.s.c diff --git a/public/rtos/code/smartos_code/Src/sem.s.c b/public/rtos/code/smartos_code/src/sem.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/sem.s.c rename to public/rtos/code/smartos_code/src/sem.s.c diff --git a/public/rtos/code/smartos_code/Src/smartos.s.c b/public/rtos/code/smartos_code/src/smartos.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/smartos.s.c rename to public/rtos/code/smartos_code/src/smartos.s.c diff --git a/public/rtos/code/smartos_code/Src/timer.s.c b/public/rtos/code/smartos_code/src/timer.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/timer.s.c rename to public/rtos/code/smartos_code/src/timer.s.c diff --git a/public/rtos/code/smartos_code/Src/ucos_ii.s.c b/public/rtos/code/smartos_code/src/ucos_ii.s.c similarity index 100% rename from public/rtos/code/smartos_code/Src/ucos_ii.s.c rename to public/rtos/code/smartos_code/src/ucos_ii.s.c diff --git a/public/rtos/code/spinlock_code/lib/libspinlock.a b/public/rtos/code/spinlock_code/lib/libspinlock.a index ec5c4a8..9478539 100644 Binary files a/public/rtos/code/spinlock_code/lib/libspinlock.a and b/public/rtos/code/spinlock_code/lib/libspinlock.a differ diff --git a/public/rtos/code/spinlock_code/makefile b/public/rtos/code/spinlock_code/makefile new file mode 100644 index 0000000..fb477b9 --- /dev/null +++ b/public/rtos/code/spinlock_code/makefile @@ -0,0 +1,42 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# set toolchain home +ifeq ($(strip $(MaPU_TC_HOME)),) +MaPU_TC_HOME := /public/share/tools/msdk/toolchain +endif + +RM := rm -rf +APP: all +LIB: libspinlock.a +.PHONY: LIB APP + +# All of the sources participating in the build are defined here +-include ./obj/subdir.mk + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +endif + +# Add inputs and outputs from these tool invocations to the build variables + +# All Target +all: libspinlock.a + +# Tool invocations +libspinlock.a: $(OBJS) + @echo 'Building target: $@' + @echo 'Invoking: GNU archiver' + ar rcs "./lib/libspinlock.a" $(USER_OBJS) $(OBJS) $(LIBS) + @echo 'Finished building target: $@' + @echo ' ' + +# Other Targets +clean: + -$(RM) ./obj/*.o ./obj/*.d ./lib/libspinlock.a + -@echo ' ' + +.PHONY: all clean dependents diff --git a/public/rtos/code/spinlock_code/obj/subdir.mk b/public/rtos/code/spinlock_code/obj/subdir.mk new file mode 100644 index 0000000..539a982 --- /dev/null +++ b/public/rtos/code/spinlock_code/obj/subdir.mk @@ -0,0 +1,20 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +# Add inputs and outputs from these tool invocations to the build variables + +C_SRCS += ./src/spinlock.s.c + +OBJS += ./obj/spinlock.s.o + +C_DEPS += ./obj/spinlock.s.d + +obj/%.o: ./src/%.c + @echo 'Building file: $<' + @echo 'Invoking: Clang' + /public/share/tools/msdk/toolchain/bin/ucp2/clang --target=ucps2 $(INCS) -I./inc -I/public/share/tools/msdk/toolchain/include/ucp2/newlib -I/public/share/tools/msdk/toolchain/include/ucp2/llvm -O2 -Wno-constant-conversion -nostdlibinc -MMD -MP -o "$@" -c "$<" + @echo 'Finished building: $<' + @echo ' ' + + diff --git a/public/rtos/code/spinlock_code/Src/spinlock.s.c b/public/rtos/code/spinlock_code/src/spinlock.s.c similarity index 100% rename from public/rtos/code/spinlock_code/Src/spinlock.s.c rename to public/rtos/code/spinlock_code/src/spinlock.s.c