From: Masahiro Yamada Date: Thu, 28 Aug 2014 10:43:45 +0900 Subject: [U-Boot] [PATCH] tools/env: change stripping strategy to allow no-stripping In-Reply-To: <1409142540-22651-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1409142540-22651-1-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <20140828104344.0CED.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 27 Aug 2014 14:29:00 +0200 Thomas Petazzoni wrote: > When building the U-Boot tools for non-ELF platforms (such as Blackfin > FLAT), since commit 79fc0c5f498c3982aa4740c273ab1a9255063d9c > ("tools/env: cross-compile fw_printenv without setting HOSTCC"), the > build fails because it tries to strip a FLAT binary, which does not > make sense. > > This commit solves this by changing the stripping logic in > tools/env/Makefile to be similar to the one in tools/Makefile. This > logic continues to apply strip to the final binary, but does not abort > the build if it fails, and does the stripping in place on the final > binary. This allows the logic to work fine if stripping doesn't work, > as it leaves the final binary untouched. > > Signed-off-by: Thomas Petazzoni > Cc: Masahiro Yamada > Cc: Sonic Zhang Reviewed-by: Masahiro Yamada Thanks!