tools/Config.mk: Add function CATFILE definition. Currently only used in apps/builtin/Makefile.

This commit is contained in:
Gregory Nutt 2018-08-15 18:30:12 -06:00
parent 4b92f71a82
commit 96f05c895d

View File

@ -212,8 +212,8 @@ endif
# Depends on these settings defined in board-specific Make.defs file
# installed at $(TOPDIR)/Make.defs:
#
# LD - The command to invoke the linker (includes any options)
# OBJCOPY - The command to invoke the object cop (includes any options)
# LD - The command to invoke the linker (includes any options)
# OBJCOPY - The command to invoke the object cop (includes any options)
#
# Depends on this settings defined in board-specific defconfig file installed
# at $(TOPDIR)/.config:
@ -268,6 +268,19 @@ define MOVEFILE
endef
endif
# CATFILE - Cat and append a list of files
# USAGE: $(call CATFILE,dest,src1,src2,src3,...)
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
define CATFILE
$(Q) type $(2) >> $1
endef
else
define CATFILE
$(Q) cat $(2) >> $1
endef
endif
# CLEAN - Default clean target
ifeq ($(CONFIG_WINDOWS_NATIVE),y)