Skip to contentSkip to conversation

Use --strip-program to accommodate cross-compilers

PATCH In review Hollis Blanchard 2 participants 3 messages Jul 30, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use --strip-program to accommodate cross-compilers

From: Hollis Blanchard <[email protected]>

Fixes this error during make install:
...
install -m0755 -p -s qemu-nbd qemu-img qemu-io "/opt/ppc440-angstrom-linux/usr/local/bin"
strip: Unable to recognise the format of the input file `/opt/ppc440-angstrom-linux/usr/local/bin/qemu-nbd'

---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index b68f01a..8385b24 100755
@@ -2157,7 +2157,7 @@ if test "$debug" = "yes" ; then
   echo "CONFIG_DEBUG_EXEC=y" >> $config_host_mak
 fi
 if test "$strip_opt" = "yes" ; then
-  echo "STRIP_OPT=-s" >> $config_host_mak
+  echo "STRIP_OPT=-s --strip-program=${cross_prefix}strip" >> $config_host_mak
 fi
 if test "$bigendian" = "yes" ; then
   echo "HOST_WORDS_BIGENDIAN=y" >> $config_host_mak
Signature · 1 line
1.7.1.1
#1 lore raw

PATCH 1/1 ppc4xx: correct SDRAM controller warning message condition

From: Hollis Blanchard <[email protected]>

The message "Truncating memory to %d MiB to fit SDRAM controller limits" should be displayed only when a user chooses an amount of RAM which can't be represented by the PPC 4xx SDRAM controller (e.g. 129MB, which would only be valid if the controller supports a bank size of 1MB).

---
 hw/ppc4xx_devs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/ppc4xx_devs.c +1 -1
index b15db81..be130c4 100644
@@ -684,7 +684,7 @@ ram_addr_t ppc4xx_sdram_adjust(ram_addr_t ram_size, int nr_banks,
     }
 
     ram_size -= size_left;
-    if (ram_size)
+    if (size_left)
         printf("Truncating memory to %d MiB to fit SDRAM controller limits.\n",
                (int)(ram_size >> 20));
 
Signature · 1 line
1.7.1.1
#2 lore raw
In reply to Hollis Blanchard
Quoted 17 lines · Hollis Blanchard

From: Hollis Blanchard <[email protected]>

Fixes this error during make install:
...
install -m0755 -p -s qemu-nbd qemu-img qemu-io "/opt/ppc440-angstrom-linux/usr/local/bin"
strip: Unable to recognise the format of the input file `/opt/ppc440-angstrom-linux/usr/local/bin/qemu-nbd'

---
 configure |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
configure +0 -0
index b68f01a..8385b24 100755
@@ -2157,7 +2157,7 @@ if test "$debug" = "yes" ; then
Quoted 5 lines

  echo "CONFIG_DEBUG_EXEC=y" >> $config_host_mak
 fi
 if test "$strip_opt" = "yes" ; then
-  echo "STRIP_OPT=-s" >> $config_host_mak
+  echo "STRIP_OPT=-s --strip-program=${cross_prefix}strip" >> $config_host_mak

This flag is not supported by for example OpenBSD install command. Instead stripping and installing could be broken down to two separate commands.

Quoted 8 lines

 fi
 if test "$bigendian" = "yes" ; then
  echo "HOST_WORDS_BIGENDIAN=y" >> $config_host_mak --
1.7.1.1