Patchwork mips: add tune file for mips32r2 (only hard-float)

login
register
mail settings
Submitter Andrea Adami
Date May 14, 2014, 9 p.m.
Message ID <1400101222-26332-1-git-send-email-andrea.adami@gmail.com>
Download mbox | patch
Permalink /patch/72163/
State Accepted, archived
Headers show

Comments

Andrea Adami - May 14, 2014, 9 p.m.
Kernel and initramfs built and tested on GCW Zero (jz4770)

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 meta/conf/machine/include/tune-mips32r2.inc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-mips32r2.inc
Khem Raj - May 14, 2014, 10:01 p.m.
On Wed, May 14, 2014 at 2:00 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
> Kernel and initramfs built and tested on GCW Zero (jz4770)
>

looks good to me.

> Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> ---
>  meta/conf/machine/include/tune-mips32r2.inc | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 meta/conf/machine/include/tune-mips32r2.inc
>
> diff --git a/meta/conf/machine/include/tune-mips32r2.inc b/meta/conf/machine/include/tune-mips32r2.inc
> new file mode 100644
> index 0000000..fb60592
> --- /dev/null
> +++ b/meta/conf/machine/include/tune-mips32r2.inc
> @@ -0,0 +1,17 @@
> +DEFAULTTUNE ?= "mips32r2"
> +
> +require conf/machine/include/mips/arch-mips.inc
> +
> +TUNEVALID[mips32r2] = "Enable mips32r2 specific processor optimizations"
> +TUNECONFLICTS[mips32r2] = "n64 n32"
> +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "mips32r2", " -march=mips32r2", "", d)}"
> +
> +AVAILTUNES += "mips32r2 mips32r2el"
> +
> +TUNE_FEATURES_tune-mips32r2 = "${TUNE_FEATURES_tune-mips} mips32r2"
> +MIPSPKGSFX_VARIANT_tune-mips32r2 = "mips32r2"
> +PACKAGE_EXTRA_ARCHS_tune-mips32r2 = "mips mips32 mips32r2"
> +
> +TUNE_FEATURES_tune-mips32r2el = "${TUNE_FEATURES_tune-mipsel} mips32r2"
> +MIPSPKGSFX_VARIANT_tune-mips32r2el = "mips32r2el"
> +PACKAGE_EXTRA_ARCHS_tune-mips32r2el = "mipsel mips32el mips32r2el"
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/conf/machine/include/tune-mips32r2.inc b/meta/conf/machine/include/tune-mips32r2.inc
new file mode 100644
index 0000000..fb60592
--- /dev/null
+++ b/meta/conf/machine/include/tune-mips32r2.inc
@@ -0,0 +1,17 @@ 
+DEFAULTTUNE ?= "mips32r2"
+
+require conf/machine/include/mips/arch-mips.inc
+
+TUNEVALID[mips32r2] = "Enable mips32r2 specific processor optimizations"
+TUNECONFLICTS[mips32r2] = "n64 n32"
+TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "mips32r2", " -march=mips32r2", "", d)}"
+
+AVAILTUNES += "mips32r2 mips32r2el"
+
+TUNE_FEATURES_tune-mips32r2 = "${TUNE_FEATURES_tune-mips} mips32r2"
+MIPSPKGSFX_VARIANT_tune-mips32r2 = "mips32r2"
+PACKAGE_EXTRA_ARCHS_tune-mips32r2 = "mips mips32 mips32r2"
+
+TUNE_FEATURES_tune-mips32r2el = "${TUNE_FEATURES_tune-mipsel} mips32r2"
+MIPSPKGSFX_VARIANT_tune-mips32r2el = "mips32r2el"
+PACKAGE_EXTRA_ARCHS_tune-mips32r2el = "mipsel mips32el mips32r2el"