Created Makefile to build entire project and moved microblaze code back into the repo

This commit is contained in:
2020-09-21 02:55:13 +02:00
parent afd4ba4fe4
commit 637dfa2c07
30 changed files with 7105 additions and 6 deletions

BIN
mb/Graphics/Release/Graphics.elf Executable file

Binary file not shown.

View File

@@ -0,0 +1,65 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
ELFSIZE += \
ELFCHECK += \
# All Target
all: Graphics.elf secondary-outputs
# Tool invocations
Graphics.elf: $(OBJS) ../src/lscript.ld $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: MicroBlaze gcc linker'
mb-gcc -Wl,-T -Wl,../src/lscript.ld -L../../Graphics_bsp/microblaze_mcs/lib -mlittle-endian -mcpu=v8.40.a -mxl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "Graphics.elf" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
Graphics.elf.size: Graphics.elf
@echo 'Invoking: MicroBlaze Print Size'
mb-size Graphics.elf |tee "Graphics.elf.size"
@echo 'Finished building: $@'
@echo ' '
Graphics.elf.elfcheck: Graphics.elf
@echo 'Invoking: Xilinx ELF Check'
elfcheck Graphics.elf -hw ../../hardware/system.xml -pe microblaze_mcs |tee "Graphics.elf.elfcheck"
@echo 'Finished building: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES)$(ELFSIZE)$(ELFCHECK)$(S_UPPER_DEPS) Graphics.elf
-@echo ' '
secondary-outputs: $(ELFSIZE) $(ELFCHECK)
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets

View File

@@ -0,0 +1,8 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
USER_OBJS :=
LIBS := -Wl,--start-group,-lxil,-lgcc,-lc,--end-group

View File

@@ -0,0 +1,21 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
O_SRCS :=
C_SRCS :=
LD_SRCS :=
S_UPPER_SRCS :=
S_SRCS :=
OBJ_SRCS :=
OBJS :=
C_DEPS :=
EXECUTABLES :=
ELFSIZE :=
ELFCHECK :=
S_UPPER_DEPS :=
# Every subdirectory with source files must be described here
SUBDIRS := \
src \

View File

@@ -0,0 +1,25 @@
src/main.d: ../src/main.c \
../../Graphics_bsp/microblaze_mcs/include/xparameters.h \
../../Graphics_bsp/microblaze_mcs/include/xiomodule.h \
../../Graphics_bsp/microblaze_mcs/include/xbasic_types.h \
../../Graphics_bsp/microblaze_mcs/include/xparameters.h \
../../Graphics_bsp/microblaze_mcs/include/xstatus.h \
../../Graphics_bsp/microblaze_mcs/include/xiomodule_l.h \
../../Graphics_bsp/microblaze_mcs/include/xiomodule_io.h \
../../Graphics_bsp/microblaze_mcs/include/xil_io.h \
../../Graphics_bsp/microblaze_mcs/include/xil_types.h \
../../Graphics_bsp/microblaze_mcs/include/mb_interface.h \
../../Graphics_bsp/microblaze_mcs/include/xil_printf.h \
../../Graphics_bsp/microblaze_mcs/include/xio.h
../../Graphics_bsp/microblaze_mcs/include/xparameters.h:
../../Graphics_bsp/microblaze_mcs/include/xiomodule.h:
../../Graphics_bsp/microblaze_mcs/include/xbasic_types.h:
../../Graphics_bsp/microblaze_mcs/include/xparameters.h:
../../Graphics_bsp/microblaze_mcs/include/xstatus.h:
../../Graphics_bsp/microblaze_mcs/include/xiomodule_l.h:
../../Graphics_bsp/microblaze_mcs/include/xiomodule_io.h:
../../Graphics_bsp/microblaze_mcs/include/xil_io.h:
../../Graphics_bsp/microblaze_mcs/include/xil_types.h:
../../Graphics_bsp/microblaze_mcs/include/mb_interface.h:
../../Graphics_bsp/microblaze_mcs/include/xil_printf.h:
../../Graphics_bsp/microblaze_mcs/include/xio.h:

Binary file not shown.

View File

@@ -0,0 +1,27 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../src/main.c
LD_SRCS += \
../src/lscript.ld
OBJS += \
./src/main.o
C_DEPS += \
./src/main.d
# Each subdirectory must supply rules for building sources it contributes
src/main.o: ../src/main.c
@echo 'Building file: $<'
@echo 'Invoking: MicroBlaze gcc compiler'
mb-gcc -Wall -O3 -I../../Graphics_bsp/microblaze_mcs/include -c -fmessage-length=0 -mno-xl-reorder -mlittle-endian -mcpu=v8.40.a -mxl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"$(@:%.o=%.d)" -MT"src/main.d" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '