mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 08:47:45 -04:00
Demo/CORTEX_MPS2_QEMU_IAR_GCC add path to IMAGE and remove mapfile (#1223)
For Demo/CORTEX_MPS2_QEMU_IAR_GCC gcc Makefile: - simplify IMAGE var to already include full path - clean target also removes mapfile Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
8e54579341
commit
49bbe71166
1 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
OUTPUT_DIR := ./output
|
OUTPUT_DIR := ./output
|
||||||
IMAGE := RTOSDemo.out
|
IMAGE := $(OUTPUT_DIR)/RTOSDemo.out
|
||||||
|
|
||||||
# The directory that contains the /source and /demo sub directories.
|
# The directory that contains the /source and /demo sub directories.
|
||||||
FREERTOS_ROOT = ./../../../..
|
FREERTOS_ROOT = ./../../../..
|
||||||
|
@ -35,7 +35,7 @@ SOURCE_FILES += $(KERNEL_DIR)/portable/MemMang/heap_4.c
|
||||||
SOURCE_FILES += $(KERNEL_DIR)/portable/GCC/ARM_CM3/port.c
|
SOURCE_FILES += $(KERNEL_DIR)/portable/GCC/ARM_CM3/port.c
|
||||||
|
|
||||||
#
|
#
|
||||||
# Common demo files for the "full" build, as opposed to the "blinky" build -
|
# Common demo files for the "full" build, as opposed to the "blinky" build -
|
||||||
# these files are build by all the FreeRTOS kernel demos.
|
# these files are build by all the FreeRTOS kernel demos.
|
||||||
#
|
#
|
||||||
DEMO_ROOT = $(FREERTOS_ROOT)/Demo
|
DEMO_ROOT = $(FREERTOS_ROOT)/Demo
|
||||||
|
@ -95,27 +95,27 @@ DEP_FILES := $(SOURCE_FILES:%.c=$(OUTPUT_DIR)/%.d)
|
||||||
DEP_FILES_NO_PATH = $(notdir $(DEP_FILES))
|
DEP_FILES_NO_PATH = $(notdir $(DEP_FILES))
|
||||||
DEP_OUTPUT = $(DEP_FILES_NO_PATH:%.d=$(OUTPUT_DIR)/%.d)
|
DEP_OUTPUT = $(DEP_FILES_NO_PATH:%.d=$(OUTPUT_DIR)/%.d)
|
||||||
|
|
||||||
all: $(OUTPUT_DIR)/$(IMAGE)
|
all: $(IMAGE)
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(OUTPUT_DIR)/%.o : %.c $(OUTPUT_DIR)/%.d Makefile
|
$(OUTPUT_DIR)/%.o : %.c $(OUTPUT_DIR)/%.d Makefile
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OUTPUT_DIR)/$(IMAGE): ./mps2_m3.ld $(OBJS_OUTPUT) Makefile
|
$(IMAGE): ./mps2_m3.ld $(OBJS_OUTPUT) Makefile
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "--- Final linking ---"
|
@echo "--- Final linking ---"
|
||||||
@echo ""
|
@echo ""
|
||||||
$(LD) $(OBJS_OUTPUT) $(CFLAGS) -Xlinker --gc-sections -Xlinker -T ./mps2_m3.ld \
|
$(LD) $(OBJS_OUTPUT) $(CFLAGS) -Xlinker --gc-sections -Xlinker -T ./mps2_m3.ld \
|
||||||
-Xlinker -Map=$(OUTPUT_DIR)/RTOSDemo.map -specs=nano.specs \
|
-Xlinker -Map=$(OUTPUT_DIR)/RTOSDemo.map -specs=nano.specs \
|
||||||
-specs=nosys.specs -specs=rdimon.specs -o $(OUTPUT_DIR)/$(IMAGE)
|
-specs=nosys.specs -specs=rdimon.specs -o $(IMAGE)
|
||||||
$(SIZE) $(OUTPUT_DIR)/$(IMAGE)
|
$(SIZE) $(IMAGE)
|
||||||
|
|
||||||
$(DEP_OUTPUT):
|
$(DEP_OUTPUT):
|
||||||
include $(wildcard $(DEP_OUTPUT))
|
include $(wildcard $(DEP_OUTPUT))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OUTPUT_DIR)/$(IMAGE) $(OUTPUT_DIR)/*.o $(OUTPUT_DIR)/*.d
|
rm -f $(IMAGE) $(OUTPUT_DIR)/RTOSDemo.map $(OUTPUT_DIR)/*.o $(OUTPUT_DIR)/*.d
|
||||||
|
|
||||||
#use "make print-[VARIABLE_NAME] to print the value of a variable generated by
|
#use "make print-[VARIABLE_NAME] to print the value of a variable generated by
|
||||||
#this makefile.
|
#this makefile.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue