Skip to content

Commit

Permalink
v3.00.01 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
tron-forum committed May 28, 2020
1 parent 6231d8d commit c9bd8b2
Show file tree
Hide file tree
Showing 115 changed files with 5,686 additions and 325 deletions.
30 changes: 30 additions & 0 deletions build_make/iote_m367.mk
@@ -0,0 +1,30 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

GCC := arm-none-eabi-gcc
AS := arm-none-eabi-gcc
LINK := arm-none-eabi-gcc

CFLAGS := -mcpu=cortex-m3 -mthumb -ffreestanding\
-std=gnu11 \
-O0 -g3 \
-MMD -MP \

ASFLAGS := -mcpu=cortex-m3 -mthumb -ffreestanding\
-x assembler-with-cpp \
-O0 -g3 \
-MMD -MP \

LFLAGS := -mcpu=cortex-m3 -mthumb -ffreestanding \
-nostartfiles \
-O0 -g3 \

LNKFILE := "../etc/linker/iote_m367/tkernel_map.ld"

-include mtkernel_3/lib/libtm/sysdepend/iote_m367/subdir.mk
-include mtkernel_3/lib/libtk/sysdepend/cpu/tx03_m367/subdir.mk
-include mtkernel_3/lib/libtk/sysdepend/cpu/core/acm3/subdir.mk
-include mtkernel_3/kernel/sysdepend/iote_m367/subdir.mk
-include mtkernel_3/kernel/sysdepend/cpu/tx03_m367/subdir.mk
-include mtkernel_3/kernel/sysdepend/cpu/core/acm3/subdir.mk
29 changes: 29 additions & 0 deletions build_make/iote_rx231.mk
@@ -0,0 +1,29 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

GCC := rx-elf-gcc
AS := rx-elf-gcc
LINK := rx-elf-gcc

CFLAGS := -mcpu=rx230 -misa=v2 -mlittle-endian-data \
-O0 -ffunction-sections -fdata-sections -g2 \
-MMD -MP \

ASFLAGS := -mcpu=rx230 -misa=v2 -mlittle-endian-data \
-O0 -ffunction-sections -fdata-sections -g2 \
-x assembler-with-cpp -Wa,--gdwarf2 \
-MMD -MP \

LFLAGS := -mcpu=rx230 -misa=v2 -mlittle-endian-data \
-O0 -ffunction-sections -fdata-sections -g2 \
-nostartfiles -nostdlib

LNKFILE := "..\etc\linker\iote_rx231\tkernel_map.ld"

-include mtkernel_3/lib/libtm/sysdepend/iote_rx231/subdir.mk
-include mtkernel_3/lib/libtk/sysdepend/cpu/rx231/subdir.mk
-include mtkernel_3/lib/libtk/sysdepend/cpu/core/rxv2/subdir.mk
-include mtkernel_3/kernel/sysdepend/iote_rx231/subdir.mk
-include mtkernel_3/kernel/sysdepend/cpu/rx231/subdir.mk
-include mtkernel_3/kernel/sysdepend/cpu/core/rxv2/subdir.mk
60 changes: 60 additions & 0 deletions build_make/makefile
@@ -0,0 +1,60 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

# Specify the name of the executable file to be built (Do not include the extension)
EXE_FILE := mtkernel_3

# Specify only one target name
TARGET := _IOTE_M367_
#TARGET := _IOTE_RX231_

RM := rm -rf

INCPATH = -I"../include" -I"../config" -I"../kernel/knlinc"

# All of the sources participating in the build are defined here
-include sources.mk
-include mtkernel_3/lib/libtm/subdir.mk
-include mtkernel_3/lib/libtk/subdir.mk
-include mtkernel_3/kernel/usermain/subdir.mk
-include mtkernel_3/kernel/tstdlib/subdir.mk
-include mtkernel_3/kernel/tkernel/subdir.mk
-include mtkernel_3/kernel/sysinit/subdir.mk
-include mtkernel_3/kernel/inittask/subdir.mk
-include mtkernel_3/app_sample/subdir.mk

ifeq ($(TARGET), _IOTE_M367_)
include iote_m367.mk
endif
ifeq ($(TARGET), _IOTE_RX231_)
include iote_rx231.mk
endif

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

# All EXE_FILE
all: $(EXE_FILE).elf

$(EXE_FILE).elf: $(OBJS)
@echo 'Linker: $@'
$(LINK) $(LFLAGS) -T $(LNKFILE) -Wl,-Map,"$(EXE_FILE).map" -o "$(EXE_FILE).elf" $(OBJS)
@echo 'Finished building target: $@'
@echo ' '

# Other EXE_FILEs
clean:
-$(RM) $(OBJS)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS) $(EXE_FILE).elf
-@echo ' '

.PHONY: all clean dependents
16 changes: 16 additions & 0 deletions build_make/mtkernel_3/app_sample/subdir.mk
@@ -0,0 +1,16 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

TEMP_SRCS = $(wildcard ../app_sample/*.c)
TEMP_OBJS = $(TEMP_SRCS:.c=.o)
TEMP_DEPS = $(TEMP_SRCS:.c=.d)

OBJS += $(subst ../, ./mtkernel_3/, $(TEMP_OBJS))
C_DEPS += $(subst ../, ./mtkernel_3/, $(TEMP_DEPS))

mtkernel_3/app_sample/%.o: ../app_sample/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '
17 changes: 17 additions & 0 deletions build_make/mtkernel_3/kernel/inittask/subdir.mk
@@ -0,0 +1,17 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

OBJS += \
./mtkernel_3/kernel/inittask/inittask.o

C_DEPS += \
./mtkernel_3/kernel/inittask/inittask.d

mtkernel_3/kernel/inittask/%.o: ../kernel/inittask/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


39 changes: 39 additions & 0 deletions build_make/mtkernel_3/kernel/sysdepend/cpu/core/acm3/subdir.mk
@@ -0,0 +1,39 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

S_UPPER_SRCS += \
../kernel/sysdepend/cpu/core/acm3/dispatch.S

OBJS += \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/cpu_cntl.o \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/dispatch.o \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/exc_hdr.o \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/interrupt.o \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/reset_hdl.o \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/vector_tbl.o

S_UPPER_DEPS += \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/dispatch.d

C_DEPS += \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/cpu_cntl.d \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/exc_hdr.d \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/interrupt.d \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/reset_hdl.d \
./mtkernel_3/kernel/sysdepend/cpu/core/acm3/vector_tbl.d


mtkernel_3/kernel/sysdepend/cpu/core/acm3/%.o: ../kernel/sysdepend/cpu/core/acm3/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

mtkernel_3/kernel/sysdepend/cpu/core/acm3/%.o: ../kernel/sysdepend/cpu/core/acm3/%.S
@echo 'Building file: $<'
$(AS) $(ASFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


42 changes: 42 additions & 0 deletions build_make/mtkernel_3/kernel/sysdepend/cpu/core/rxv2/subdir.mk
@@ -0,0 +1,42 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

S_UPPER_SRCS += \
../kernel/sysdepend/cpu/core/rxv2/dispatch.S \
../kernel/sysdepend/cpu/core/rxv2/int_asm.S \
../kernel/sysdepend/cpu/core/rxv2/reset_hdl.S

OBJS += \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/cpu_cntl.o \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/dispatch.o \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/exc_hdr.o \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/int_asm.o \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/interrupt.o \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/reset_hdl.o \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/reset_main.o \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/vector_tbl.o

S_UPPER_DEPS += \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/dispatch.d \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/int_asm.d \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/reset_hdl.d

C_DEPS += \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/cpu_cntl.d \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/exc_hdr.d \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/interrupt.d \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/reset_main.d \
./mtkernel_3/kernel/sysdepend/cpu/core/rxv2/vector_tbl.d

mtkernel_3/kernel/sysdepend/cpu/core/rxv2/%.o: ../kernel/sysdepend/cpu/core/rxv2/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

mtkernel_3/kernel/sysdepend/cpu/core/rxv2/%.o: ../kernel/sysdepend/cpu/core/rxv2/%.S
@echo 'Building file: $<'
$(AS) $(ASFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '
32 changes: 32 additions & 0 deletions build_make/mtkernel_3/kernel/sysdepend/cpu/rx231/subdir.mk
@@ -0,0 +1,32 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

S_UPPER_SRCS += \
../kernel/sysdepend/cpu/rx231/hllint_ent.S

OBJS += \
./mtkernel_3/kernel/sysdepend/cpu/rx231/cpu_clock.o \
./mtkernel_3/kernel/sysdepend/cpu/rx231/hllint_ent.o \
./mtkernel_3/kernel/sysdepend/cpu/rx231/hllint_tbl.o \
./mtkernel_3/kernel/sysdepend/cpu/rx231/intvect_tbl.o

S_UPPER_DEPS += \
./mtkernel_3/kernel/sysdepend/cpu/rx231/hllint_ent.d

C_DEPS += \
./mtkernel_3/kernel/sysdepend/cpu/rx231/cpu_clock.d \
./mtkernel_3/kernel/sysdepend/cpu/rx231/hllint_tbl.d \
./mtkernel_3/kernel/sysdepend/cpu/rx231/intvect_tbl.d

mtkernel_3/kernel/sysdepend/cpu/rx231/%.o: ../kernel/sysdepend/cpu/rx231/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

mtkernel_3/kernel/sysdepend/cpu/rx231/%.o: ../kernel/sysdepend/cpu/rx231/%.S
@echo 'Building file: $<'
$(AS) $(ASFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '
17 changes: 17 additions & 0 deletions build_make/mtkernel_3/kernel/sysdepend/cpu/tx03_m367/subdir.mk
@@ -0,0 +1,17 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

OBJS += \
./mtkernel_3/kernel/sysdepend/cpu/tx03_m367/cpu_clock.o

C_DEPS += \
./mtkernel_3/kernel/sysdepend/cpu/tx03_m367/cpu_clock.d

mtkernel_3/kernel/sysdepend/cpu/tx03_m367/%.o: ../kernel/sysdepend/cpu/tx03_m367/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


20 changes: 20 additions & 0 deletions build_make/mtkernel_3/kernel/sysdepend/iote_m367/subdir.mk
@@ -0,0 +1,20 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

OBJS += \
./mtkernel_3/kernel/sysdepend/iote_m367/devinit.o \
./mtkernel_3/kernel/sysdepend/iote_m367/hw_setting.o \
./mtkernel_3/kernel/sysdepend/iote_m367/power_save.o

C_DEPS += \
./mtkernel_3/kernel/sysdepend/iote_m367/devinit.d \
./mtkernel_3/kernel/sysdepend/iote_m367/hw_setting.d \
./mtkernel_3/kernel/sysdepend/iote_m367/power_save.d


mtkernel_3/kernel/sysdepend/iote_m367/%.o: ../kernel/sysdepend/iote_m367/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '
21 changes: 21 additions & 0 deletions build_make/mtkernel_3/kernel/sysdepend/iote_rx231/subdir.mk
@@ -0,0 +1,21 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

OBJS += \
./mtkernel_3/kernel/sysdepend/iote_rx231/devinit.o \
./mtkernel_3/kernel/sysdepend/iote_rx231/hw_setting.o \
./mtkernel_3/kernel/sysdepend/iote_rx231/power.o

C_DEPS += \
./mtkernel_3/kernel/sysdepend/iote_rx231/devinit.d \
./mtkernel_3/kernel/sysdepend/iote_rx231/hw_setting.d \
./mtkernel_3/kernel/sysdepend/iote_rx231/power.d

mtkernel_3/kernel/sysdepend/iote_rx231/%.o: ../kernel/sysdepend/iote_rx231/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


17 changes: 17 additions & 0 deletions build_make/mtkernel_3/kernel/sysinit/subdir.mk
@@ -0,0 +1,17 @@
################################################################################
# micro T-Kernel 3.00.01 makefile
################################################################################

OBJS += \
./mtkernel_3/kernel/sysinit/sysinit.o

C_DEPS += \
./mtkernel_3/kernel/sysinit/sysinit.d

mtkernel_3/kernel/sysinit/%.o: ../kernel/sysinit/%.c
@echo 'Building file: $<'
$(GCC) $(CFLAGS) -D$(TARGET) $(INCPATH) -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


0 comments on commit c9bd8b2

Please sign in to comment.