mirror of
https://github.com/apache/nuttx.git
synced 2025-12-19 19:08:23 +08:00
tools/Config.mk: Add function CATFILE definition. Currently only used in apps/builtin/Makefile.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user