Created
May 10, 2020 22:56
-
-
Save mikoto2000/f7fc041c312df882199fce4a07f15488 to your computer and use it in GitHub Desktop.
FreeRTOS/Demo/CORTEX_A53_64-bit_UltraScale_MPSoC/RTOSDemo_A53 をビルドするための Makefile
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
LIBXIL := ../RTOSDemo_A53_bsp/psu_cortexa53_0/lib/libxil.a | |
LIBXIL_MAKEFILE := ../RTOSDemo_A53_bsp/Makefile | |
LIBXIL_DIR := ../RTOSDemo_A53_bsp | |
OBJDIR := obj | |
CFLAGS := -Wall -O0 -g3 -fmessage-length=0 -fno-builtin -MMD -MP | |
TARGET := $(OBJDIR)/FreeRTOSDemo_A53.elf | |
INCLUDE := \ | |
-I "../../../Source/include" \ | |
-I "../../../Source/portable/GCC/ARM_CA53_64_BIT" \ | |
-I "../../../Demo/CORTEX_A53_64-bit_UltraScale_MPSoC/RTOSDemo_A53/src/Full_Demo" \ | |
-I "../../../Demo/Common/include" \ | |
-I "../../../Demo/CORTEX_A53_64-bit_UltraScale_MPSoC/RTOSDemo_A53/src" \ | |
-I "../RTOSDemo_A53_bsp/psu_cortexa53_0/include" | |
LFLAGS := -z muldefs -Wl,-T -Wl,./src/lscript.ld -L"../RTOSDemo_A53_bsp/psu_cortexa53_0/lib" | |
APP_SOURCES := ./src/Blinky_Demo/main_blinky.c \ | |
../../../Source/croutine.c \ | |
../../../Source/event_groups.c \ | |
../../../Source/list.c \ | |
../../../Source/portable/GCC/ARM_CA53_64_BIT/port.c \ | |
../../../Source/portable/GCC/ARM_CA53_64_BIT/portASM.S \ | |
../../../Source/portable/MemMang/heap_4.c \ | |
../../../Source/queue.c \ | |
../../../Source/stream_buffer.c \ | |
../../../Source/tasks.c \ | |
../../../Source/timers.c \ | |
./src/FreeRTOS_asm_vectors.S \ | |
./src/FreeRTOS_tick_config.c \ | |
./src/Full_Demo/IntQueueTimer.c \ | |
../../Common/Minimal/AbortDelay.c \ | |
../../Common/Minimal/EventGroupsDemo.c \ | |
../../Common/Minimal/GenQTest.c \ | |
../../Common/Minimal/IntQueue.c \ | |
../../Common/Minimal/IntSemTest.c \ | |
../../Common/Minimal/QueueOverwrite.c \ | |
../../Common/Minimal/StaticAllocation.c \ | |
../../Common/Minimal/TaskNotify.c \ | |
../../Common/Minimal/TimerDemo.c \ | |
../../Common/Minimal/blocktim.c \ | |
../../Common/Minimal/countsem.c \ | |
../../Common/Minimal/dynamic.c \ | |
../../Common/Minimal/flop.c \ | |
../../Common/Minimal/recmutex.c \ | |
../../Common/Minimal/semtest.c \ | |
./src/Full_Demo/main_full.c \ | |
./src/Full_Demo/reg_test.S \ | |
./src/main.c \ | |
./src/platform.c | |
APP_OBJECTS := $(addprefix $(OBJDIR)/, $(notdir $(APP_SOURCES:.c=.o))) | |
APP_OBJECTS := $(APP_OBJECTS:.S=.o) | |
APP_OBJECTS := $(APP_OBJECTS:.s=.o) | |
all: $(LIBXIL) $(OBJDIR) $(TARGET) | |
$(LIBXIL): $(LIBXIL_MAKEFILE) | |
make -C $(LIBXIL_DIR) | |
$(OBJDIR): | |
mkdir $(OBJDIR) | |
$(TARGET): $(APP_OBJECTS) | |
aarch64-none-elf-gcc $(LFLAGS)\ | |
-o $(TARGET) \ | |
$(addprefix $(OBJDIR)/, $(notdir $^)) -Wl,--start-group,-lxil,-lgcc,-lc,--end-group | |
$(OBJDIR)/main_blinky.o: ./src/Blinky_Demo/main_blinky.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/croutine.o: ../../../Source/croutine.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/event_groups.o: ../../../Source/event_groups.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/list.o: ../../../Source/list.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/port.o: ../../../Source/portable/GCC/ARM_CA53_64_BIT/port.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/portASM.o: ../../../Source/portable/GCC/ARM_CA53_64_BIT/portASM.S | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/heap_4.o: ../../../Source/portable/MemMang/heap_4.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/queue.o: ../../../Source/queue.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/stream_buffer.o: ../../../Source/stream_buffer.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/tasks.o: ../../../Source/tasks.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/timers.o: ../../../Source/timers.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/FreeRTOS_asm_vectors.o: ./src/FreeRTOS_asm_vectors.S | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/FreeRTOS_tick_config.o: ./src/FreeRTOS_tick_config.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/IntQueueTimer.o: ./src/Full_Demo/IntQueueTimer.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/AbortDelay.o: ../../Common/Minimal/AbortDelay.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/EventGroupsDemo.o: ../../Common/Minimal/EventGroupsDemo.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/GenQTest.o: ../../Common/Minimal/GenQTest.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/IntQueue.o: ../../Common/Minimal/IntQueue.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/IntSemTest.o: ../../Common/Minimal/IntSemTest.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/QueueOverwrite.o: ../../Common/Minimal/QueueOverwrite.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/StaticAllocation.o: ../../Common/Minimal/StaticAllocation.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/TaskNotify.o: ../../Common/Minimal/TaskNotify.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/TimerDemo.o: ../../Common/Minimal/TimerDemo.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/blocktim.o: ../../Common/Minimal/blocktim.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/countsem.o: ../../Common/Minimal/countsem.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/dynamic.o: ../../Common/Minimal/dynamic.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/flop.o: ../../Common/Minimal/flop.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/recmutex.o: ../../Common/Minimal/recmutex.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/semtest.o: ../../Common/Minimal/semtest.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/main_full.o: ./src/Full_Demo/main_full.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/reg_test.o: ./src/Full_Demo/reg_test.S | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/main.o: ./src/main.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< | |
$(OBJDIR)/platform.o: ./src/platform.c | |
aarch64-none-elf-gcc -c \ | |
$(CFLAGS) $(INCLUDE) \ | |
-o $@ \ | |
$< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment