diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-30 03:16:13 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-19 03:43:21 +0200 |
commit | 61fe827e3bde3f6bf6369467bea2be2b23e81bbd (patch) | |
tree | 852bc2a09d055af8b1b5709b58125437fd666bd7 /onlineupdate | |
parent | a68eda414e46aecf0ae50f552ed2e408524bd554 (diff) |
build the signing part for the updater
Change-Id: I422eed712da76a90f49b9d9cd5d6155fa394c223
Diffstat (limited to 'onlineupdate')
-rw-r--r-- | onlineupdate/Executable_mar.mk | 2 | ||||
-rw-r--r-- | onlineupdate/Executable_updater.mk | 8 | ||||
-rw-r--r-- | onlineupdate/StaticLibrary_libmar.mk | 10 |
3 files changed, 17 insertions, 3 deletions
diff --git a/onlineupdate/Executable_mar.mk b/onlineupdate/Executable_mar.mk index 488ca26f4728..628ca2680058 100644 --- a/onlineupdate/Executable_mar.mk +++ b/onlineupdate/Executable_mar.mk @@ -39,8 +39,6 @@ endif $(eval $(call gb_Executable_add_cobjects,mar,\ onlineupdate/source/libmar/sign/nss_secutil \ onlineupdate/source/libmar/sign/mar_sign \ - onlineupdate/source/libmar/verify/cryptox \ - onlineupdate/source/libmar/verify/mar_verify \ onlineupdate/source/libmar/tool/mar \ )) diff --git a/onlineupdate/Executable_updater.mk b/onlineupdate/Executable_updater.mk index c3eeed5dd0fb..a2342581c3ea 100644 --- a/onlineupdate/Executable_updater.mk +++ b/onlineupdate/Executable_updater.mk @@ -42,8 +42,14 @@ $(eval $(call gb_Executable_add_libs,updater,\ endif $(eval $(call gb_Executable_use_externals,updater,\ - gtk \ bzip2 \ + $(if $(filter LINUX,$(OS)), \ + gtk \ + nss3 )\ +)) + +$(eval $(call gb_Executable_add_defs,updater,\ + -DVERIFY_MAR_SIGNATURE \ )) $(eval $(call gb_Executable_add_exception_objects,updater,\ diff --git a/onlineupdate/StaticLibrary_libmar.mk b/onlineupdate/StaticLibrary_libmar.mk index 3c85b739bc3c..ee62c5d20a2a 100644 --- a/onlineupdate/StaticLibrary_libmar.mk +++ b/onlineupdate/StaticLibrary_libmar.mk @@ -14,10 +14,20 @@ $(eval $(call gb_StaticLibrary_set_include,libmar,\ $$(INCLUDE) \ )) +$(eval $(call gb_StaticLibrary_add_defs,libmar,\ + -DMAR_NSS \ +)) + +$(eval $(call gb_StaticLibrary_use_externals,libmar,\ + nss3 \ +)) + $(eval $(call gb_StaticLibrary_add_cobjects,libmar,\ onlineupdate/source/libmar/src/mar_create \ onlineupdate/source/libmar/src/mar_extract \ onlineupdate/source/libmar/src/mar_read \ + onlineupdate/source/libmar/verify/mar_verify \ + onlineupdate/source/libmar/verify/cryptox \ )) # vim:set shiftwidth=4 tabstop=4 noexpandtab: */ |