compiled for q7s, q7s readme parts

This commit is contained in:
2020-11-07 16:48:30 +01:00
parent b34264fa93
commit d56d10b75d
5 changed files with 111 additions and 35 deletions

View File

@ -70,8 +70,20 @@ CLEANBIN2 = $(BUILDPATH)/$(OUTPUT_FOLDER)/devel
#-------------------------------------------------------------------------------
# Tool suffix when cross-compiling
CROSS_COMPILE =
CROSS_COMPILE = arm-linux-gnueabihf-
ifdef WINDOWS
# C Compiler
CC = $(CROSS_COMPILE)gcc.exe
# C++ compiler
CXX = $(CROSS_COMPILE)g++.exe
# Additional Tools
SIZE = $(CROSS_COMPILE)size.exe
STRIP = $(CROSS_COMPILE)strip.exe
CP = $(CROSS_COMPILE)objcopy.exe
else
# C Compiler
CC = $(CROSS_COMPILE)gcc
@ -82,6 +94,7 @@ CXX = $(CROSS_COMPILE)g++
SIZE = $(CROSS_COMPILE)size
STRIP = $(CROSS_COMPILE)strip
CP = $(CROSS_COMPILE)objcopy
endif
HEXCOPY = $(CP) -O ihex
BINCOPY = $(CP) -O binary
@ -250,6 +263,7 @@ hardclean:
# Only clean files for current build
clean:
@echo $(DEPFILES)
-rm -rf $(CLEANOBJ)
-rm -rf $(CLEANBIN)
-rm -rf $(CLEANDEP)
@ -322,6 +336,7 @@ endif
$(OBJDIR)/%.o: %.cpp
$(OBJDIR)/%.o: %.cpp $(DEPENDDIR)/%.d | $(DEPENDDIR)
@echo $(I_INCLUDES)
@echo
@echo $(MSG_COMPILING) $<
@mkdir -p $(@D)
@ -343,6 +358,7 @@ else
@$(CC) $(CXXFLAGS) $(CFLAGS) -c -o $@ $<
endif
#-------------------------------------------------------------------------------
# Dependency Handling
#-------------------------------------------------------------------------------
@ -357,8 +373,10 @@ DEPFILES = $(addprefix $(DEPENDDIR)/, $(DEPENDENCY_RELATIVE))
# Create subdirectories for dependencies
$(DEPFILES):
@mkdir -p $(@D)
# Include all dependencies
include $(wildcard $(DEPFILES))
include $(wildcard $(DEPFILES))
# .PHONY tells make that these targets aren't files
.PHONY: clean sdramCfg release debug all hardclean
.PHONY: clean sdramCfg release debug all hardclean