Skip to content

Commit

Permalink
[fix] mk/subdir.mk: introduce srcs_ext-y and srcs_ext_base-y
Browse files Browse the repository at this point in the history
  • Loading branch information
jenswi-linaro committed Oct 23, 2024
1 parent 86ab10c commit c60a06a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mk/subdir.mk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ $$(error Absolute path not supported for srcs_ext-y: $(1))
endif
srcs += $2/$1
fname := $2/$1
ifeq ($$(sub-dir),.)
oname := $(out-dir)/$(base-prefix)$(basename $1).o
else
oname := $(out-dir)/$(base-prefix)$(basename $$(sub-dir)/$1).o
endif
$$(eval $$(call process-file-vars,$1,$$(oname),$$(fname)))
endef #process-subdir-srcs-y

Expand Down

0 comments on commit c60a06a

Please sign in to comment.