diff mbox series

[3/5] Add build-many-glibcs.py arm-linux-gnueabihf-v7{-disable-multiarch}

Message ID 1507842584-28674-3-git-send-email-adhemerval.zanella@linaro.org
State New
Headers show
Series [1/5] Avoid build multiarch if compiler warns about mismatched alias | expand

Commit Message

Adhemerval Zanella Netto Oct. 12, 2017, 9:09 p.m. UTC
This patch adds two extra configuration for arm-linux-gnueabihf to
cover for multiarch support:

  1. arm-linux-gnueabihf-v7a: enables multiarch support by using
     -march=armv7a.

  2. Same as 1. but with --disable-multiarch.

Check with build-many-glibcs.py for both options.

	* scripts/build-many-glibcs.py (Context.add_all_configs):
	Add arm-linux-gnueabihf multiarch extra_glibcs.
---
 ChangeLog                    | 3 +++
 scripts/build-many-glibcs.py | 7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.7.4

Comments

Joseph Myers Oct. 12, 2017, 9:53 p.m. UTC | #1
On Thu, 12 Oct 2017, Adhemerval Zanella wrote:

> This patch adds two extra configuration for arm-linux-gnueabihf to

> cover for multiarch support:

> 

>   1. arm-linux-gnueabihf-v7a: enables multiarch support by using

>      -march=armv7a.

> 

>   2. Same as 1. but with --disable-multiarch.

> 

> Check with build-many-glibcs.py for both options.

> 

> 	* scripts/build-many-glibcs.py (Context.add_all_configs):

> 	Add arm-linux-gnueabihf multiarch extra_glibcs.


OK.

-- 
Joseph S. Myers
joseph@codesourcery.com
diff mbox series

Patch

diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index a6c01f9..4cd0a81 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -174,7 +174,12 @@  class Context(object):
                         variant='be8',
                         gcc_cfg=['--with-arch=armv7-a'])
         self.add_config(arch='arm',
-                        os_name='linux-gnueabihf')
+                        os_name='linux-gnueabihf',
+                        extra_glibcs=[{'variant': 'v7a',
+                                       'ccopts': '-march=armv7a'},
+                                      {'variant': 'v7a-disable-multi-arch',
+                                       'ccopts': '-march=armv7a',
+                                       'cfg': ['--disable-multi-arch']}])
         self.add_config(arch='armeb',
                         os_name='linux-gnueabihf')
         self.add_config(arch='armeb',