Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ftpm #7054

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from
Draft

Ftpm #7054

Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1aee473
mk/subdir.mk: refactor process-subdir-{srcs-y,gensrcs-helper}
jenswi-linaro Sep 19, 2024
8665f79
ta_dev_kit.mk: use spec-srcs and spec-out-dir
jenswi-linaro Sep 19, 2024
e7270a4
mk: introduce global-incdirs_ext-y
jenswi-linaro Sep 19, 2024
85ec604
mk/subdir.mk: introduce srcs_ext-y and srcs_ext_base-y
jenswi-linaro Sep 19, 2024
0d3dad4
ta: ftpm: import initial source
jenswi-linaro Sep 18, 2024
518e1a6
ftpm: import TEE crypto API wrappers
jenswi-linaro Sep 18, 2024
8212705
ftpm: build the in-tree TA
jenswi-linaro Sep 19, 2024
5560957
ftpm: add secure storage TA flag
jenswi-linaro Sep 20, 2024
da7e74b
ftpm: PlatformData: remove redundant s_NV*
jenswi-linaro Sep 24, 2024
b3a0195
ftpm: _plat__Fail() fix __noreturn
jenswi-linaro Sep 24, 2024
d344e5f
ftpm: fix conflicting types for _plat__NvMemoryWrite()
jenswi-linaro Sep 24, 2024
f6db985
ftpm: remove _plat__Signal_PowerOn() from fTPM.h
jenswi-linaro Sep 24, 2024
f09e591
ftpm: remove TA_ALL_PARAM_TYPE() from fTPM.c
jenswi-linaro Sep 24, 2024
227a13f
ftpm: move user_ta_header_defines.h to include
jenswi-linaro Sep 24, 2024
aea6277
ftpm: remove redundant to{upp,low}er() declarations
jenswi-linaro Sep 24, 2024
f56c684
ftpm: update sub.mk to make it compile
jenswi-linaro Sep 24, 2024
a671813
ftpm: remove unused RuntimeSupport.c
jenswi-linaro Sep 24, 2024
75e2fa8
ftpm: remove unused wolfssl crypto wrappers
jenswi-linaro Sep 19, 2024
2f70cee
ftpm: remove unused sub.mk files
jenswi-linaro Sep 24, 2024
df1ec54
ftpm: provide and use ftpm_ta.h
jenswi-linaro Sep 25, 2024
4b1036f
ftpm: remove TpmProfile.h
jenswi-linaro Sep 25, 2024
151ac8c
libmbedtls: mbedtls_config_uta.h: enable SHA-384 and SHA-512 support
jenswi-linaro Sep 26, 2024
84bce6e
ftpm: implement hashlib using mbedtls
jenswi-linaro Sep 26, 2024
bff13fb
ftpm: remove TEE based hashlib implementation
jenswi-linaro Sep 26, 2024
553a74e
[review] mk/subdir.mk: introduce srcs_ext-y and srcs_ext_base-y
jenswi-linaro Sep 30, 2024
d2769d4
ftpm: Makefile: update for building externally
jenswi-linaro Oct 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 30 additions & 59 deletions mk/subdir.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,18 @@ asm-defines-files :=

uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))

define process-subdir-srcs-y
ifeq ($$(sub-dir),.)
srcs += $1
oname := $(out-dir)/$(base-prefix)$(basename $1).o
else
ifneq ($(filter /%,$(1)),)
# $1 is an absolute path - start with "/"
srcs += $1
oname := $(out-dir)/$(base-prefix)$(basename $1).o
else
srcs += $(sub-dir)/$1
oname := $(out-dir)/$(base-prefix)$(basename $$(sub-dir)/$1).o
endif
endif
cflags-$$(oname) := $$(cflags-y) $$(cflags-$(1)-y)
cflags-remove-$$(oname) := $$(cflags-remove-y) \
$$(cflags-remove-$(1)-y)
cxxflags-$$(oname) := $$(cxxflags-y) $$(cxxflags-$(1)-y)
cxxflags-remove-$$(oname) := $$(cxxflags-remove-y) \
$$(cxxflags-remove-$(1)-y)
cppflags-$$(oname) := $$(cppflags-y) $$(cppflags-$(1)-y)
cppflags-remove-$$(oname) := $$(cppflags-remove-y) \
$$(cppflags-remove-$(1)-y)
aflags-$$(oname) := $$(aflags-y) $$(aflags-$(1)-y)
aflags-remove-$$(oname) := $$(aflags-remove-y) \
$$(aflags-remove-$(1)-y)
incdirs-$$(oname) := $$(thissubdir-incdirs) $$(addprefix $(sub-dir)/,$$(incdirs-$(1)-y))
define process-file-vars
# $1 is source file name
# $2 is output file name
cflags-$(2) := $$(cflags-y) $$(cflags-$(1)-y)
cflags-remove-$(2) := $$(cflags-remove-y) $$(cflags-remove-$(1)-y)
cxxflags-$(2) := $$(cxxflags-y) $$(cxxflags-$(1)-y)
cxxflags-remove-$(2) := $$(cxxflags-remove-y) $$(cxxflags-remove-$(1)-y)
cppflags-$(2) := $$(cppflags-y) $$(cppflags-$(1)-y)
cppflags-remove-$(2) := $$(cppflags-remove-y) $$(cppflags-remove-$(1)-y)
aflags-$(2) := $$(aflags-y) $$(aflags-$(1)-y)
aflags-remove-$(2) := $$(aflags-remove-y) $$(aflags-remove-$(1)-y)
incdirs-$(2) := $$(thissubdir-incdirs) $$(addprefix $(sub-dir)/,$$(incdirs-$(1)-y))
# Clear local filename specific variables to avoid accidental reuse
# in another subdirectory
cflags-$(1)-y :=
Expand All @@ -64,8 +49,23 @@ cppflags-lib-y :=
aflags-$(1)-y :=
aflags-remove-$(1)-y :=
incdirs-$(1)-y :=
fname :=
oname :=
endef #process-file-vars

define process-subdir-srcs-y
ifeq ($$(sub-dir),.)
srcs += $1
oname := $(out-dir)/$(base-prefix)$(basename $1).o
else
ifneq ($(filter /%,$(1)),)
# $1 is an absolute path - start with "/"
srcs += $1
oname := $(out-dir)/$(base-prefix)$(basename $1).o
else
srcs += $(sub-dir)/$1
oname := $(out-dir)/$(base-prefix)$(basename $$(sub-dir)/$1).o
endif
endif
$$(eval $$(call process-file-vars,$1,$$(oname)))
endef #process-subdir-srcs-y

define process-subdir-gensrcs-helper
Expand All @@ -90,36 +90,7 @@ $2: $$(depends-$1)
$(q)mkdir -p $4
$(q)$$(recipe-$2)

cflags-$$(oname) := $$(cflags-y) $$(cflags-$(1)-y)
cflags-remove-$$(oname) := $$(cflags-remove-y) \
$$(cflags-remove-$(1)-y)
cxxflags-$$(oname) := $$(cxxflags-y) $$(cxxflags-$(1)-y)
cxxflags-remove-$$(oname) := $$(cxxflags-remove-y) \
$$(cxxflags-remove-$(1)-y)
cppflags-$$(oname) := $$(cppflags-y) $$(cppflags-$(1)-y)
cppflags-remove-$$(oname) := $$(cppflags-remove-y) \
$$(cppflags-remove-$(1)-y)
aflags-$$(oname) := $$(aflags-y) $$(aflags-$(1)-y)
aflags-remove-$$(oname) := $$(aflags-remove-y) \
$$(aflags-remove-$(1)-y)
incdirs-$$(oname) := $$(thissubdir-incdirs) $$(addprefix $(sub-dir)/,$$(incdirs-$(1)-y))
# Clear local filename specific variables to avoid accidental reuse
# in another subdirectory
cflags-$(1)-y :=
cflags-remove-$(1)-y :=
cflags-lib-y :=
cxxflags-$(1)-y :=
cxxflags-remove-$(1)-y :=
cxxflags-lib-y :=
cppflags-$(1)-y :=
cppflags-remove-$(1)-y :=
cppflags-lib-y :=
aflags-$(1)-y :=
aflags-remove-$(1)-y :=
incdirs-$(1)-y :=
fname :=
oname :=

jforissier marked this conversation as resolved.
Show resolved Hide resolved
$$(eval $$(call process-file-vars,$1,$$(oname)))
endef #process-subdir-gensrcs-helper

define process-subdir-gensrcs-y
Expand Down