mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: Re: [ptxdist] [PATCH v3 2/6] package templates: add code-signing-provider template
Date: Fri, 19 Jun 2020 08:12:04 +0200	[thread overview]
Message-ID: <20200619061204.GI9312@pengutronix.de> (raw)
In-Reply-To: <542fa403-ffe9-6ce8-6231-b52f87bac9a2@pengutronix.de>

On Thu, Jun 18, 2020 at 01:50:18PM +0200, Bastian Krause wrote:
> On 6/18/20 1:40 PM, Roland Hieber wrote:
> > On Wed, Jun 17, 2020 at 04:31:21PM +0200, Bastian Krause wrote:
> >> diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh
> >> index 6b405763b..805d8d9d3 100644
> >> --- a/scripts/lib/ptxd_lib_template.sh
> >> +++ b/scripts/lib/ptxd_lib_template.sh
> >> @@ -486,3 +486,34 @@ ptxd_template_new_blspec_entry() {
> >>  export -f ptxd_template_new_blspec_entry
> >>  ptxd_template_help_list[${#ptxd_template_help_list[@]}]="blspec-entry"
> >>  ptxd_template_help_list[${#ptxd_template_help_list[@]}]="create package for a bootloader spec entry"
> >> +
> >> +ptxd_template_new_code_signing_provider() {
> >> +    export class="host-"
> >> +    ptxd_template_read_basic &&
> >> +    ptxd_template_read_author &&
> >> +    ptxd_template_read_options "provider type" TYPE "SoftHSM" "HSM with OpenSC support" "other HSM"
> >> +    package_filename="${package_filename}-code-signing"
> >> +    local template_file="$(ptxd_template_file "${template}-choice-in")"
> >> +    local filename="${PTXDIST_PLATFORMCONFIGDIR}/platforms/${class}${package_filename}-choice.in"
> >> +    ptxd_template_filter "${template_file}" "${filename}"
> >> +    template_file="$(ptxd_template_file "${template}-pre-make")"
> >> +    filename="${PTXDIST_PLATFORMCONFIGDIR}/rules/pre/020-${package_filename}-hsm.make"
> >> +    if [ "$TYPE" = "SoftHSM" ]; then
> >> +	export EXTRA_DEPENDENCIES="select HOST_SOFTHSM"
> >> +    elif [ "$TYPE" = "HSM with OpenSC support" ]; then
> >> +	export EXTRA_DEPENDENCIES="select HOST_OPENSC
> >> +	select HOST_OPENSC_PCSC"
> >> +	export MODULE_PATH="\${PTXDIST_SYSROOT_HOST}/lib/pkcs11/opensc-pkcs11.so"
> >> +	ptxd_template_filter "${template_file}" "${filename}"
> >> +    elif [ "$TYPE" = "other HSM" ]; then
> >> +	export EXTRA_DEPENDENCIES="select FIXME"
> >> +	export MODULE_PATH="\${PTXDIST_SYSROOT_HOST}/fix/me"
> >> +	ptxd_template_filter "${template_file}" "${filename}"
> > 
> > Hmm, the indentation is off here (tabs mixed with spaces), but that's
> > the case for the whole file, so I guess that's okay :D
> 
> I think the rule is every indentation level is 4 spaces and every 8
> spaces should be converted to 1 tab.

Indeed. I think it's some emacs style indention. It's been driving me crazy
for years but the scripts started that way and I never had a good reason to
change it...

Michael

> > Tested-by: Roland Hieber <rhi@pengutronix.de>
> > Reviewed-by: Roland Hieber <rhi@pengutronix.de>
> 
> Thanks!
> 
> Regards,
> Bastian
> 
> -- 
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

  reply	other threads:[~2020-06-19  6:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17 14:31 [ptxdist] [PATCH v3 0/6] Add code-signing-provider template, add code signing docs Bastian Krause
2020-06-17 14:31 ` [ptxdist] [PATCH v3 1/6] ptxd_lib_template: add ptxd_template_read_options Bastian Krause
2020-06-19  6:24   ` Michael Olbrich
2020-06-19  8:13     ` Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 2/6] package templates: add code-signing-provider template Bastian Krause
2020-06-18 11:40   ` Roland Hieber
2020-06-18 11:50     ` Bastian Krause
2020-06-19  6:12       ` Michael Olbrich [this message]
2020-06-19  6:28   ` Michael Olbrich
2020-06-19  7:52     ` Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-24 10:04   ` [ptxdist] [PATCH v3 2/6] " Ladislav Michl
2020-09-24 11:05     ` Bastian Krause
2020-09-24 11:15       ` Ladislav Michl
2020-09-24 12:23         ` Bastian Krause
2020-06-17 14:31 ` [ptxdist] [PATCH v3 3/6] doc: dev_manual: split up into multiple files Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 4/6] doc: move code signing docs from scripts/ into doc/ Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 5/6] doc: dev_code_signing: rework and extend code signing section Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-06-17 14:31 ` [ptxdist] [PATCH v3 6/6] doc: introduce ref_code_signing_helpers Bastian Krause
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200619061204.GI9312@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=rhi@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox