[Skiboot] [PATCH 4/5] external/pflash: Catch incompatible combination of flags

Joel Stanley joel at jms.id.au
Fri Oct 21 20:25:03 AEDT 2016


On Fri, Oct 21, 2016 at 7:22 PM, Cyril Bur <cyril.bur at au1.ibm.com> wrote:
> Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
> ---
>  external/pflash/pflash.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
> index 002d0dc..608220f 100644
> --- a/external/pflash/pflash.c
> +++ b/external/pflash/pflash.c
> @@ -743,6 +743,16 @@ int main(int argc, char *argv[])
>                 exit(1);
>         }
>
> +       if (flashfilename && bmc_flash) {
> +               fprintf(stderr, "Filename or bmc flash but not both\n");
> +               exit(1);
> +       }
> +
> +       if (flashfilename && mtd) {
> +               fprintf(stderr, "Filename or mtd access but not both\n");

How do I specify a given mtd path?


More information about the Skiboot mailing list