From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Smishlayev Date: Fri, 29 Nov 2013 12:53:28 +0200 Subject: [U-Boot] Compiling fw_printenv tool Message-ID: <52987228.9040604@xtech2.lv> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello! I'm trying to compile fw_printenv, to work with U-Boot environment variables under my linux os. I'm using commands: $ cd u-boot/ $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- env The tool compiles successfully, I get the executable under u-boot/tools/env/fw_printenv, but it seem to be compiled for my host machine. On my device it says: # ./fw_printenv: line 1: syntax error: "(" unexpected How do I cross compile it for my embedded system? Do I just set the HOSTCC environment variable in the Makefile? Best regards, Alexey Smishlayev