mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 20:03:50 -04:00
Stubs ready for ColdFire V2 demo.
This commit is contained in:
parent
35be76b9b7
commit
78d3b371fd
36 changed files with 7366 additions and 0 deletions
96
Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/Makefile
Normal file
96
Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/Makefile
Normal file
|
@ -0,0 +1,96 @@
|
|||
RM := rm -rf
|
||||
|
||||
FREERTOS_SOURCE_DIR=./../../../Source
|
||||
PORT_SOURCE_DIR=./../../../Source/portable/GCC/ColdFire_V2
|
||||
COMMON_DEMO_CODE_DIR=./../../Common/Minimal
|
||||
OUTPUT_DIR=./bin
|
||||
CPU=528x
|
||||
LINKER_SCRIPT=m5282evb-ram-hosted.ld
|
||||
OUTPUT_FILENAME=RTOSDemo.elf
|
||||
CC=m68k-elf-gcc
|
||||
AS=m68K-elf-as
|
||||
VPATH=$(FREERTOS_SOURCE_DIR) : $(PORT_SOURCE_DIR) : $(COMMON_DEMO_CODE_DIR) : $(FREERTOS_SOURCE_DIR)/portable/MemMang : . : ./ParTest
|
||||
|
||||
OBJS = $(OUTPUT_DIR)/portasm.o \
|
||||
$(OUTPUT_DIR)/main.o \
|
||||
$(OUTPUT_DIR)/ParTest.o \
|
||||
$(OUTPUT_DIR)/BlockQ.o \
|
||||
$(OUTPUT_DIR)/blocktim.o \
|
||||
$(OUTPUT_DIR)/death.o \
|
||||
$(OUTPUT_DIR)/integer.o \
|
||||
$(OUTPUT_DIR)/PollQ.o \
|
||||
$(OUTPUT_DIR)/semtest.o \
|
||||
$(OUTPUT_DIR)/GenQTest.o \
|
||||
$(OUTPUT_DIR)/QPeek.o \
|
||||
$(OUTPUT_DIR)/recmutex.o \
|
||||
$(OUTPUT_DIR)/port.o \
|
||||
$(OUTPUT_DIR)/list.o \
|
||||
$(OUTPUT_DIR)/tasks.o \
|
||||
$(OUTPUT_DIR)/queue.o \
|
||||
$(OUTPUT_DIR)/heap_2.o \
|
||||
$(OUTPUT_DIR)/FreeRTOS_Timer.o
|
||||
|
||||
C_DEPS = $(OBJS:.o=.d)
|
||||
|
||||
|
||||
CFLAGS= -I"$(FREERTOS_SOURCE_DIR)/include" \
|
||||
-I"include" \
|
||||
-I"$(COMMON_DEMO_CODE_DIR)/../include" \
|
||||
-I"$(PORT_SOURCE_DIR)" \
|
||||
-I./MCF5282 \
|
||||
-I. \
|
||||
-D COLDFIRE_V2_GCC \
|
||||
-O0 \
|
||||
-g3 \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-c \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-fmessage-length=0 \
|
||||
-funsigned-char \
|
||||
-Wextra \
|
||||
-mcpu=$(CPU) \
|
||||
-MMD \
|
||||
-MP \
|
||||
-MF"$(@:%.o=%.d)" \
|
||||
-MT"$(@:%.o=%.d)"
|
||||
|
||||
ASFLAGS= -m528x \
|
||||
--register-prefix-optional \
|
||||
--bitwise-or
|
||||
|
||||
LIBS=
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: $(OUTPUT_DIR)/$(OUTPUT_FILENAME)
|
||||
|
||||
# Tool invocations
|
||||
$(OUTPUT_DIR)/$(OUTPUT_FILENAME): $(OBJS)
|
||||
$(CC) -nostartfiles --gc-sections -Xlinker -Map=$(OUTPUT_DIR)/output.map -mcpu=$(CPU) -T $(LINKER_SCRIPT) -o"$(OUTPUT_DIR)/$(OUTPUT_FILENAME)" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
|
||||
$(OUTPUT_DIR)/%.o: %.c Makefile
|
||||
$(CC) $(CFLAGS) -o"$@" "$<"
|
||||
|
||||
$(OUTPUT_DIR)/%.o: %.S
|
||||
$(AS) $(ASFLAGS) -o"$@" "$<"
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(OBJS) $(C_DEPS) $(EXECUTABLES) $(OUTPUT_DIR)/$(OUTPUT_FILENAME)
|
||||
-@echo ' '
|
||||
|
||||
#
|
||||
# The rule to create the target directory
|
||||
#
|
||||
$(OUTPUT_DIR):
|
||||
@mkdir $(OUTPUT_DIR)
|
||||
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.SECONDARY: post-build
|
||||
|
||||
-include $(wildcard $(OUTPUT_DIR)/*.d) __dummy__
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue