[PATCH] bsps/motorola_powerpc: Add spec support for BSP defines

Chris Johns chrisj at rtems.org
Thu Apr 6 22:57:36 UTC 2023


Hi

I pushed this but had not noticed it results in:

SHLL [/] # rtems bsp
BSP: 1

which is fair enough, it is doing what is should.

I will rework the defines for mvme2307 and mvme2700 in the header file to be
`mot_ppc_mvme2307` and `mot_ppc_mvme2700` to avoid the clash of the names with
the macros.

Chris

On 6/4/2023 2:27 pm, chrisj at rtems.org wrote:
> From: Chris Johns <chrisj at rtems.org>
> 
> - These are need by the net legacy stack
> ---
>  .../bsps/powerpc/motorola_powerpc/grp.yml      |  4 ++++
>  .../powerpc/motorola_powerpc/optmvme2307.yml   | 18 ++++++++++++++++++
>  .../powerpc/motorola_powerpc/optmvme2700.yml   | 18 ++++++++++++++++++
>  3 files changed, 40 insertions(+)
>  create mode 100644 spec/build/bsps/powerpc/motorola_powerpc/optmvme2307.yml
>  create mode 100644 spec/build/bsps/powerpc/motorola_powerpc/optmvme2700.yml
> 
> diff --git a/spec/build/bsps/powerpc/motorola_powerpc/grp.yml b/spec/build/bsps/powerpc/motorola_powerpc/grp.yml
> index 0e5506ad88..c4849b6061 100644
> --- a/spec/build/bsps/powerpc/motorola_powerpc/grp.yml
> +++ b/spec/build/bsps/powerpc/motorola_powerpc/grp.yml
> @@ -32,6 +32,10 @@ links:
>    uid: optmpc8240
>  - role: build-dependency
>    uid: optmvme2100
> +- role: build-dependency
> +  uid: optmvme2307
> +- role: build-dependency
> +  uid: optmvme2700
>  - role: build-dependency
>    uid: optqemu
>  - role: build-dependency
> diff --git a/spec/build/bsps/powerpc/motorola_powerpc/optmvme2307.yml b/spec/build/bsps/powerpc/motorola_powerpc/optmvme2307.yml
> new file mode 100644
> index 0000000000..da417b9c9b
> --- /dev/null
> +++ b/spec/build/bsps/powerpc/motorola_powerpc/optmvme2307.yml
> @@ -0,0 +1,18 @@
> +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> +actions:
> +- get-boolean: null
> +- define-condition: null
> +build-type: option
> +copyrights:
> +- Copyright (C) 2023 Chris Johns
> +default:
> +- enabled-by: powerpc/mvme2307
> +  value: true
> +- enabled-by: true
> +  value: false
> +description: |
> +  Defined for MVME2307 -- undefined for others
> +enabled-by: true
> +links: []
> +name: mvme2307
> +type: build
> diff --git a/spec/build/bsps/powerpc/motorola_powerpc/optmvme2700.yml b/spec/build/bsps/powerpc/motorola_powerpc/optmvme2700.yml
> new file mode 100644
> index 0000000000..5b968bd1f0
> --- /dev/null
> +++ b/spec/build/bsps/powerpc/motorola_powerpc/optmvme2700.yml
> @@ -0,0 +1,18 @@
> +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> +actions:
> +- get-boolean: null
> +- define-condition: null
> +build-type: option
> +copyrights:
> +- Copyright (C) 2023 Chris Johns
> +default:
> +- enabled-by: powerpc/mvme2700
> +  value: true
> +- enabled-by: true
> +  value: false
> +description: |
> +  Defined for MVME2700 -- undefined for others
> +enabled-by: true
> +links: []
> +name: mvme2700
> +type: build


More information about the devel mailing list