Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 1 | # Input |
| 2 | # |
| 3 | # The output from mk/sub.mk |
| 4 | # base-prefix |
Jerome Forissier | fe52b1f | 2014-11-06 17:54:51 +0100 | [diff] [blame] | 5 | # conf-file [optional] if set, all objects will depend on $(conf-file) |
Jerome Forissier | cf903a6 | 2018-08-10 14:24:33 +0200 | [diff] [blame] | 6 | # additional-compile-deps [optional] additional dependencies |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 7 | # |
| 8 | # Output |
| 9 | # |
| 10 | # set objs |
| 11 | # update cleanfiles |
| 12 | # |
| 13 | # Generates explicit rules for all objs |
| 14 | |
| 15 | objs := |
| 16 | |
| 17 | # Disable all builtin rules |
| 18 | .SUFFIXES: |
| 19 | |
| 20 | comp-cflags$(sm) = -std=gnu99 |
| 21 | comp-aflags$(sm) = |
| 22 | comp-cppflags$(sm) = |
| 23 | |
Jerome Forissier | beb065d | 2018-06-26 10:04:49 +0200 | [diff] [blame] | 24 | ifeq ($(CFG_WERROR),y) |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 25 | comp-cflags$(sm) += -Werror |
| 26 | endif |
| 27 | comp-cflags$(sm) += -fdiagnostics-show-option |
| 28 | |
| 29 | comp-cflags-warns-high = \ |
| 30 | -Wall -Wcast-align \ |
| 31 | -Werror-implicit-function-declaration -Wextra -Wfloat-equal \ |
| 32 | -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self \ |
| 33 | -Wmissing-declarations -Wmissing-format-attribute \ |
| 34 | -Wmissing-include-dirs -Wmissing-noreturn \ |
| 35 | -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ |
| 36 | -Wshadow -Wstrict-prototypes -Wswitch-default \ |
| 37 | -Wwrite-strings \ |
| 38 | -Wno-missing-field-initializers -Wno-format-zero-length |
| 39 | comp-cflags-warns-medium = \ |
| 40 | -Waggregate-return -Wredundant-decls |
| 41 | comp-cflags-warns-low = \ |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 42 | -Wold-style-definition -Wstrict-aliasing=2 \ |
Etienne Carriere | 3303500 | 2019-04-04 09:11:41 +0200 | [diff] [blame^] | 43 | -Wundef |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 44 | |
| 45 | comp-cflags-warns-1:= $(comp-cflags-warns-high) |
| 46 | comp-cflags-warns-2:= $(comp-cflags-warns-1) $(comp-cflags-warns-medium) |
| 47 | comp-cflags-warns-3:= $(comp-cflags-warns-2) $(comp-cflags-warns-low) |
| 48 | |
| 49 | WARNS ?= 3 |
| 50 | |
| 51 | comp-cflags$(sm) += $(comp-cflags-warns-$(WARNS)) |
| 52 | |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 53 | CHECK ?= sparse |
| 54 | |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 55 | .PHONY: FORCE |
Jens Wiklander | 94cd76c | 2018-07-17 15:47:46 +0200 | [diff] [blame] | 56 | .PHONY: FORCE-GENSRC$(sm) |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 57 | FORCE: |
Jens Wiklander | 94cd76c | 2018-07-17 15:47:46 +0200 | [diff] [blame] | 58 | FORCE-GENSRC$(sm): |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 59 | |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 60 | |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 61 | define process_srcs |
| 62 | objs += $2 |
| 63 | comp-dep-$2 := $$(dir $2).$$(notdir $2).d |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 64 | comp-cmd-file-$2:= $$(dir $2).$$(notdir $2).cmd |
| 65 | comp-sm-$2 := $(sm) |
Jerome Forissier | 606f378 | 2016-10-13 14:26:54 +0200 | [diff] [blame] | 66 | comp-lib-$2 := $(libname)-$(sm) |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 67 | |
| 68 | cleanfiles := $$(cleanfiles) $$(comp-dep-$2) $$(comp-cmd-file-$2) $2 |
| 69 | |
| 70 | ifeq ($$(filter %.c,$1),$1) |
Jerome Forissier | 76f5987 | 2014-11-03 17:03:28 +0100 | [diff] [blame] | 71 | comp-q-$2 := CC |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 72 | comp-flags-$2 = $$(filter-out $$(CFLAGS_REMOVE) $$(cflags-remove) \ |
Jerome Forissier | 0259891 | 2016-02-26 09:59:55 +0100 | [diff] [blame] | 73 | $$(cflags-remove-$$(comp-sm-$2)) \ |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 74 | $$(cflags-remove-$2), \ |
Jerome Forissier | b09cddc | 2016-02-24 13:01:45 +0100 | [diff] [blame] | 75 | $$(CFLAGS$$(arch-bits-$$(comp-sm-$2))) $$(CFLAGS_WARNS) \ |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 76 | $$(comp-cflags$$(comp-sm-$2)) $$(cflags$$(comp-sm-$2)) \ |
Jerome Forissier | 3d34e12 | 2014-10-30 17:37:42 +0100 | [diff] [blame] | 77 | $$(cflags-lib$$(comp-lib-$2)) $$(cflags-$2)) |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 78 | ifeq ($C,1) |
| 79 | check-cmd-$2 = $(CHECK) $$(comp-cppflags-$2) $$< |
| 80 | echo-check-$2 := $(cmd-echo-silent) |
| 81 | echo-check-cmd-$2 = $(cmd-echo) $$(subst \",\\\",$$(check-cmd-$2)) |
| 82 | endif |
| 83 | |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 84 | else ifeq ($$(filter %.S,$1),$1) |
Jerome Forissier | 76f5987 | 2014-11-03 17:03:28 +0100 | [diff] [blame] | 85 | comp-q-$2 := AS |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 86 | comp-flags-$2 = -DASM=1 $$(filter-out $$(AFLAGS_REMOVE) $$(aflags-remove) \ |
Jerome Forissier | 0259891 | 2016-02-26 09:59:55 +0100 | [diff] [blame] | 87 | $$(aflags-remove-$$(comp-sm-$2)) \ |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 88 | $$(aflags-remove-$2), \ |
| 89 | $$(AFLAGS) $$(comp-aflags$$(comp-sm-$2)) \ |
| 90 | $$(aflags$$(comp-sm-$2)) $$(aflags-$2)) |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 91 | |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 92 | else |
| 93 | $$(error "Don't know what to do with $1") |
| 94 | endif |
| 95 | |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 96 | comp-cppflags-$2 = $$(filter-out $$(CPPFLAGS_REMOVE) $$(cppflags-remove) \ |
Jerome Forissier | 0259891 | 2016-02-26 09:59:55 +0100 | [diff] [blame] | 97 | $$(cppflags-remove-$$(comp-sm-$2)) \ |
| 98 | $$(cppflags-remove-$2), \ |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 99 | $$(nostdinc$$(comp-sm-$2)) $$(CPPFLAGS) \ |
| 100 | $$(addprefix -I,$$(incdirs$$(comp-sm-$2))) \ |
| 101 | $$(addprefix -I,$$(incdirs-lib$$(comp-lib-$2))) \ |
| 102 | $$(addprefix -I,$$(incdirs-$2)) \ |
| 103 | $$(cppflags$$(comp-sm-$2)) \ |
Jens Wiklander | d3353b4 | 2018-11-22 22:09:14 +0100 | [diff] [blame] | 104 | $$(cppflags-lib$$(comp-lib-$2)) $$(cppflags-$2)) \ |
| 105 | -D__FILE_ID__=$$(subst -,_,$$(subst /,_,$$(subst .,_,$1))) |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 106 | |
| 107 | comp-flags-$2 += -MD -MF $$(comp-dep-$2) -MT $$@ |
| 108 | comp-flags-$2 += $$(comp-cppflags-$2) |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 109 | |
Jens Wiklander | 1b4eb4f | 2015-02-02 09:19:18 +0100 | [diff] [blame] | 110 | comp-cmd-$2 = $$(CC$(sm)) $$(comp-flags-$2) -c $$< -o $$@ |
| 111 | comp-objcpy-cmd-$2 = $$(OBJCOPY$(sm)) \ |
Jens Wiklander | 6d6ea54 | 2014-12-02 11:06:01 +0100 | [diff] [blame] | 112 | --rename-section .rodata=.rodata.$1 \ |
| 113 | --rename-section .rodata.str1.1=.rodata.str1.1.$1 \ |
| 114 | $2 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 115 | |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 116 | # Assign defaults if unassigned |
| 117 | echo-check-$2 ?= true |
| 118 | echo-check-cmd-$2 ?= true |
| 119 | check-cmd-$2 ?= true |
| 120 | |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 121 | -include $$(comp-cmd-file-$2) |
| 122 | -include $$(comp-dep-$2) |
| 123 | |
| 124 | |
Jens Wiklander | 94cd76c | 2018-07-17 15:47:46 +0200 | [diff] [blame] | 125 | $2: $1 FORCE-GENSRC$(sm) |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 126 | # Check if any prerequisites are newer than the target and |
| 127 | # check if command line has changed |
Jens Wiklander | 94cd76c | 2018-07-17 15:47:46 +0200 | [diff] [blame] | 128 | $$(if $$(strip $$(filter-out FORCE-GENSRC$(sm), $$?) \ |
Jerome Forissier | 313ead4 | 2015-01-22 18:17:54 +0100 | [diff] [blame] | 129 | $$(filter-out $$(comp-cmd-$2), $$(old-cmd-$2)) \ |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 130 | $$(filter-out $$(old-cmd-$2), $$(comp-cmd-$2))), \ |
| 131 | @set -e ;\ |
| 132 | mkdir -p $$(dir $2) ;\ |
Jens Wiklander | fbecf4e | 2015-04-16 17:00:22 +0200 | [diff] [blame] | 133 | $$(echo-check-$2) ' CHECK $$<' ;\ |
| 134 | $$(echo-check-cmd-$2) ;\ |
| 135 | $$(check-cmd-$2) ;\ |
Jens Wiklander | 6242863 | 2015-04-29 15:05:19 +0200 | [diff] [blame] | 136 | $(cmd-echo-silent) ' $$(comp-q-$2) $$@' ;\ |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 137 | $(cmd-echo) $$(subst \",\\\",$$(comp-cmd-$2)) ;\ |
| 138 | $$(comp-cmd-$2) ;\ |
Jens Wiklander | 6d6ea54 | 2014-12-02 11:06:01 +0100 | [diff] [blame] | 139 | $(cmd-echo) $$(comp-objcpy-cmd-$2) ;\ |
| 140 | $$(comp-objcpy-cmd-$2) ;\ |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 141 | echo "old-cmd-$2 := $$(subst \",\\\",$$(comp-cmd-$2))" > \ |
| 142 | $$(comp-cmd-file-$2) ;\ |
| 143 | ) |
| 144 | |
| 145 | endef |
| 146 | |
| 147 | $(foreach f, $(srcs), $(eval $(call \ |
Jerome Forissier | 4334e8d | 2014-09-08 10:53:42 +0200 | [diff] [blame] | 148 | process_srcs,$(f),$(out-dir)/$(base-prefix)$$(basename $f).o))) |
Jerome Forissier | fe52b1f | 2014-11-06 17:54:51 +0100 | [diff] [blame] | 149 | |
Jens Wiklander | bc42074 | 2015-05-05 14:59:15 +0200 | [diff] [blame] | 150 | # Handle generated source files, that is, files that are compiled from out-dir |
Jens Wiklander | c95ce41 | 2016-05-30 16:06:35 +0200 | [diff] [blame] | 151 | $(foreach f, $(gen-srcs), $(eval $(call process_srcs,$(f),$$(basename $f).o))) |
Jens Wiklander | bc42074 | 2015-05-05 14:59:15 +0200 | [diff] [blame] | 152 | |
Jens Wiklander | cfa34d9 | 2018-07-17 15:47:46 +0200 | [diff] [blame] | 153 | # Handle specified source files, that is, files that have a specified path |
| 154 | # but where the object file should go into a specified out directory |
| 155 | $(foreach f, $(spec-srcs), $(eval $(call \ |
| 156 | process_srcs,$(f),$(spec-out-dir)/$$(notdir $$(basename $f)).o))) |
| 157 | |
Jerome Forissier | cf903a6 | 2018-08-10 14:24:33 +0200 | [diff] [blame] | 158 | $(objs): $(conf-file) $(additional-compile-deps) |
Jens Wiklander | d5a887c | 2016-01-12 15:19:16 +0100 | [diff] [blame] | 159 | |
| 160 | define _gen-asm-defines-file |
| 161 | # c-filename in $1 |
| 162 | # h-filename in $2 |
| 163 | # s-filename in $3 |
| 164 | |
Jens Wiklander | 94cd76c | 2018-07-17 15:47:46 +0200 | [diff] [blame] | 165 | FORCE-GENSRC$(sm): $(2) |
Jens Wiklander | d5a887c | 2016-01-12 15:19:16 +0100 | [diff] [blame] | 166 | |
| 167 | comp-dep-$3 := $$(dir $3)$$(notdir $3).d |
| 168 | comp-cmd-file-$3:= $$(dir $3)$$(notdir $3).cmd |
| 169 | comp-sm-$3 := $(sm) |
| 170 | |
| 171 | cleanfiles := $$(cleanfiles) $$(comp-dep-$3) $$(comp-cmd-file-$3) $3 $2 |
| 172 | |
| 173 | comp-flags-$3 = $$(filter-out $$(CFLAGS_REMOVE) $$(cflags-remove) \ |
Jerome Forissier | 0259891 | 2016-02-26 09:59:55 +0100 | [diff] [blame] | 174 | $$(cflags-remove-$$(comp-sm-$3)) \ |
Jens Wiklander | d5a887c | 2016-01-12 15:19:16 +0100 | [diff] [blame] | 175 | $$(cflags-remove-$3), \ |
| 176 | $$(CFLAGS) $$(CFLAGS_WARNS) \ |
| 177 | $$(comp-cflags$$(comp-sm-$3)) $$(cflags$$(comp-sm-$3)) \ |
| 178 | $$(cflags-lib$$(comp-lib-$3)) $$(cflags-$3)) |
| 179 | |
| 180 | comp-cppflags-$3 = $$(filter-out $$(CPPFLAGS_REMOVE) $$(cppflags-remove) \ |
Jerome Forissier | 0259891 | 2016-02-26 09:59:55 +0100 | [diff] [blame] | 181 | $$(cppflags-remove-$$(comp-sm-$3)) \ |
| 182 | $$(cppflags-remove-$3), \ |
Jens Wiklander | d5a887c | 2016-01-12 15:19:16 +0100 | [diff] [blame] | 183 | $$(nostdinc$$(comp-sm-$3)) $$(CPPFLAGS) \ |
| 184 | $$(addprefix -I,$$(incdirs$$(comp-sm-$3))) \ |
| 185 | $$(addprefix -I,$$(incdirs-lib$$(comp-lib-$3))) \ |
| 186 | $$(addprefix -I,$$(incdirs-$3)) \ |
| 187 | $$(cppflags$$(comp-sm-$3)) \ |
| 188 | $$(cppflags-lib$$(comp-lib-$3)) $$(cppflags-$3)) |
| 189 | |
| 190 | comp-flags-$3 += -MD -MF $$(comp-dep-$3) -MT $$@ |
| 191 | comp-flags-$3 += $$(comp-cppflags-$3) |
| 192 | |
| 193 | comp-cmd-$3 = $$(CC$(sm)) $$(comp-flags-$3) -fverbose-asm -S $$< -o $$@ |
| 194 | |
| 195 | |
| 196 | -include $$(comp-cmd-file-$3) |
| 197 | -include $$(comp-dep-$3) |
| 198 | |
| 199 | $3: $1 $(conf-file) FORCE |
| 200 | # Check if any prerequisites are newer than the target and |
| 201 | # check if command line has changed |
| 202 | $$(if $$(strip $$(filter-out FORCE, $$?) \ |
| 203 | $$(filter-out $$(comp-cmd-$3), $$(old-cmd-$3)) \ |
| 204 | $$(filter-out $$(old-cmd-$3), $$(comp-cmd-$3))), \ |
| 205 | @set -e ;\ |
Jens Wiklander | c02f9fb | 2016-01-12 10:14:50 +0100 | [diff] [blame] | 206 | mkdir -p $$(dir $2) $$(dir $3) ;\ |
Jens Wiklander | d5a887c | 2016-01-12 15:19:16 +0100 | [diff] [blame] | 207 | $(cmd-echo) $$(subst \",\\\",$$(comp-cmd-$3)) ;\ |
| 208 | $$(comp-cmd-$3) ;\ |
| 209 | echo "old-cmd-$3 := $$(subst \",\\\",$$(comp-cmd-$3))" > \ |
| 210 | $$(comp-cmd-file-$3) ;\ |
| 211 | ) |
| 212 | |
| 213 | guard-$2 := $$(subst -,_,$$(subst .,_,$$(subst /,_,$2))) |
| 214 | |
| 215 | $(2): $(3) |
| 216 | $(q)set -e; \ |
| 217 | $(cmd-echo-silent) ' CHK $$@'; \ |
| 218 | mkdir -p $$(dir $$@); \ |
| 219 | echo "#ifndef $$(guard-$2)" >$$@.tmp; \ |
| 220 | echo "#define $$(guard-$2)" >>$$@.tmp; \ |
| 221 | sed -ne 's|^==>\([^ ]*\) [\$$$$#]*\([-0-9]*\) \([^@/]*\).*|#define \1\t\2\t/* \3*/|p' \ |
| 222 | < $$< >>$$@.tmp; \ |
| 223 | echo "#endif" >>$$@.tmp; \ |
| 224 | $$(call mv-if-changed,$$@.tmp,$$@) |
| 225 | |
| 226 | endef |
| 227 | |
| 228 | define gen-asm-defines-file |
| 229 | $(call _gen-asm-defines-file,$1,$2,$(dir $2).$(notdir $(2:.h=.s))) |
| 230 | endef |
| 231 | |
Jerome Forissier | 070168e | 2018-03-12 14:45:16 +0100 | [diff] [blame] | 232 | $(foreach f,$(asm-defines-files),$(eval $(call gen-asm-defines-file,$(f),$(out-dir)/$(sm)/include/generated/$(basename $(notdir $(f))).h))) |
Jerome Forissier | cf903a6 | 2018-08-10 14:24:33 +0200 | [diff] [blame] | 233 | |
Etienne Carriere | c828ece | 2018-11-23 18:03:52 +0100 | [diff] [blame] | 234 | # Device tree source file compilation |
| 235 | DTC := dtc |
| 236 | DTC_FLAGS += -I dts -O dtb |
| 237 | DTC_FLAGS += -Wno-unit_address_vs_reg |
| 238 | |
| 239 | define gen-dtb-file |
| 240 | # dts file path/name in $1 |
| 241 | # dtb file path/name in $2 |
| 242 | |
| 243 | dtb-basename-$2 := $$(basename $$(notdir $2)) |
| 244 | dtb-predts-$2 := $$(dir $2)$$(dtb-basename-$2).pre.dts |
| 245 | dtb-predep-$2 := $$(dir $2).$$(dtb-basename-$2).pre.dts.d |
| 246 | dtb-dep-$2 := $$(dir $2).$$(notdir $2).d |
| 247 | dtb-cmd-file-$2 := $$(dir $2).$$(notdir $2).cmd |
| 248 | |
| 249 | cleanfiles := $$(cleanfiles) $2 \ |
| 250 | $$(dtb-predts-$2) $$(dtb-predep-$2) \ |
| 251 | $$(dtb-dep-$2) $$(dtb-cmd-file-$2) |
| 252 | |
| 253 | dtb-cppflags-$2 := -Icore/include/ -x assembler-with-cpp \ |
| 254 | -E -ffreestanding $$(CPPFLAGS) \ |
| 255 | -MD -MF $$(dtb-predep-$2) -MT $2 |
| 256 | |
| 257 | dtb-dtcflags-$2 := $$(DTC_FLAGS) -d $$(dtb-dep-$2) |
| 258 | |
| 259 | -include $$(dtb-dep-$2) |
| 260 | -include $$(dtb-predep-$2) |
| 261 | -include $$(dtb-cmd-file-$2) |
| 262 | |
| 263 | dtb-precmd-$2 = $$(CPP$(sm)) $$(dtb-cppflags-$2) -o $$(dtb-predts-$2) $$< |
| 264 | dtb-cmd-$2 = $$(DTC) $$(dtb-dtcflags-$2) -o $$@ $$(dtb-predts-$2) |
| 265 | |
| 266 | $2: $1 FORCE |
| 267 | # Check if any prerequisites are newer than the target and |
| 268 | # check if command line has changed |
| 269 | $$(if $$(strip $$(filter-out FORCE, $$?) \ |
| 270 | $$(filter-out $$(dtb-precmd-$2), $$(dtb-old-precmd-$2)) \ |
| 271 | $$(filter-out $$(dtb-old-precmd-$2), $$(dtb-precmd-$2)) \ |
| 272 | $$(filter-out $$(dtb-cmd-$2), $$(dtb-old-cmd-$2)) \ |
| 273 | $$(filter-out $$(dtb-old-cmd-$2), $$(dtb-cmd-$2))), \ |
| 274 | @set -e; \ |
| 275 | mkdir -p $$(dir $2); \ |
| 276 | $(cmd-echo-silent) ' CPP $$(dtb-predts-$2)'; \ |
| 277 | $$(dtb-precmd-$2); \ |
| 278 | $(cmd-echo-silent) ' DTC $$@'; \ |
| 279 | $$(dtb-cmd-$2); \ |
| 280 | echo "dtb-old-precmd-$2 := $$(subst \",\\\",$$(dtb-precmd-$2))" > \ |
| 281 | $$(dtb-cmd-file-$2) ;\ |
| 282 | echo "dtb-old-cmd-$2 := $$(subst \",\\\",$$(dtb-cmd-$2))" >> \ |
| 283 | $$(dtb-cmd-file-$2) ;\ |
| 284 | ) |
| 285 | |
| 286 | endef |
| 287 | |
Jerome Forissier | cf903a6 | 2018-08-10 14:24:33 +0200 | [diff] [blame] | 288 | additional-compile-deps := |