public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] contrib/config-list.mk: Allow to build all targets individually
@ 2013-11-25  9:27 Jan-Benedict Glaw
  2013-11-27  8:02 ` [ping] " Jan-Benedict Glaw
  0 siblings, 1 reply; 3+ messages in thread
From: Jan-Benedict Glaw @ 2013-11-25  9:27 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 6271 bytes --]

Hi!

For my Build Robot, I'd like to change contrib/config-list.mk to be
more generally useable. This patch allows to override the defaults for
$(host_options), which currently mentions mpc's location.

  The second change allows to print the list of buildable targets,
which saves me the need to to a crude parsing of this make file.

  Finally, the patch changes the list of targets so that they don't
contain the "=" character any more. You can use this make file to
build individual targets like this:

	make -f ../gcc/contrib/config-list.mk log/<targetname>-make.out

However, this does not work for target names with "=" in them (ie.
arc-elf32OPT-with-cpu=arc600), because the output log filename would
be parsed as a variable assignment.



2013-11-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

	* config-list.mk (host_options): Allow to override it.
	(LIST): Change "=" to "EQUAL".
	(list): New target listing all configurations.
	($(LIST)): Substitute "EQUAL" back to "=".
 

diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index 23d6e4a..a4b8d6a 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -1,5 +1,5 @@
 # Run tests covering all config.gcc cases.
-host_options='--with-mpc=/opt/cfarm/mpc' # gcc10
+host_options ?= '--with-mpc=/opt/cfarm/mpc' # gcc10
 TEST=all-gcc
 # Make sure you have a recent enough gcc (with ada support) in your path so
 # that --enable-werror-always will work.
@@ -14,18 +14,18 @@ TEST=all-gcc
 LIST = aarch64-elf aarch64-linux-gnu \
   alpha-linux-gnu alpha-freebsd6 alpha-netbsd alpha-openbsd \
   alpha64-dec-vms alpha-dec-vms am33_2.0-linux \
-  arc-elf32OPT-with-cpu=arc600 arc-elf32OPT-with-cpu=arc700 \
-  arc-linux-uclibcOPT-with-cpu=arc700 arceb-linux-uclibcOPT-with-cpu=arc700 \
+  arc-elf32OPT-with-cpuEQUALarc600 arc-elf32OPT-with-cpuEQUALarc700 \
+  arc-linux-uclibcOPT-with-cpuEQUALarc700 arceb-linux-uclibcOPT-with-cpuEQUALarc700 \
   arm-wrs-vxworks arm-netbsdelf \
   arm-linux-androideabi arm-uclinux_eabi arm-eabi \
   arm-symbianelf avr-rtems avr-elf \
   bfin-elf bfin-uclinux bfin-linux-uclibc bfin-rtems bfin-openbsd \
   c6x-elf c6x-uclinux cr16-elf cris-elf cris-linux crisv32-elf crisv32-linux \
-  epiphany-elf epiphany-elfOPT-with-stack-offset=16 fido-elf \
+  epiphany-elf epiphany-elfOPT-with-stack-offsetEQUAL16 fido-elf \
   fr30-elf frv-elf frv-linux h8300-elf h8300-rtems hppa-linux-gnu \
-  hppa-linux-gnuOPT-enable-sjlj-exceptions=yes hppa64-linux-gnu \
+  hppa-linux-gnuOPT-enable-sjlj-exceptionsEQUALyes hppa64-linux-gnu \
   hppa2.0-hpux10.1 hppa64-hpux11.3 \
-  hppa64-hpux11.0OPT-enable-sjlj-exceptions=yes hppa2.0-hpux11.9 \
+  hppa64-hpux11.0OPT-enable-sjlj-exceptionsEQUALyes hppa2.0-hpux11.9 \
   i686-pc-linux-gnu i686-apple-darwin i686-apple-darwin9 i686-apple-darwin10 \
   i486-freebsd4 i686-freebsd6 i686-kfreebsd-gnu \
   i686-netbsdelf9 i686-knetbsd-gnu i686-openbsd i686-openbsd3.0 \
@@ -33,7 +33,7 @@ LIST = aarch64-elf aarch64-linux-gnu \
   i686-lynxos i686-nto-qnx \
   i686-rtems i686-solaris2.10 i686-wrs-vxworks \
   i686-wrs-vxworksae \
-  i686-cygwinOPT-enable-threads=yes i686-mingw32crt ia64-elf \
+  i686-cygwinOPT-enable-threadsEQUALyes i686-mingw32crt ia64-elf \
   ia64-freebsd6 ia64-linux ia64-hpux ia64-hp-vms iq2000-elf lm32-elf \
   lm32-rtems lm32-uclinux m32c-rtems m32c-elf m32r-elf m32rle-elf m32r-rtems \
   m32r-linux m32rle-linux m68k-elf m68k-netbsdelf \
@@ -52,7 +52,7 @@ LIST = aarch64-elf aarch64-linux-gnu \
   powerpc-darwin7 powerpc64-darwin powerpc-freebsd6 powerpc-netbsd \
   powerpc-eabispe powerpc-eabisimaltivec powerpc-eabisim ppc-elf \
   powerpc-eabialtivec powerpc-xilinx-eabi powerpc-eabi \
-  powerpc-rtems4.11OPT-enable-threads=yes powerpc-linux_spe \
+  powerpc-rtems4.11OPT-enable-threadsEQUALyes powerpc-linux_spe \
   powerpc-linux_paired powerpc64-linux_altivec \
   powerpc-wrs-vxworks powerpc-wrs-vxworksae powerpc-lynxos powerpcle-elf \
   powerpcle-eabisim powerpcle-eabi rs6000-ibm-aix4.3 rs6000-ibm-aix5.1.0 \
@@ -61,16 +61,16 @@ LIST = aarch64-elf aarch64-linux-gnu \
   shle-linux sh-netbsdelf sh-superh-elf sh5el-netbsd sh64-netbsd sh64-linux \
   sh64-elfOPT-with-newlib sh-rtems sh-wrs-vxworks sparc-elf \
   sparc-leon-elf sparc-rtems sparc-linux-gnu \
-  sparc-leon3-linux-gnuOPT-enable-target=all sparc-netbsdelf \
-  sparc64-sun-solaris2.10OPT-with-gnu-ldOPT-with-gnu-asOPT-enable-threads=posix \
+  sparc-leon3-linux-gnuOPT-enable-targetEQUALall sparc-netbsdelf \
+  sparc64-sun-solaris2.10OPT-with-gnu-ldOPT-with-gnu-asOPT-enable-threadsEQUALposix \
   sparc-wrs-vxworks sparc64-elf sparc64-rtems sparc64-linux sparc64-freebsd6 \
   sparc64-netbsd sparc64-openbsd spu-elf tilegx-linux-gnu tilepro-linux-gnu \
   v850e-elf v850-elf vax-linux-gnu \
   vax-netbsdelf vax-openbsd x86_64-apple-darwin \
-  x86_64-pc-linux-gnuOPT-with-fpmath=avx \
-  x86_64-elfOPT-with-fpmath=sse x86_64-freebsd6 x86_64-netbsd \
+  x86_64-pc-linux-gnuOPT-with-fpmathEQUALavx \
+  x86_64-elfOPT-with-fpmathEQUALsse x86_64-freebsd6 x86_64-netbsd \
   x86_64-knetbsd-gnu x86_64-w64-mingw32 \
-  x86_64-mingw32OPT-enable-sjlj-exceptions=yes xstormy16-elf xtensa-elf \
+  x86_64-mingw32OPT-enable-sjlj-exceptionsEQUALyes xstormy16-elf xtensa-elf \
   xtensa-linux \
   sparc-sun-solaris2.9OPT-enable-obsolete i686-solaris2.9OPT-enable-obsolete \
   i686-interix3OPT-enable-obsolete score-elfOPT-enable-obsolete
@@ -83,6 +83,9 @@ config: $(LIST)
 
 empty=
 
+list:
+	@echo $(LIST)
+
 #Check for the presence of the MAINTAINERS file to make sure we are in a
 #suitable current working directory.
 make-log-dir: ../gcc/MAINTAINERS
@@ -92,7 +95,7 @@ $(LIST): make-log-dir
 	-mkdir $@
 	(cd $@ && \
 	../../gcc/configure \
-	--target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
+	--target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$(subst EQUAL,=,$@))) \
 	--enable-werror-always ${host_options} --enable-languages=all,ada,go) \
 	> log/$@-config.out 2>&1


Ok?

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:          GDB has a 'break' feature; why doesn't it have 'fix' too?
the second  :

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ping] [patch] contrib/config-list.mk: Allow to build all targets individually
  2013-11-25  9:27 [patch] contrib/config-list.mk: Allow to build all targets individually Jan-Benedict Glaw
@ 2013-11-27  8:02 ` Jan-Benedict Glaw
  2013-12-02 12:07   ` [ping^2] " Jan-Benedict Glaw
  0 siblings, 1 reply; 3+ messages in thread
From: Jan-Benedict Glaw @ 2013-11-27  8:02 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

On Sun, 2013-11-24 20:02:43 +0100, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> 2013-11-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
> 
> 	* config-list.mk (host_options): Allow to override it.
> 	(LIST): Change "=" to "EQUAL".
> 	(list): New target listing all configurations.
> 	($(LIST)): Substitute "EQUAL" back to "=".

Ping: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg03121.html

  Additional to that, I'd suggest to also add microblazeel-elf and
microblaze-rtems (cf. http://gcc.gnu.org/ml/gcc/2013-11/msg00547.html
and http://gcc.gnu.org/ml/gcc/2013-11/msg00545.html), though Joern
isn't fond of the idea (cf.
http://gcc.gnu.org/ml/gcc/2013-11/msg00528.html). So I'd quite like to
see a discussion about this.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:                     Eine Freie Meinung in einem Freien Kopf
the second  :                   für einen Freien Staat voll Freier Bürger.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ping^2] [patch] contrib/config-list.mk: Allow to build all targets individually
  2013-11-27  8:02 ` [ping] " Jan-Benedict Glaw
@ 2013-12-02 12:07   ` Jan-Benedict Glaw
  0 siblings, 0 replies; 3+ messages in thread
From: Jan-Benedict Glaw @ 2013-12-02 12:07 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

On Wed, 2013-11-27 02:43:08 +0100, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> On Sun, 2013-11-24 20:02:43 +0100, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> > 2013-11-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
> > 
> > 	* config-list.mk (host_options): Allow to override it.
> > 	(LIST): Change "=" to "EQUAL".
> > 	(list): New target listing all configurations.
> > 	($(LIST)): Substitute "EQUAL" back to "=".
> 
Ping^2: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg03425.html

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:            http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
the second  :

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-02 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-25  9:27 [patch] contrib/config-list.mk: Allow to build all targets individually Jan-Benedict Glaw
2013-11-27  8:02 ` [ping] " Jan-Benedict Glaw
2013-12-02 12:07   ` [ping^2] " Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).