u-boot/cpu
Shinya Kuribayashi 7e1d884b7c [MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker
Current trick to pick up GNU assembler minor version does not work with the
latest binutils (2007-03-01 or later) due to ${PKGVERSION} now default to
"(GNU Binutils) ".

  $ sde-as --version |grep "GNU assembler"
  GNU assembler 2.15.94 mipssde-6.02.02-20050602
  $ sde-as --version |grep "GNU assembler" |awk '{print $3}'
  2.15.94
  $ sde-as --version |grep "GNU assembler" |awk '{print $3}' |awk -F. '{print $2}'
  15
  $
  
  $ mips-linux-as --version |grep "GNU assembler"
  GNU assembler (GNU Binutils) 2.18
  $ mips-linux-as --version |grep "GNU assembler" |awk '{print $3}'
  (GNU
  $ mips-linux-as --version |grep "GNU assembler" |awk '{print $3}' |awk -F. '{print $2}'
  (no output)
  $

As a result of above, you'll see many noises with such binutils:

  make -C cpu/mips/
  /bin/sh: line 0: [: : integer expression expected
  /bin/sh: line 0: [: : integer expression expected
  make[1]: Entering directory `/home/skuribay/devel/u-boot.git/cpu/mips'
  mips-linux-gcc  -D__ASSEMBLY__ -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xB0000000  -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/skuribay/devel/buildroot/build_mips/staging_dir/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.1/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4kc -EB -c -o incaip_wdt.o incaip_wdt.S
  /bin/sh: line 0: [: : integer expression expected
  mips-linux-gcc  -D__ASSEMBLY__ -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xB0000000  -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/skuribay/devel/buildroot/build_mips/staging_dir/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.1/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4kc -EB -c -o cache.o cache.S
  /bin/sh: line 0: [: : integer expression expected
  mips-linux-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0xB0000000  -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/skuribay/devel/buildroot/build_mips/staging_dir/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.1/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4kc -EB -Wall -Wstrict-prototypes -c -o asc_serial.o asc_serial.c
  /bin/sh: line 0: [: : integer expression expected

This patch simplifies the trick and makes it work with both versions of gas.
I also replace an expensive `awk (or gawk)' with `cut'.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
2007-11-17 20:05:26 +09:00
..
74xx_7xx cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
arm720t Fix missing DECLARE_GLOBAL_DATA_PTR on CONFIG_LPC2292 in serial 2007-09-28 01:08:38 +02:00
arm920t fix warning: no return statement in function returning non-void 2007-10-24 00:29:06 +02:00
arm925t [PATCH] omap925.c: Remove unused functions 2006-10-28 17:13:12 +02:00
arm926ejs Clean up some remaining CFG_CMD_ -> CONFIG_CMD_ issues. 2007-08-12 14:27:39 +02:00
arm946es Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
arm1136 Remove compiler warning: target CPU does not support interworking 2007-09-10 09:26:35 +02:00
arm_intcm Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
at32ap atmel_mci: Fix data timeout value 2007-08-13 17:35:16 +02:00
bf533 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
bf537 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
bf561 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
i386 cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
ixp cpu/[7a-ln-z]*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 18:57:22 -05:00
lh7a40x Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
mcf52x2 ColdFire: Update cpu flag for 4.2-xx compiler 2007-11-07 17:51:00 -06:00
mcf523x ColdFire: Update cpu flag for 4.2-xx compiler 2007-11-07 17:51:00 -06:00
mcf532x ColdFire: MCF532x - Update do_reset() using core reset 2007-11-07 17:56:15 -06:00
mcf5445x ColdFire: MCF5445x - Update correct RAMBAR and missing linker files 2007-11-07 18:00:54 -06:00
microblaze [PATCH] Add support for design without interrupt controller 2007-09-24 00:21:19 +02:00
mips [MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker 2007-11-17 20:05:26 +09:00
mpc5xx powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc5xxx powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc8xx cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
mpc83xx powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc85xx Cleanup coding style; update CHANGELOG 2007-11-03 23:09:27 +01:00
mpc86xx 86xx: Fix broken variable reference when #def DEBUGing. 2007-11-17 00:58:10 +01:00
mpc512x powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc824x powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc8220 powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc8260 powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
nios Minor alignment of output, 2nd try. 2007-08-12 21:34:34 +02:00
nios2 cpu/[7a-ln-z]*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 18:57:22 -05:00
ppc4xx ppc4xx: Coding style cleanup 2007-10-02 11:44:46 +02:00
pxa delta: Fix OHCI_REGS_BASE undeclared and wait_ms implicit declaration 2007-10-24 00:29:14 +02:00
s3c44b0 Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
sa1100 Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00